System Design
16. Performance EngineeringAnimated
Latency Optimisation
Making requests faster.
The idea
Cut round trips, cache, parallelise, move data closer and optimise the slowest stage.
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
Each level is bigger, slower and cheaper than the one above.
- step:
- 1/4
- at:
- CPU registers
1/8
The green dot is a request moving through the system.
Step by step
- 1Trace a slow request
- 2Find the longest span
- 3Cache or parallelise it
- 4Re-measure p99
Where it is used
User experience.
Watch out for
Optimise the tail (p99), not only the average.