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.
- 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
- 1Client calls the composer
- 2It calls services in parallel
- 3It merges the results
- 4Returns one response
Where it is used
Microservice read paths.
Watch out for
The slowest service sets the latency.