When one of my projects went viral, I had to learn how to scale—and fast.
### Horizontal Scaling
The first step was moving from a single server to a cluster of smaller instances behind a load balancer.
### Database Indexing
I quickly discovered that non-indexed queries were the biggest bottleneck. Adding proper indexes to my MongoDB collections reduced response times by orders of magnitude.
#Scaling#Backend#Performance#Case Study
