What is redundancy? Explained with a spare tyre
Redundancy means keeping a second working copy of an important part, like a server or database, so the service keeps running if one fails. Explained with the spare tyre in a car.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- DevOps
In one sentence: Redundancy means keeping a second, working copy of an important part of a system, such as a server or a database, so that if one copy fails, the other takes over and your service keeps running.
The everyday picture
Think about the spare tyre in the boot (the trunk) of a car. Most trips, you never touch it. It just sits there, ready.
Then one day a tyre goes flat on a long road. Without a spare, the trip is over and you wait for help. With a spare, you swap it on and keep driving. The spare is useful because it is a separate tyre: the nail that punctured one tyre did not touch the one in the boot.
Redundancy works the same way for software. Your app runs on parts like servers and databases. If there is only one of a part and it fails, everything stops. A second copy, kept somewhere separate, is your spare tyre.
Your users ride on the main server. When health checks spot that it has failed, traffic switches to the separate second copy, and the service stays online, like swapping on the spare tyre and driving on.
How it works, step by step
- Find the single points of failure (the tyres with no spare). A single point of failure is any part that stops the whole service if it breaks. Google Cloud's reliability guidance says to avoid them, for example a critical database that lives in only one place.
- Add a second copy in a separate place (a spare kept apart from the wheels). Cloud providers split their data centres into separate zones and regions. Copies in different zones are less likely to fail at the same time, because a zone is designed to fail independently of the others.
- Watch for failure (noticing the flat). Automatic health checks keep asking each copy, "Are you working?" A load balancer, the part that hands out incoming requests, stops sending visitors to a copy that does not answer.
- Switch over (putting the spare on). This switch is called failover: traffic moves to the healthy copy. AWS guidance describes shifting traffic to the remaining healthy resources, often in another zone.
- Check the spare regularly (checking its air pressure). A flat spare is no help. AWS lists "not testing or validating failover design" as a common mistake, and recommends checking that the standby copy itself is healthy.
Try it · Spot the weak point
Which part has no spare tyre?
A shop's website is set up like this. Which part is the single point of failure?
Where the picture stops
- A spare tyre sits idle until you need it. In software, the copies often all work at the same time and share the load, so a failure just means the others carry a bit more.
- Changing a tyre means stopping the car and doing it by hand. Good software redundancy can switch over automatically, without anyone stepping in.
- A spare tyre is not a copy of your luggage. In the same way, redundancy keeps you running but is not a backup: Microsoft notes that automatically copying data to a second storage account does not protect against accidental deletion, and suggests backups as well.
Why it matters for your business
- Fewer outages. When one server or one zone has a problem, customers keep using your website or app instead of seeing an error page.
- Less stress during problems. With automatic failover, a broken part becomes a repair job for the next working day, not a middle-of-the-night emergency.
- Spending where it counts. Every extra copy costs money and adds work. Google Cloud advises weighing cost, complexity and speed when adding redundancy, so you can protect the parts that earn money first.
An example
Imagine a small online bakery that takes orders through its website. At first, the site and its order database each run on a single server in one data centre. When that data centre has a power problem, the shop is offline for an afternoon.
So they run two copies of the website in two zones, behind a load balancer, and switch on a standby copy of the database in the second zone. The next time one zone has trouble, health checks spot it and orders keep flowing through the other zone. They keep their nightly backups too, in case someone deletes the wrong data.
Try it · Myth or fact
Redundancy: myth or fact?
Decide for yourself first, then tap each statement to check it.
0 of 4 checked
Frequently asked questions
What is a single point of failure?
It is any part of a system that, if it breaks, stops the whole service. Redundancy removes it by adding a second copy that can take over.
Is redundancy the same as a backup?
No. Redundancy keeps a live copy ready so the service keeps running. A backup is a saved copy from an earlier time that lets you restore data after it is deleted or damaged. Most businesses need both.
What is failover?
Failover is the moment traffic switches from a failed copy to a healthy one. It is usually triggered automatically by health checks.
Does redundancy make a system cost more?
Usually yes, because you pay for extra copies and the work of keeping them in step. That is why teams add it first to the parts whose failure would hurt most.
Related explainers
The DevDrift helps teams set up cloud hosting with redundancy and health checks: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.