Key Concepts & Self-Assessment20 Key Facts
Review key Load Balancing: Layer 4 vs Layer 7 Routing, Algorithms & High Availability exam facts and rate your mastery to track revision.
Progress: 0/20 Rated 0 Mastered 0 Review Later
#1
Load balancing distributes incoming network traffic across multiple servers to optimize compute utilization, maximize throughput, and eliminate single points of failure.
#2
High availability is achieved through load balancers by rerouting user traffic automatically when individual backend servers or application processes experience unexpected outages.
#3
Active health checks periodically send HTTP GET requests or TCP SYN packets to verify that backend nodes are responsive before routing traffic.
#4
Layer 4 load balancing operates at the transport layer, routing network packets based on source and destination IP addresses and port numbers.
#5
Because Layer 4 balancers do not inspect application-layer packet contents, they achieve exceptionally high throughput and minimal processing latency.
#6
Direct Server Return enables backend servers to respond directly to clients, bypassing the Layer 4 load balancer on outbound data transmission.
#7
Layer 7 load balancing operates at the application layer, terminating client connections to inspect HTTP headers, URI paths, and request parameters.
#8
Layer 7 balancers enable content-based routing, directing image requests to media clusters and API calls to microservice backends based on URL paths.
#9
SSL and TLS termination performed at Layer 7 offloads encryption decryption overhead from internal application servers, simplifying centralized security certificate management.
#10
The Round Robin algorithm distributes client requests sequentially across a list of servers in cyclical order without evaluating existing server workloads.
#11
Weighted Round Robin assigns integer weights to servers based on hardware capacity, directing proportionally higher request volumes to more powerful nodes.
#12
The Least Connections algorithm directs new incoming requests dynamically to the backend server currently maintaining the smallest number of active sessions.
#13
Weighted Least Connections combines connection counts with server capacity ratings, balancing traffic effectively when backend nodes possess unequal hardware specifications.
#14
Source IP Hash load balancing generates a hash key from the client IP address to ensure a user routes consistently to the same server.
#15
Sticky sessions or session affinity use HTTP cookies to bind a client browser to a specific backend server throughout an active session.
#16
Consistent Hashing minimizes cache misses and remapping overhead when backend servers are dynamically added or removed from distributed caching clusters.
#17
Global Server Load Balancing utilizes Anycast IP routing and DNS intelligence to direct client traffic to the geographically nearest healthy datacenter.
#18
Hardware load balancers like F5 BIG-IP utilize specialized application-specific integrated circuits, whereas software balancers like HAProxy run on commodity hardware.
#19
Cloud-native load balancers, including AWS Application Load Balancer and Google Cloud Load Balancing, scale elastic compute capacity automatically to match incoming traffic.
#20
Reverse proxies frequently operate as Layer 7 load balancers, providing combined caching, rate limiting, SSL termination, and intelligent traffic routing.
Subject Specialist Commentary
Analytical perspective & practical exam advice from the Master10 academic board
Selecting between Layer 4 and Layer 7 load balancing requires balancing raw execution speed against granular routing intelligence. Layer 4 devices deliver maximum packet throughput and ultra-low latency because they bypass payload parsing, making them ideal for high-volume media streaming, online gaming, and generic TCP workloads. In contrast, Layer 7 balancing introduces modest CPU overhead to inspect HTTP headers, enabling URL-based microservice dispatching, SSL offloading, and cookie-based sticky sessions.
Production system reliability hinges upon combining robust active health check probes with appropriate scheduling algorithms to prevent cascading node outages. When backend instances exhibit varied compute capacities or long-lived database connections, engineering teams favor dynamic least-connection strategies over static round-robin dispatching. Remember key architectural load balancing evaluation criteria for examination success using the mnemonic SCALE: Session persistence, Capacity weighting, Algorithm selection, Layer architecture, and Edge health monitoring.
Related Knowledge Topics to Discover
Looking for more GK practice?
Explore 52,789+ questions across 65 General Knowledge categories.