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?
Ideally weeks before go-live—time for bottleneck analysis and optimisation. Last-minute tests often find issues that cannot be fixed safely in time. Before seasonal peaks, server load testing is part of release planning.
Which load profiles are simulated?
User journeys such as browse, search, listing and checkout; concurrent session spikes and API load on ERP, payment and CDN. Realistic profiles from anonymised production traffic beat generic “X requests per second”.
How long does a load testing project take?
From a few days (load smoke) to several weeks including optimisation cycles—depending on system landscape and test environment. DB pools, caching and autoscaling are tuned iteratively; DevOps consulting supports repeatable deployments afterwards.
Do you need a production-like test environment?
Yes, as far as possible—otherwise CDN, caching, database size and network skew results. External services (payment, carriers) are often mocked or sandboxed. Operations tie in with managed hosting with SLA and monitoring.
Which risks are often missed without load testing?
Database bottlenecks, session stickiness, checkout timeouts, payment API limits and cache miss cascades. Load tests surface weaknesses before the peak—not on campaign day. The performance optimisation calculator helps budget follow-up work.
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.