Scaling · Intermediate · 11 min

Load Balancing

Route requests across healthy instances and see why shared state still matters.

STEP 1 / 12
Find the hot instance — isometric concept diagramCapacity is useful only when requests reach it. Components: 1. Clients. Representative clients, not a literal user count; 2. App A. Logical component or processing boundary. Connections: 1. Clients to App A: Find the hot instance; 2. App A to Clients: Reply: App A. Illustrations are conceptual, not deployed capacity or user counts.Clients → App A: Find the hot instance1App A → Clients: Reply: App A2Clients: representative traffic illustration; figure count is not a workload measurement.1ClientsRepresentative clients, not aliteral user countApp A: Logical component or processing boundary2App ALogical component or processingboundary
1Clients2App A
  1. 1Clients → App ARequestFind the hot instance
  2. 2App A → ClientsReplyReply: App A

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

2 components visible · Clients + App A highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • Explain request distribution.
  • Separate health checks from guaranteed success.
  • Locate shared bottlenecks and session state.

PUT THE IDEA TO WORK

From learning to practice

RELATED PATTERNS

Client–Server ↗

Microservices ↗

Further reading

AWS · What is load balancing? ↗