A product launch, a TV mention, a flash sale at 10:00 sharp. You know the traffic is coming, and you have a few weeks. This is a checklist for using them well, so the day is boring.
1. Estimate the peak, then double it
Start from data, not hope:
- Last comparable event: peak sessions per minute from your analytics.
- Marketing reach: newsletter size × typical click rate in the first 10 minutes.
- Sale mechanics: a countdown concentrates traffic into the first 60 seconds far more than a "sale this week".
Convert to arrival rate (how) and plan for 2 to 3 times your estimate. Estimates are usually low, and you want headroom, not a tightrope.
2. Map the critical path
List the requests that must work for the event to succeed, usually:
- landing or product page;
- sign in or sign up;
- add to cart;
- checkout and payment.
Everything else (recommendations, reviews, analytics) should degrade gracefully if it struggles. Know which parts you can turn off.
3. Run a spike test, not just a load test
A gentle ramp is not what a sale looks like. Shape the test like the event:
| Phase | Duration | Arrival rate |
|---|---|---|
| Normal traffic | 2 min | 5 users / s |
| Spike | 10 s | 5 → 150 users / s |
| Hold | 5 min | 150 users / s |
| Drop | 1 min | 20 users / s |
Watch for the failures only spikes cause (more on test types):
- Cold caches: every request reaches the database at once. Warm caches before the event.
- Autoscaling lag: new servers take minutes, the spike takes seconds. Scale up before the event.
- Connection pools sized for normal traffic.
- Thundering herd on the one hot row, such as the stock count of the sale item.
4. Fix the hot spots
The usual fixes, roughly in order of effort:
- cache product and landing pages at the CDN;
- move emails, receipts and webhooks to queues;
- add timeouts and circuit breakers to third-party calls (payment, tax, shipping);
- protect stock counters with atomic updates or a reservation queue instead of read-then-write;
- raise worker and database connection pools, within memory limits;
- pre-scale servers and database replicas for the event window.
After each fix, run the same spike test again and compare with the previous run.
5. Test the failure plan
Decide what happens when things go wrong anyway:
- a waiting room or queue page when load exceeds capacity;
- feature flags to turn off non-essential features;
- clear 503 pages instead of timeouts;
- who is on call, and where the dashboards are.
Then test it: push the spike past capacity on purpose and check the system sheds load cleanly and recovers by itself.
6. On the day
- Freeze deployments a day before.
- Warm caches and pre-scale an hour before.
- Watch error rate and p95 of the critical path, not CPU.
- Keep a short smoke test running every few minutes to catch problems before customers do.
With Hoofbeat
Start from the flash sale or API spike template, or tell HoofbeatChat "100 users buy the same item at 10:00 sharp, each with their own account". Hoofbeat can hold users at a rendezvous so they all hit checkout at the same instant, spreads big spikes across cloud load generators, and compares each run with the last. Schedule a short check every hour on the day, with alerts by email or Slack.