Cache
System Design – What and Where To Cache?
- DEFINITION
- Types
- GLOBAL cache
- Distributed cache
- Cache on layers
- Client Side Cache
- Load Balancer Cache
- API Gateway Cache
- CDN Cache
- Web Server Cache
- Application Server Cache
- Distributed File System Cache
- Search Index Cache
- Database Cache
- Coordination Service Cache
- Cache Invalidation
- Write through (high write latency – consistent)
- write around (high read latency)
- write back (low read latency – high chance of data-loss)
- Cache Eviction policies
- LIFO
- FIFO
- LRU
- MRU
Cache Eviction policies
Cache Invalidation