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 →
- Enable TLS 1.3 and session resumption
- Terminate TLS at edge locations close to users (CDN)
- Use OCSP stapling so clients don't fetch revocation info
- Use ECDSA certificates, which are cheaper than RSA
- Use HTTP/2 or HTTP/3 and long-lived connections to origin
- 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.
More on TLS, HTTP & Application Layer
Explain what happens in a TLS 1.3 handshake in a few sentences.BeginnerYour site must redirect all HTTP traffic to HTTPS. How do you do it?BeginnerWhat is the difference between 4xx and 5xx errors, and which ones do you see most in networking problems?BeginnerHTTP/1.1, HTTP/2 and HTTP/3: what changed and why does it matter in operations?BeginnerThe browser console shows a CORS error when your frontend calls your API. What is it and how do you fix it?BeginnerHow do you check which certificate a server presents and when it expires?Beginner