What are the standard patterns of orchestrating microservices?

Technology CommunityCategory: MicroservicesWhat are the standard patterns of orchestrating microservices?
VietMX Staff asked 3 years ago

As we start to model more and more complex logic, we have to deal with the problem of managing business processes that stretch across the boundary of individual services.

  • With orchestration, we rely on a central brain to guide and drive the process, much like the conductor in an orchestra. The orchestration style corresponds more to the SOA idea of orchestration/task services. For example we could wrap the business flow in its own service. Where the proxy orchestrates the interaction between the microservices like shown in the below picture.
  • With choreography, we inform each part of the system of its job, and let it work out the details, like dancers all find‐ ing their way and reacting to others around them in a ballet. The choreography style corresponds to the dumb pipes and smart endpoints mentioned by Martin Fowler’s. That approach is also called the domain approach and is using domain events, where each service publish events regarding what have happened and other services can subscribe to those events.