The Desi Architect
Notes / Browser demos / The search that ate the checkout
Interactive demo Free

The search that ate the checkout

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 · break it under load

Friday night 9 PM on a food delivery app. Shoppers generate 1,000 requests a second: 800 browse searches and 200 checkout orders. Postgres has a 50-connection pool limit and normal queries take 5 ms. The numbers are made up and round. Trigger an unindexed search for %biryani% and compare how shared versus bulkheaded pools protect order revenue.

Read scenario overview
  • Components: Shoppers (source); Search API (server): capacity 1,500/s, 10 ms; Order API (server): capacity 1,500/s, 10 ms; Postgres (db): capacity 1,500/s, 5 ms.
  • Traffic: starts at 1,000 requests/second (slider range 0 to 2,000/s).
  • Interactive controls: Unindexed search (%biryani%), Pool isolation. Servers and database can be stopped and restarted by clicking them.
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