Branch Composition Pattern

It can be used in a complex scenario where an aggregator takes the request and send it into multiple services to perform their individual task where multiple services can implement other composition pattern as per their need.
Example:
  • UI Composition Service needs to interact with Service 1 and Service 2.
  • Service 1 needs to interact with Service A and Service B synchronously then Service 1 can use chained composition pattern.
  • And, service 2 needs to interact with Service D, E and then F using event based async communication.
Please share this

Leave a Reply