Skip to content
StackDecode
System Design
10. API Design and ManagementAnimated

API Composition

Combining several calls into one response.

The idea

A composer calls multiple services and merges the results for the client.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientAggregatorUsers APIOrders APIPricing API
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

One client call, several backends.

step:
1/4
at:
Client
1/11

The green dot is a request moving through the system.

Step by step

  1. 1Client calls the composer
  2. 2It calls services in parallel
  3. 3It merges the results
  4. 4Returns one response

Where it is used

Microservice read paths.

Watch out for

The slowest service sets the latency.

Related