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.
More on Latency
p99 latency jumped from 200 ms to 3 s right after a deploy; error rate is flat.BeginnerThe API is slow, the database shows 100% CPU, and the slow query log is full of one query doing a sequential scan.BeginnerA JVM service has latency spikes every 30–60 seconds; GC logs show "Pause Full (G1 Compaction Pause)" taking 4 seconds.IntermediateThe first request after idle takes 5 seconds; Lambda logs show "Init Duration: 4512.33 ms".BeginnerLatency grows with traffic and logs show "QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00".IntermediateA container uses only 40% of its CPU limit on average, yet latency is high; `container_cpu_cfs_throttled_periods_total` keeps rising.Advanced