Chained pattern
The purpose of the chained pattern is to present a more consistent and definitive final response to the client using a chain of services that communicate sequentially. In this way, Service A that acts as a first service in the chain communicate with Service B. Service B communicates with Service C, and so on. The calls are synchronous and the client remains locked until the final response returns from Service A to the client.
It is important to note here that the requests that arrive at the chain services may be different. In this way, the request sent from Service A to Service B may be very different from the request sent from Service B to Service C, and so on. In the same way, the response of the services may also be different. ...
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