Aggregator pattern

As the name itself suggests, this pattern establishes the existence or creation of a somewhat more complex service that invokes the functions of more internal services. Consequently, this aggregating microservice acts as an intermediary service that is a composition of other microservices, in the sense that it calls the microservices, obtains the individual responses from each microservice, and applies the necessary business rule, returning the final response to the client. Let's look at the following diagram:

This diagram appears to show that a few parts of the solutions are repeated, which characterizes the existence of ...

Get Java EE 8 Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.