# Orchestration Vs. Choreography

⚡️ Tags: 📍Comparison 📍DistributedSystem

With Orchestration

we rely on a central brain to guide & drive the process. like the conductor in an orchestra.

With Choreography

we inform each part of the system of its job, and let it work out the details, like dancers all finding their way and reacting to others around them in a ballet.

Orchestration vs Choreography

# Orchestration

Orchestration-preview

Service 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.

# Choreography

Choreography-preview

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.

# SAGA pattern

# Choreography based SAGA

Choreography based SAGA

# Orchestration based SAGA

Orchestration based SAGA