Many systems work perfectly in testing and fail on launch day. The cause is usually load: more users, more requests and more data than anyone tried. Load testing simulates that traffic in advance.
Types of performance tests
| Test | Purpose |
|---|
| Load test | Behaviour at expected peak traffic |
| Stress test | Find the breaking point |
| Spike test | Sudden surges, like a campaign going live |
| Soak test | Stability over hours, catching memory leaks |
Planning a test
- Define realistic user journeys: browse, search, add to cart, pay.
- Estimate peak traffic from analytics and business plans.
- Use a production-like environment and realistic data volumes.
- Decide success criteria, such as p95 latency under one second and errors under 1%.
- Coordinate with third parties; do not load test someone else's API without permission.
Tools
Tired of risky deployments and surprise downtime?
We set up CI/CD, monitoring and infrastructure that lets your team ship calmly.
Open-source tools such as k6, Locust, JMeter and Gatling can generate traffic from scripts. Managed services can generate load from multiple regions.
Reading results
- Watch latency percentiles, not just averages.
- Correlate with server metrics: CPU, memory, database connections.
- Find the first resource to saturate; that is your bottleneck.
- Check error types, such as timeouts versus server errors.
Common bottlenecks
- Slow database queries and missing indexes.
- Too few app workers or database connections.
- No caching of repeated work.
- Synchronous calls to slow external services.
- Large unoptimised images.
Key takeaways
- Test realistic journeys at realistic volumes.
- Set clear success criteria.
- Watch percentiles and correlate with resource metrics.
- Fix the first bottleneck, then test again.
Frequently asked questions
Can we load test production?
Carefully and off-peak, or better, in a production-like staging environment.
How often should we load test?
Before major launches and after significant architecture changes.
Can you load test our system?
Yes. We run load tests and fix the bottlenecks they reveal.
Tired of risky deployments and surprise downtime?
We set up CI/CD, monitoring and infrastructure that lets your team ship calmly.
Comments (0)
Sign in to comment.