PrepCity

Design a distributed cache

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 13 pages · about 12 min

Design a distributed cache

A shared memory in front of the database: size it by memory and by lookups, split keys over nodes, keep it right, and survive losing a node.

Words you’ll learn

  • Cache
  • Database
  • Millisecond
  • Capacity
  • TTL
  • API
  • Cache-aside
  • LRU
  • Eviction
  • Load balancer

Page by page