Skip to main content

API Composition

Learn API Composition (Microservices Fundamentals, Microservices) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Combining Data From Multiple Services A single screen in a client app (e.g. an order-detail page) often needs data that lives across several services - order details from Order Service, item info from Catalog Service, shipping status from Shipping Service. API Composition is the practice of combining results from multiple service calls into one response for the client. Two Ways to Compose • Client-side composition - the client itself calls each service separately and merges the results (simple, but chatty over the network and exposes internal service boundaries to the client). • API...

More lessons in Microservices Fundamentals