What is the purpose of stress testing beyond load testing, and what should a communication platform learn from deliberately breaking itself?
Show the full answer Hide the answer
The distinction
Load testing answers "can we handle the expected peak?" — a pass/fail against a target.
Stress testing answers "what happens beyond it?" — where the system breaks, how it breaks, and whether it recovers. The output is a description of behaviour, not a verdict.
What to learn
1. The order of failure. Which component saturates first, second, third. This ordering is the basis of the capacity plan and of the degradation ladder, because it tells you which controls actually matter.
2. The shape of degradation. Does the system slow gracefully, or does it collapse past a threshold? A gradual curve means there is warning and time to react. A cliff means the monitoring must detect the approach, because by the time it fires the system is already gone.
3. Whether it recovers when load is removed. This is the most important finding. A system that returns to health when load subsides has a survivable failure mode. One that stays broken has entered a metastable state — self-sustaining through retries, queued work or thundering reconnects — and cannot recover without operator intervention.
That distinction determines whether a traffic spike is an inconvenience or a multi-hour outage.
4. What fails first in a way that surprises you. Almost always a limit nobody was tracking: a connection pool, a file-descriptor ceiling, an ephemeral port range, a third-party rate limit, a fixed thread count. These are invisible in normal operation and decisive at the edge.
The communication-platform specifics
For real-time media the interesting questions are different from a request-response system:
- What happens to existing sessions when capacity runs out? Are they preserved while new ones are refused, or do all degrade together? Preserving in-flight sessions is almost always correct, and it must be designed.
- Do clients reconnect politely or storm? Failure produces mass reconnection, and whether that is spread or synchronised determines whether the system can recover.
- Does media quality degrade before connections drop? Reducing bitrate and resolution is a far better failure mode than disconnecting, and it must be an explicit, tested control.
The safety requirements
Stress tests break things, so they need a bounded blast radius, a tested abort mechanism, and — where run in production — a small traffic share and a low-traffic window. The finding "we could not stop the experiment" is itself severe, and better discovered during a test.