Microservices :  Orchestration vs Choreography

Photo by Paul Minami on Unsplash

Microservices : Orchestration vs Choreography

Microservices Orchestration: What Is It And How Does It Work?

Microservices orchestration represents a single centralized executable business process (the orchestrator) that coordinates the interaction/communication among different services. The orchestrator is responsible for invoking and combining the services.

The relationship between all the participating services are described by a single endpoint (i.e., the composite service). The orchestration includes the management of transactions between individual services. Orchestration employs a centralized approach for service composition.

Microservices Choreography: What Is It And How Does It Work?

Microservices choreography is a global description of the participating services, which is defined by exchange of messages, rules of interaction and agreements between two or more endpoints. Choreography employs a decentralized approach for service composition.

Conclusion

The choreography describes the interactions between multiple services, where as orchestration represents control from one party's perspective. This means that a choreography differs from an orchestration with respect to where the logic that controls the interactions between the services involved should reside.