Giving the right answer, every time, even when parts fail.
Reliability means a system does what it should, correctly, and keeps doing it over time, even when some parts fail.
Reliability is the chance that a system works correctly for a given time. We design for fault tolerance: the system keeps working even when a part breaks.
Parts fail all the time. At large scale, something is failing somewhere every day.
| Kind | Example | Protection |
|---|---|---|
| Hardware | Disk dies, power cut, bad network cable | Redundancy, RAID, many data centres |
| Software | A bug, memory leak, bad release | Testing, code review, safe rollouts |
| Human | Someone deletes the wrong table | Backups, permissions, approvals |
| Network | Slow or lost messages | Retries, timeouts |
| Overload | Too many requests at once | Rate limiting, queues, scaling |
Retrying a request that failed is a good idea for random glitches. But there are two rules.
| Term | Meaning in easy words |
|---|---|
| Fault | One part of the system goes wrong |
| Failure | The whole system stops giving the service users expect |
| Fault tolerance | Working correctly even when parts fail |
| Redundancy | Extra copies of parts to cover for failures |
| Durability | Saved data stays saved, even after crashes |
| Idempotent | Doing the same request many times has the same result as once |
| Timeout | A limit on how long we wait for a reply |
| Retry | Trying a failed request again |
| Backoff | Waiting longer between each retry |
| Graceful degradation | Losing a small feature but keeping the main service working |
| Chaos testing | Breaking things on purpose to find weak spots |
| Choice | We gain | We lose |
|---|---|---|
| More retries | Survive glitches | More load when the service is already struggling |
| Longer timeouts | Fewer false failures | Users wait longer |
| Writing to several copies before replying | Safer data | Slower writes |
| Frequent backups | Less data lost in a disaster | More storage and cost |
These are general ideas. The exact methods inside each company are more complex.