An API composition service contains the API composer that implements a system query by calling provider services and combining their results. It is typically an API Gateway, a Backend-for-frontend (BFF), or a composition service. section 12.2.1
Assess whether API composition fits the query:
- Consider how data is distributed and whether provider databases and APIs can efficiently support the required service queries. section 12.2.1
- Avoid it when the composer would need an inefficient in-memory join of large datasets. section 12.2.1
Figure 12.5 The API composition pattern consists of an API composer and two or more provider services. The API composer implements a query by querying the providers via their APIs and combining the results.
The diagram shows the composer querying provider services and combining their results. section 12.2.1
