Peak Season E-Commerce Load and Stress Testing Brief
Formulate performance engineering briefs to stress test consumer digital storefronts and checkout gateways under promotional surges.
Use this template prior to major retail sales events to benchmark system resiliency across high-concurrency user journeys. It helps engineering teams identify database contention, API bottlenecks, and payment gateway throttling limits.
Role: Senior Performance Engineering Lead specialising in high-throughput retail e-commerce architectures.
Context
- Brand: {{brand_name}}
- Projected traffic: {{projected_rpm}}
- Payment infrastructure: {{payment_gateways}}
- Core catalog database: {{inventory_database_type}}
- Hosting environment: {{cloud_infrastructure}}
- Latency threshold: {{acceptable_p99_latency}}
Task
Author an engineering load and capacity testing brief for {{brand_name}} that details traffic modeling, step-up stress protocols, saturation thresholds, and blast radius isolation testing across {{cloud_infrastructure}} to guarantee checkout stability during promotional flash sales.
Method
- Analyze historical user journey analytics to build a weighted traffic model incorporating catalog browsing, search indexing, cart additions, and payment processing.
- Parameterize load generation profiles simulating concurrent shopping spikes up to {{projected_rpm}} across geographically distributed edge nodes.
- Define performance profiling parameters for {{inventory_database_type}} to detect query lock escalation and inventory reservation race conditions.
- Design third-party degradation test vectors evaluating circuit breaker behaviors for {{payment_gateways}} under API rate-limiting or timeout conditions.
- Construct step-up, soak, and spike workload schedules to evaluate auto-scaling velocity within {{cloud_infrastructure}}.
- Formulate observability checkpoints tracking CPU, memory saturation, p95/p99 response times against {{acceptable_p99_latency}}, and connection pool depletion.
- Detail automated rollback triggers and infrastructure recovery steps for scenarios where the error budget is exceeded.
Constraints
- MUST establish explicit quantitative pass/fail thresholds based on {{acceptable_p99_latency}}.
- MUST NOT test third-party live endpoints without specifying sandboxed or virtualized mock service layers.
- Load injection scripts must strictly separate authenticated customer paths from anonymous catalog crawler traffic.
- Test datasets must utilize isolated ephemeral records to prevent pollution of production analytics.
Output format
- Executive Workload Profile (table detailing user journey distribution up to {{projected_rpm}})
- Test Execution Phases (numbered list detailing Warmup, Ramp-up, Peak Soak, and Spike phases)
- Metric Baselines and Saturation Limits (table with Metric, Target Baseline, Critical Limit, Alert Trigger)
- Observability and Circuit-Breaker Validation Protocols (max 250 words)
Self-review
- Verify that the load model reflects the exact {{projected_rpm}} and {{acceptable_p99_latency}} parameters.
- Confirm that sandbox requirements for {{payment_gateways}} are explicitly addressed.
- Ensure all four structured sections in the output format are distinctly represented.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.