Users in Asia see 800 ms time-to-first-byte while US users see 80 ms.

BeginnerTroubleshootingLatency
Answer

Likely causes → Everything is served from one US region with no CDN, so every request pays transpacific round trips plus TLS handshakes.

Diagnose →

curl -o /dev/null -s -w 'dns:%{time_namelookup} connect:%{time_connect} tls:%{time_appconnect} ttfb:%{time_starttransfer}\n' https://app.example.com

Run it from a probe in Asia; high connect and TLS times confirm distance.

Fix → Put static assets and cacheable API responses behind a CDN, terminate TLS at the edge, and keep connections to the origin warm.

Prevent → Synthetic probes from each major market, and a multi-region read path when traffic justifies it.

All Real-World Interview questions Roadmap: Interview readiness

More on Latency