How Should Microservices Communicate with Each Other?

0
1
Asked By RandomDuck96 On

I'm exploring the best approaches for microservices to interact with one another. Currently, I'm weighing the pros and cons of gRPC versus REST protocols. However, I'm also rethinking whether these services really need to communicate at all. I'm curious to hear your thoughts on when and how microservices should talk to each other, or if it's better to restructure the design to minimize communication.

1 Answer

Answered By CoolNinja42 On

Microservices usually communicate either synchronously using something like an HTTP API or asynchronously through an event-based system, like a message broker. Each method has its own benefits depending on your needs.

ChillPanda88 -

So, we set up a message queue in a specific service so that we don't lose events, right? Those hardened services seem necessary in case of unreliable connections where retries could be costly.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.