Site icon TelcoSought

How do microservices collaborate and interact?

A Cloud native application is made from multiple microservices and for proper functioning of the application all the microservice needs collaborate and interact with each other for information exchange.

We may have question in mind, how do these microservices collaborate and interact with each other? So basically, there are two ways namely ????????????? and ???????????? followed by the microservices for the interaction with each other.

Choreography is like having a choreographer, who set all the rules. Then the dancers on stage (the microservices) interact according to him. Service choreography describes this exchange of messages and the rules by which the microservices interact. The diagram below illustrates the collaboration of microservices using choreography method.

Orchestration is different. The orchestrator acts as a center of authority. It is responsible for invoking and combining the services. It describes the interactions between all the participating services. It is just like a conductor leading the musicians in a musical symphony. The orchestration pattern also includes the transaction management among different services.

The benefits of orchestration:

Some limitations of orchestration:

Related Posts:

Exit mobile version