Distributed Cache
Design a distributed caching layer between your application and database to reduce latency and database load.
These requirements and scale numbers are for reference. The AI reviewer will evaluate your design based on the functional requirements and assumptions you define.
🎯 Key Requirements
- •In-memory key-value cache with TTL and an eviction policy (LRU/LFU)
- •Partition keys across multiple cache nodes
- •Provide a strategy for invalidation on writes to the underlying store
📐 Scale Expectations
- •100GB cached data across ~10 nodes
- •100K cache operations per second across the cluster
- •p99 read latency under 5ms
Community Submissions (2)