How do you terminate TLS efficiently on a busy proxy?
IntermediateProductionLoad Balancing, Proxies & nginx in Production
Answer
Prefer TLS 1.3, ECDSA certificates, session resumption (session cache and tickets with rotated keys), HTTP/2 or HTTP/3 to amortize handshakes, OCSP stapling, and hardware AES (AES-NI). Keep upstream connections alive so TLS is only paid at the edge.
Measure with openssl s_time and watch CPU per handshake.
More on Load Balancing, Proxies & nginx in Production
How do you choose between ALB, NLB and an nginx or Envoy fleet?IntermediateHow do you tune ALB idle timeout and backend keep-alive to avoid 502s?IntermediateWhich nginx directives matter most for a production reverse proxy?IntermediateHow do you do rate limiting and abuse protection in nginx?IntermediateHow do you achieve zero-downtime configuration reloads in nginx and HAProxy?IntermediateHow would you design a highly available load-balancing tier on-prem or in a colo?Advanced