Microservice communication
Like in the chained design pattern, the branch design pattern uses the synchronous communication model between microservices. However, some ways to perform synchronous communication can be exploited.
The first of these is synchronous communication using some protocol or direct message. This is the simplest way to apply synchronous communication between microservices. As an example of protocol, there is the famous HTTP, and as a direct message, we can use Remote Procedure Call (RPC). However, the branch design pattern has a peculiarity—the pattern works with both orchestration and data composition.
In terms of data composition, the use of protocols is quite simple and acceptable. Differently, when we speak of orchestration, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access