Optimising the Swiggy Restaurant App
Article Summary
Swiggy's restaurant app was crashing under load. Their React Native app couldn't handle more than 100 orders on budget devices, and they needed to scale 10x.
The Swiggy engineering team shares their journey optimizing their restaurant partner app from single-outlet to multi-outlet support. What started as obvious fixes led to discovering a critical throttling issue that was destroying performance.
Key Takeaways
- 20% FPS improvement and 27% better Flashlight performance score during peak hours
- Cut API calls by 50% through FCM event throttling logic
- App now handles 600+ orders on 2GB RAM devices (previously crashed at 100)
- ImageKit resizing reduced delivery agent photos from 4.37MB to 5KB each
- Dead code removal and async storage cleanup had zero performance impact
Critical Insight
Throttling Firebase Cloud Messaging events was the breakthrough that cut API calls in half and enabled the app to scale from single to multi-outlet support without crashes.