0
0
HLDsystem_design~12 mins

Single point of failure identification in HLD - Architecture Diagram

Choose your learning style9 modes available
System Overview - Single point of failure identification

This system demonstrates a simple web application architecture. It highlights components where failure can stop the entire system from working, known as single points of failure. The goal is to identify these points and understand their impact and mitigation.

Architecture Diagram
User
  |
  v
Load Balancer
  |
  v
API Gateway
  |
  v
Web Service
  |
  v
Cache
  |
  v
Database
Components
User
client
End user accessing the web application
Load Balancer
load_balancer
Distributes incoming requests to API Gateway instances
API Gateway
api_gateway
Routes requests to backend services and handles authentication
Web Service
service
Processes business logic and interacts with database and cache
Cache
cache
Stores frequently accessed data to reduce database load
Database
database
Stores persistent application data
Request Flow - 10 Hops
UserLoad Balancer
Load BalancerAPI Gateway
API GatewayWeb Service
Web ServiceCache
CacheWeb Service
Web ServiceDatabase
DatabaseWeb Service
Web ServiceAPI Gateway
API GatewayLoad Balancer
Load BalancerUser
Failure Scenario
Component Fails:Load Balancer
Impact:All incoming user requests fail to reach the API Gateway, causing complete service outage.
Mitigation:Deploy multiple load balancers with failover or use a managed load balancing service to avoid single point of failure.
Architecture Quiz - 3 Questions
Test your understanding
Which component is a single point of failure that can block all user requests if it fails?
AWeb Service
BCache
CLoad Balancer
DDatabase
Design Principle
This architecture highlights the importance of identifying components that can cause total system failure if they stop working. Load balancers, as the entry point, are critical and must be made redundant. Caches help reduce load on databases and can serve reads during database outages, improving resilience.