AIAPIDate & TimeImageJSONMathNext.jsSecuritySEOTextDesignDatabase
All ToolsWorkspacesWorkflowsLearnError EncyclopediaAboutPrivacyTermsContactEmail

© 2026 Web Util Slyce. All tools run client-side — your data stays private.

Back to Learn

What is a Load Balancer? — Load Balancing Explained

A load balancer distributes incoming network traffic across multiple backend servers. It ensures no single server is overwhelmed, provides high availability by routing around failed servers, and enables horizontal scaling.

What Is It?

A load balancer sits between clients and servers, acting as a traffic cop. It receives incoming requests and distributes them across a pool of backend servers based on algorithms like round robin, least connections, or IP hash. Load balancers also perform health checks, removing unhealthy servers from the pool automatically.

How It Works

When a user sends a request, the load balancer intercepts it and selects a backend server using its configured algorithm. Round robin cycles through servers in order. Least connections sends to the server with fewest active connections. IP hash routes the same client to the same server (session persistence). The load balancer also terminates TLS, so backend servers don't have to.

Key Characteristics

  • Traffic distribution — spreads requests across multiple servers evenly
  • Health monitoring — removes unhealthy servers from the pool
  • TLS termination — handles HTTPS decryption at the load balancer
  • Auto-scaling — integrates with cloud auto-scaling groups
  • Sticky sessions — routes the same client to the same server when needed

Common Use Cases

  • High-traffic websites distributing load across web servers
  • Database read replicas distributing read queries
  • Microservices with multiple instances of each service
  • Cloud applications with auto-scaling groups
  • Disaster recovery — routing traffic to a secondary region

Free Online Tools

SSL/TLS Guide HTTP Status Codes REST vs GraphQL

Frequently Asked Questions

What is the difference between a load balancer and a reverse proxy?

A load balancer distributes traffic across multiple servers for scalability and availability. A reverse proxy typically serves cached content or protects a single backend. NGINX and HAProxy can function as both.

Can a load balancer prevent DDoS attacks?

Yes, load balancers can absorb distributed traffic by distributing it across many backend servers. Cloud load balancers (AWS ALB, Cloudflare) also include DDoS protection features.