PrepCity

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 · 7 pages · about 5 min

Distributed cache

Stateless API replicas share one cache whose keys are spread across nodes, so losing a node costs only its share of the keys.

Words you’ll learn

  • Load balancer
  • API
  • Replica
  • Redis
  • Primary
  • Cache
  • PostgreSQL
  • TTL
  • Requests a second
  • Database

Page by page