Flash Sales and Traffic Spikes, Done Properly
Preparing a store for sudden traffic, such as promotions, product drops or press coverage.
On this page
What is at stake
Spikes break stores that work fine day to day, and an outage during a sale costs the whole campaign.
The playbook
- Load test before major events
- Cache aggressively where safe
- Protect inventory with reservation logic
- Monitor in real time during sales
- Prepare a rollback and status page
Where it goes wrong
Avoid:
- Launching without testing
- Uncached dynamic pages under load
- Overselling limited stock
- No monitoring during peak hours
The numbers behind it
| Measure | Figure |
|---|---|
| Load testing | reveals limits before customers do |
| Caching | reduces load on origin servers |
| Overselling | stock can go negative under concurrent orders |
| Queues | waiting rooms can control admission during extreme demand |
Getting outside help
When to hand it over: Bring in help before high-demand launches.
Where this comes from
- web.dev — Performance
- Cloudflare Learning Center — What is a CDN?
The figures and practices above come from the sources listed.
Working on something like this?
We take on E-commerce Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.