Missing Database Index Crashed a Live Launch With 400,000 Records Loaded
In 2021, a first-time startup developer in India helped build a full-stack app that was set to launch with over 400,000 pre-loaded user records in a MongoDB database. During the live launch event, the server began crashing after just 50 mid-level users signed up, largely because the database was running on an AWS free-tier EC2 instance with no room to scale. The root cause turned out to be a missing index on a key collection, forcing the CPU to scan all 400,000 records for every single query and pushing it to 100% utilization. The team quickly scaled up the server and added the missing index, rescuing the event in real time. Five years later, the same platform serves over 5 million users and runs at roughly 0.05 rupees per user per month after ongoing optimizations including Redis integration.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in