The Desi Architect
Notes / Browser demos / Swiggy menu-cache nodes on IPL night
Interactive demo Free

Swiggy menu-cache nodes on IPL night

Try the model, then compare what changed. This is a browser simulation with illustrative inputs.

Illustrative simulation. The values come from a model, not a measured production system.
Try it · consistent hash ring

Sixty restaurant menus are cached across a few nodes. Add a node, remove one, or switch on virtual nodes, then compare how many keys had to move on the ring against plain hash(key) % N.

Nodes4
Keys moved, ring0
Keys moved, hash % N0
Busiest / quietest node-
Learn the idea behind it

The demo shows what breaks. The lesson explains why it breaks, and what you give up with each fix.

This demo is free. The System Design pass (₹499) opens all 28 demos, 36 design interview problems and 75 Docker labs. See what the pass includes →

Read the related guide