System Design
16. Performance EngineeringAnimated
Memory Management
How programs allocate and free memory.
The idea
Stack, heap, manual or automatic management and pooling.
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
- 1Allocate on demand
- 2Use it
- 3Free it or let the GC reclaim it
- 4Reuse objects when hot
Where it is used
Performance and stability.
Watch out for
Fragmentation and leaks.