System Design
10. API Design and ManagementAnimated
API Observability
Seeing how the API behaves.
The idea
Metrics, logs and traces show latency, errors and usage per endpoint and 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
Apps emit metrics, logs and traces.
- step:
- 1/4
- at:
- Apps
1/9
The green dot is a request moving through the system.
Step by step
- 1Emit metrics per endpoint
- 2Log requests with ids
- 3Trace across services
- 4Alert on error rate and latency
Where it is used
Operating APIs.
Watch out for
High-cardinality labels can overload the metrics system.