Guide
Load Balancing and High Availability
Load balancing distributes work among service instances. High availability maintains service through selected failures using redundancy, detection and recovery. Adding a second server does not remove shared database, DNS, storage or control-plane failure points. Availability goals need measurable recovery and data-loss assumptions.
Meaning and purpose
Load balancing distributes work among service instances. High availability maintains service through selected failures using redundancy, detection and recovery. Adding a second server does not remove shared database, DNS, storage or control-plane failure points. Availability goals need measurable recovery and data-loss assumptions.
How it works in context
A Layer 4 balancer handles transport flows; a Layer 7 balancer can use application information. Health checks decide whether an instance is eligible for new work. Session persistence keeps selected clients associated with an instance but can complicate failover. Active-active and active-passive designs handle state and recovery differently.
Technical terms in this section
Layer 4 load balancing
Layer 4 balancing selects backends using transport-connection information rather than required HTTP interpretation.
Layer 7 load balancing
Layer 7 balancing uses application information such as hostname or request path.
Round-robin
Round-robin rotates selections among backends without guaranteeing equal resource consumption.
Least connections
Least-connections balancing prefers backends with fewer observed active connections.
Weighted balancing
Weighted balancing assigns relative selection shares according to configured weights.
Health checks
Health checks determine backend eligibility using conditions that should represent actual service usability.
Active-active infrastructure
Active-active infrastructure serves work from multiple instances concurrently with state-coordination requirements.
Active-passive infrastructure
Active-passive infrastructure keeps a standby that takes over after defined failure detection and promotion.
Failover
Failover moves service to an alternate path or instance under defined failure conditions.
Geographic load balancing
Geographic balancing selects sites using location, health and policy rather than distance alone.
Global Server Load Balancing
Global server load balancing steers clients across sites using DNS or other routing mechanisms.
DNS-based balancing
DNS-based balancing distributes endpoint answers subject to caching and client selection behavior.
Anycast load balancing
Anycast balancing uses routing-selected ingress without guaranteeing equal load among sites.
Session persistence
Session persistence keeps selected clients on one backend and affects state and failover design.
Disaster recovery
Disaster recovery restores service and data according to tested recovery-time and data-loss objectives.
Redundancy
Redundancy supplies alternate components or paths with meaningful failure-dependency separation.
Operational checks and security
Test failures of dependencies as well as application processes. A health endpoint that always returns 200 can hide an unusable service. DNS-based failover is affected by caching, and data replication must be evaluated separately from request distribution.
Read-only example
These commands inspect the surrounding system or protocol. They do not automatically change its configuration or establish every property of this term. Replace example targets only with destinations you are authorized to inspect.
curl -I https://example.com
# Exercise a documented failover procedure in a controlled environment
Sources and further reading
These explanations are educational. Implementations, policies and standards evolve; check the current specification and software version before changing a system.