Summer Bug Smash: Clear the Lineup 🐛🛹
Project Overview
The project is a personal high-throughput e-commerce storefront API built with Next.js Server-Side Rendering (SSR) and Redis for distributed caching. The system was designed to handle high-concurrency traffic during simulated flash sales. However, as the traffic volume scaled, the application suffered from severe systemic degradation: recurrent Out-Of-Memory (OOM) crashes and catastrophic latency spikes causing HTTP 502 Bad Gateway errors. Stability in memory allocation and CPU overhead is critical for the application's survival in cloud-native environments.
Bug Fix or Performance Improvement
I identified two deeply intertwined architectural anti-patterns that created a cascading failure:






