Interview Prep/Networking/TLS, HTTP & Application Layer

How do you minimize TLS handshake latency for a global application?

AdvancedScenarioTLS, HTTP & Application Layer
Answer

Situation read → Cut round trips and cryptographic work.

What I'd do →

  1. Enable TLS 1.3 and session resumption
  2. Terminate TLS at edge locations close to users (CDN)
  3. Use OCSP stapling so clients don't fetch revocation info
  4. Use ECDSA certificates, which are cheaper than RSA
  5. Use HTTP/2 or HTTP/3 and long-lived connections to origin
  6. Measure with curl -w '%{time_connect} %{time_appconnect}\n' -so /dev/null https://example.com

Why → Every round trip costs the full RTT, so the cheapest handshake is the one you skip.

Interview tip → Mention that 0-RTT in TLS 1.3 has replay risks, so only for idempotent requests.

All Networking questions Roadmap: Networking for DevOps

More on TLS, HTTP & Application Layer