| Scale | System Setup | Redundancy Level | Fault Tolerance Features | Monitoring & Recovery |
|---|---|---|---|---|
| 100 users | Single server with backup | Basic: one backup server or snapshot | Simple failover, manual recovery | Basic alerts, manual checks |
| 10,000 users | Multiple servers with load balancer | Active-passive redundancy | Automatic failover, health checks | Automated monitoring, alerting |
| 1,000,000 users | Distributed servers across regions | Active-active redundancy, data replication | Automatic failover, self-healing, data consistency checks | Advanced monitoring, auto-scaling, incident response |
| 100,000,000 users | Global multi-region clusters with microservices | Multi-level redundancy (network, compute, storage) | Geo-redundancy, disaster recovery, chaos engineering | AI-driven monitoring, predictive failure detection |
Redundancy and fault tolerance in HLD - Scalability & System Analysis
At small scale, the first bottleneck is often the single point of failure in the server or storage. Without redundancy, any hardware or software failure causes downtime.
As users grow, network and data replication delays become bottlenecks. Ensuring data consistency across redundant systems can slow down operations.
At very large scale, complexity in managing failover and recovery across regions can cause delays and partial outages.
- Horizontal scaling: Add more servers to distribute load and provide redundancy.
- Active-active redundancy: Run multiple instances simultaneously to avoid downtime.
- Data replication: Use synchronous or asynchronous replication to keep copies of data.
- Load balancers: Detect failures and route traffic to healthy servers.
- Health checks and monitoring: Automatically detect failures and trigger failover.
- Disaster recovery plans: Backup data and systems in different geographic locations.
- Chaos engineering: Test system resilience by simulating failures.
Requests per second (RPS):
- 100 users: ~10-50 RPS
- 10,000 users: ~1,000-5,000 RPS
- 1,000,000 users: ~100,000-500,000 RPS
- 100,000,000 users: ~10,000,000+ RPS
Storage needs increase with data replication and backups. For example, 1 TB primary data may require 2-3 TB total with redundancy.
Network bandwidth must support replication traffic and failover synchronization, which grows with scale.
When discussing redundancy and fault tolerance, start by identifying single points of failure. Then explain how to add redundancy at each layer: compute, storage, network.
Describe trade-offs between synchronous and asynchronous replication, and how failover is detected and handled.
Use real-world analogies like backup generators or multiple cashiers to explain concepts simply.
Your database handles 1000 QPS. Traffic grows 10x. What do you do first?
Answer: Add read replicas and implement caching to reduce load on the primary database before scaling vertically or sharding.
Practice
Solution
Step 1: Understand redundancy concept
Redundancy means having extra components or backups so if one fails, the system still works.Step 2: Identify the main goal of redundancy
The goal is to avoid single points of failure by having backups ready.Final Answer:
To have backup components to avoid single points of failure -> Option CQuick Check:
Redundancy = Backup components [OK]
- Confusing redundancy with performance improvement
- Thinking redundancy reduces cost
- Assuming redundancy simplifies architecture
Solution
Step 1: Identify fault tolerance features
Fault tolerance means the system can keep working even if some parts fail.Step 2: Evaluate options for fault tolerance
A load balancer sends traffic to multiple servers, so if one fails, others handle requests.Final Answer:
A load balancer distributing traffic to multiple servers -> Option AQuick Check:
Fault tolerance = multiple servers with load balancer [OK]
- Choosing single server as fault tolerant
- Ignoring replication or backups
- Confusing fault tolerance with error shutdown
Solution
Step 1: Understand active-active mode
In active-active, both servers handle requests simultaneously to share load and provide backup.Step 2: Analyze failure impact
If one server fails, the other continues handling all requests without interruption.Final Answer:
Requests are automatically handled by the remaining active server -> Option DQuick Check:
Active-active means failover to active server [OK]
- Thinking requests are lost on failure
- Assuming system queues requests indefinitely
- Believing system shuts down on failure
Solution
Step 1: Identify fault tolerance problem
Fault tolerance requires backups or replicas to continue working if one fails.Step 2: Analyze the system setup
Single database without replication means no backup exists to handle failure.Final Answer:
No backup database to take over on failure -> Option BQuick Check:
No replication = no fault tolerance backup [OK]
- Confusing replication with too many replicas
- Blaming load balancer for database crash
- Thinking redundancy causes delays here
Solution
Step 1: Understand availability requirement
The service must stay available even if one entire data center fails.Step 2: Evaluate design options for fault tolerance
Deploying in two separate data centers with data replication ensures if one fails, the other serves requests.Step 3: Compare other options
Single data center or single server cannot handle full data center failure; daily backups do not provide immediate availability.Final Answer:
Deploy the service in two geographically separate data centers with data replication -> Option AQuick Check:
Geo-redundancy + replication = high availability [OK]
- Relying on single data center for fault tolerance
- Confusing backup power with data center failure protection
- Thinking daily backups ensure immediate availability
Ready to prove it?
Pass the test and this pattern moves unknown
