ロードバランシングは、複数のサーバーに対して入ってくるリクエストを分散させ、水平スケーリングを実現し、可用性を向上させ、単一のサーバーが過負荷になるのを防ぎます。これはスケーラブルで信頼できるシステムの基本的なコンポーネントです。
ロードバランサーが行うこと
A LOAD BALANCER sits in front of multiple servers and distributes requests among them:
Client → LOAD BALANCER → ┬→ Server 1
├→ Server 2
└→ Server 3
→ spreads load → no single server is overwhelmed (enables HORIZONTAL scaling)
→ routes around FAILED servers (health checks) → high AVAILABILITY
→ a single entry point for clients
ロードバランシングが重要な理由
✓ SCALABILITY → distributes load across many servers → handle more traffic by adding servers
✓ AVAILABILITY → if a server fails, route to healthy ones → no single point of failure
✓ PERFORMANCE → prevents any server from being overloaded → consistent response times
✓ Enables ZERO-DOWNTIME deploys, maintenance (take servers out of rotation)
→ a foundation of scalable, highly-available systems.
