The Desi Architect
Notes / Booking and Search / Redis and Search Command Reference
Track 3 · Booking and Search

Redis and Search Command Reference

A hands-on lab for the moment a Tatkal or movie-ticket sale opens. You hold seats with Redis, push changes to browsers, run a waiting room, and then search the shows with Elasticsearch. Every command is copy-paste ready.

Hands-on lab26 min read
On this page
  1. What we are building
  2. Lab setup with Docker Compose
  3. Pub/Sub and sorted sets, the two building bricks
  4. Loading the inventory
  5. Holding a seat with a TTL lock
  6. Pushing seat changes to the browser
  7. The virtual queue
  8. Elasticsearch cookbook
  9. Clean up