⌘K
Flycodx

Design a Distributed Cache

Design a Distributed Cache

HardSystem Design0% accepted

Swiggy needs a distributed cache for restaurant menus and user sessions serving 50M RPD. Design a system supporting high availability, eviction policies, and cache invalidation.

Approach

Design distributed cache with consistent hashing, eviction, and invalidation.

Input

Restaurant menu updated by merchant

Output

Write-through: update DB + invalidate cache key; next read repopulates

Scenarios & Expected Answers

Sign in to continue

Create a free account to view answers and mark progress.

  • Free forever — no credit card
  • Theory Q&A with detailed answers
  • Points, streaks & leaderboards
Auto Save On