Anonymous Asked in Cars &Transportation · 2 weeks ago

Should microservices know about each other?

I would generally advise against having microservices do synchronous communication with each other, the big issue is coupling, it means the services are now coupled to each other, if one of them fails the second is now fully or partially disfunctional. 16 окт. 2016 г.


Should microservices communicate with each other?

Because microservices are distributed and microservices communicate with each other by inter-service communication on network level. Each microservice has its own instance and process. Therefore, services must interact using an inter-service communication protocols like HTTP, gRPC or message brokers AMQP protocol.

Should microservices be dependent on each other?

It just means that the communication between microservices should be done only by propagating data asynchronously, but try not to depend on other internal microservices as part of the initial service's HTTP request/response operation.

How does 2 microservices communicate with each other?

Another communication pattern we can leverage in a microservice architecture is message-based communication. Unlike HTTP communication, the services involved do not directly communicate with each other. Instead, the services push messages to a message broker that other services subscribe to.

Can two microservices call each other?

There are two basic messaging patterns that microservices can use to communicate with other microservices. Synchronous communication. In this pattern, a service calls an API that another service exposes, using a protocol such as HTTP or gRPC.

Related Questions

Relevance
Write us your question, the answer will be received in 24 hours