Reputation: 207
Let say I have 22 microservices. I developed with docker on local.
Client wants to get product model data which contains 3 different service data and aggregate them. Should I use aggregator gateway api or SPA get separately from each service. Does Aggregator service couple services ?
Upvotes: 2
Views: 1461
Reputation: 8032
There are some compelling advantages to using a BfF service as an orchestration layer that aggregates calls to various backend data services.
Take a look at this article on Consistency, Coupling, and Complexity at the Edge that goes into more detail on this and proposes some best practices such as GraphQL vs REST.
Upvotes: 0
Reputation: 4284
These Microservices patterns always come with Trade-offs. Here you need to consider more than just a coupling issue when you are going with Aggregator pattern (Backend for Frontend).
The following are some of the points you need to think about before going with this pattern.
These are the best practices that I can suggest, You are the best person who can decide based on your system requirements and these points.
Upvotes: 5