Summer Bug Smash: Smash Stories 🐛🛹

This is a submission for DEV's Summer Bug Smash: Clear the Lineup powered by Sentry.

This project is a high-traffic financial affiliate dashboard built with Node.js, Express, and Redis. It processes real-time user metrics, rank calculations, and commission statistics across multiple active user tiers. The platform relies heavily on cached endpoints to serve heavy aggregation queries quickly to thousands of simultaneous users.

During peak traffic events, cache invalidation triggered a severe cache stampede (thundering herd problem). When a high-frequency key expired or was invalidated after a data update, hundreds of concurrent incoming requests simultaneously bypassed the cache and hit the primary SQL database.

Impact of the Bug: