Load testing before campaigns: e-commerce under synthetic peak load
Load and spike tests with realistic scenarios (checkout, search, listing)—bottlenecks removed before peak week; autoscaling and cache tuning validated.
Load testing before campaigns: e-commerce under synthetic peak load
Server load testing
The Challenge
Unknown limits before a major marketing push
The team feared checkout timeouts and search failures under concurrent traffic plus paid social spikes.
Previous peaks survived via emergency scaling—without reliable curves for DB, cache and CDN.
Peak week must not be a surprise experiment—we wanted numbers upfront.
Checkout, search and listing load differently
Not every path scales alike: cart and payment are synchronous; listing uses CDN and Elasticsearch. Bottlenecks were unclear.
Previous peaks showed DB pool exhaustion under search load while CDN kept listing stable—without tests it was unclear where to invest.
Payment provider and cart share DB connections—bottlenecks at one point block the entire checkout.
Target state: latency budgets and documented limits
Before the campaign, spike and ramp-up tests should define clear limits; autoscaling, read replicas and cache tuning validated and documented.
Marketing and shop team wanted credible answers on maximum concurrent users.
Rollback options must be fixed before peak start—not only after first timeouts.
CDN hit rate and DB pool must be observed together under spike.
On-call and marketing need shared thresholds and comms plans before peak start.
Post-campaign review should document curves for the next season—not only verbal lessons learned.
Our Solution
Test setup and curves
Test architecture from production patterns
We derived k6 scripts from anonymised traffic patterns, defined ramp-up and spikes, and reviewed metrics with app and infra teams. DB pool and cache hit-rate issues were addressed.
War-room protocol and comms plan were aligned with marketing and on-call before campaign start.
Execution aligned with our server load testing service; background in the software development blog category.
Phase 1: baseline and scenarios
Checkout, search and listing scenarios run with different virtual-user profiles. Grafana correlates k6 metrics with DB pool, HPA and CDN hit rate.
Read replicas and connection pool limits were calibrated before spike tests.
Think time and payload sizes follow anonymised production patterns from the prior week.
Baseline tests define p95 latency and error budgets per user journey before the spike.
Phase 2: spike, tuning and runbook
Spike tests simulate paid-social entry traffic; after tuning, latency budgets are written down. On-call receives thresholds and escalation path.
Cache TTL and invalidation were adjusted after bottleneck analysis; HPA thresholds follow test curves.
War-room protocol defines roles for peak hours and communication on threshold breach.
Better a red graph in test week than a red checkout on campaign day.
Results
Stable peak hours without emergency patching
The campaign stayed within agreed latency budgets; error budgets and alerts were aligned with the customer upfront.
Checkout error rate stayed below agreed threshold; search latency rose only moderately under peak load.
Marketing and on-call communicated per runbook—no unplanned war-room escalations.
Post-campaign review documented curves for the next season.
Documented capacity limits
Runbook and curves serve future campaigns; HPA thresholds were adjusted post-test.
Checkout and search paths stayed within agreed p95 latency budgets under peak load.
Versioned k6 scenarios are ready for regression before the next season.
Autoscaling and DB pool adjustments followed data-driven peak evaluation.
War-room protocol and comms plan were aligned with marketing and on-call before campaign start.
Versioned k6 scenarios in the repository enable regression before each major marketing action.
Load testing and support by Groenewold IT Solutions—Made in Germany with close shop and infra alignment.
Scenarios and metrics
Realistic user journeys
k6 scripts mirror anonymised production shares for listing, search and checkout; think time and payload sizes match measurements.
SLIs during the test
p95 latency, error rate and throughput are held against agreed budgets; deviations trigger immediate analysis.
Tuning and handover
Cache and database
Cache TTL and invalidation were adjusted; read replicas offload write-heavy paths during peaks.
Runbook for campaign days
On-call, marketing and shop team share thresholds, comms plan and rollback options before the promotion goes live.
War-room protocol defines roles for peak hours and communication on threshold breach.
Follow-up and continuous improvement
Versioned k6 scenarios
k6 scenarios are versioned in the repository; before each major promotion a regression test runs against staging.
New shop features pass load-test gates before go-live in peak periods.
Features
Feature overview
- Realistic load profiles and spike tests
- Tight monitoring during test runs
- Recommendations for scaling, caching and DB read paths
- Documented limits for future campaigns
Frequently asked questions: load testing before e-commerce campaigns
When should load tests run before a campaign?
Which load profiles are simulated?
How long does a load testing project take?
Do you need a production-like test environment?
Which risks are often missed without load testing?
Transparency about this case study
So the statements above can be judged properly, we disclose what kind of project this is, what the results are based on and who reviewed the text. More on our project approach and an overview of all reference projects.
- Case type
- Client project, anonymised or shown under a project name – Real project; company name, industry details or individual figures are generalised at the customer's request.
- Measurement basis
- Measurements from repeated load runs: response times and error rates at defined user levels before and after optimisation.
- Measurement period
- Test window ahead of the seasonal peak
- Data source
- Load-testing tool reports and application monitoring of the shop; retailer anonymised.
- Scope of the figures
- Figures are rounded and stripped of identifying details; the order of magnitude is preserved.
- Publication status
- Evidence pending in the new approval register
- Approval scope
- The existing anonymised publication remains available; case-specific approval evidence still needs to be recorded in the new register.
- Evidence record
- Internal project file and anonymised reference record.
- Technical review
- Björn Groenewold, Managing Director of Groenewold IT Solutions GmbH and Hyperspace GmbH –
Change history
- Evidence details added to “load testing for e-commerce peak load”: case type, measurement basis, data source and technical review.
- Results and solution description of “load testing for e-commerce peak load” revised; the German version was aligned.
- Case study “load testing for e-commerce peak load” published.
Project Details
Industry
Completed
Campaign delivered within latency budgets
Technologies
More References
Planning a similar project?
Use our interactive cost calculators for an initial estimate – free and non-binding. Or schedule a consultation directly with our experts.