Course contentsShow
← System Design
Lesson 118 of 1,9193. Load BalancingFree lesson

SSL/TLS Termination at Load Balancers

Understand offloading encryption/decryption to load balancers, certificate management, and end-to-end encryption tradeoffs.

SSL/TLS Termination at Load Balancers

You'll learn how load balancers can handle encryption/decryption to simplify backend infrastructure and what tradeoffs this creates.

What Is SSL/TLS Termination?

SSL/TLS termination means the load balancer decrypts incoming HTTPS traffic, then forwards plain HTTP requests to backend servers. Think of it like a security checkpoint at an airport: visitors get screened once at the entrance (load balancer), then move freely inside the secure area (internal network). Without termination, each backend server would need to decrypt traffic individually—like screening every visitor at every door inside the building.

Why Offload Encryption/Decryption?

Performance: Encryption is CPU-intensive. By handling it once at the load balancer, you reduce the computational load on backend servers, letting them focus on business logic.

Certificate Management: You only need to install and renew SSL certificates on the load balancer, not across dozens or hundreds of backend servers. This centralizes a critical security operation.

Simplified Backend: Backend servers can be simpler, lighter applications without SSL libraries and certificate handling code.

The End-to-End Encryption Tradeoff

Once traffic is decrypted at the load balancer, it typically travels unencrypted to backend servers over your internal network. If someone compromises your internal network, they could intercept this plain-text traffic. For highly sensitive data, you might use SSL/TLS pass-through (load balancer forwards encrypted traffic without decrypting) or re-encryption (terminate at load balancer, then re-encrypt to backends).

This creates a tradeoff: convenience and performance versus maximum security.

Key Takeaway: SSL/TLS termination at load balancers centralizes encryption overhead and certificate management, improving performance and operational simplicity, but requires trusting your internal network security or adding re-encryption for sensitive data.