What Is a Cloud Load Balancer?

halfbrain_logo512adminJune 22, 2026
98 lượt xem

A cloud load balancer distributes traffic across multiple backend targets such as virtual machines, containers, or services.

For a cloud architect, the load balancer is not just a traffic splitter. It is the public entry point, health checker, routing layer, TLS termination point, and reliability control for many workloads.

The core idea is simple: users should connect to a stable front door, while unhealthy or overloaded backends can be removed or replaced behind it.

Cloud Architecture Brief

Architecture Problem

A single server cannot safely handle traffic growth, failure, deployment changes, and public access at the same time.

Business Context

Companies need load balancers to keep applications available, scale traffic, route requests, terminate HTTPS, and remove unhealthy servers automatically.

Core Concept

A load balancer is a traffic front door that accepts client requests and forwards them to healthy backend targets based on rules and health checks.

Learn Once, Apply Ten

If you understand front door, backend pool, health check, routing rule, TLS termination, and failover, you can understand load balancers in AWS, Azure, Google Cloud, Kubernetes, Nginx, and enterprise networks.

Architecture Decision

Architecture Pattern

three_tier

Workload Type

web_application

Cloud Model

public_cloud

Reference Architecture

DNS points to a public load balancer. The load balancer terminates HTTPS, checks backend health, routes traffic to app servers in private subnets, and sends logs to observability storage.

Key Design Decision

Put the load balancer in front of multiple private backend targets instead of exposing each server directly.

Alternatives

Expose one VM directly; use DNS round-robin only; put public IPs on every app server; use one reverse proxy without redundancy.

Trade-offs

A managed load balancer increases cost but reduces operational burden. A self-managed proxy gives control but requires HA, patching, monitoring, and capacity planning.

Cloud Building Blocks

Compute Layer

Backend compute can be VMs, containers, autoscaling groups, Kubernetes services, or serverless targets depending on platform design.

Network Layer

Load balancer sits in public subnet or managed edge layer, while backend targets usually stay in private subnets with restricted inbound rules.

Storage Layer

Static assets should often go through CDN and object storage instead of passing all traffic through the application load balancer.

Database Layer

The load balancer should not expose databases directly. Databases remain private behind the application layer.

Security Layer

Use HTTPS, modern TLS policy, web firewall when needed, restricted backend security groups, header controls, and access logs.

Observability Layer

Monitor request count, latency, HTTP status codes, target health, TLS errors, rejected connections, and backend saturation.

Enterprise Readiness

Reliability Design

Use health checks, multiple targets, multiple zones, autoscaling integration, and safe deployment strategies.

Scalability Design

Scale backend pools horizontally and keep the application stateless so any healthy instance can serve requests.

Security Controls

Allow backend traffic only from the load balancer, block direct public access to app servers, and log public requests.

Cost Optimization

Use CDN for cacheable content, avoid unnecessary cross-zone traffic when possible, and choose the correct load balancer type for workload needs.

Failure & Job Readiness

Common Failure Modes

Bad health check path, expired certificate, no healthy targets, wrong firewall rule, overloaded backend, wrong routing rule, and sticky session problems.

Risk Checklist

Confirm HTTPS works; confirm health checks are accurate; confirm at least two backend targets; confirm backend is not public; confirm access logs are enabled.

Recovery Strategy

Rollback routing rule, renew certificate, remove bad target, scale backend, fix health check, or shift traffic to a healthy environment.

Real Company Scenario

A SaaS company needs to deploy new app versions without downtime while keeping backend servers private.

Interview Angle

Explain how a load balancer improves availability and why health checks can cause outages if configured incorrectly.

Hands-on Lab

Draw a public load balancer with two private app servers in different zones. Define health check path, security rules, TLS certificate, and failure behavior.

Related Concepts

High Availability; VPC; Autoscaling; CDN; Web Application Firewall

Share:

Disclaimer: The guides, checklists, commands, and examples on HalfBrain.net are provided for educational and operational reference only. Server environments, hosting providers, software versions, security settings, and WordPress configurations can vary, so you should always review commands before running them on your own system. We do our best to keep the content accurate and useful, but we cannot guarantee that every command, configuration, or recommendation will fit every environment. Always back up your website, database, and server configuration before making changes. HalfBrain.net is not responsible for data loss, downtime, security incidents, misconfiguration, or other issues that may result from applying the information on this website. Use the material at your own discretion.

Leave a Reply

Your email address will not be published. Required fields are marked *