Monitoring glossary
What is TTFB (time to first byte)?
TTFB is the time from a visitor starting the request to the first byte of the response arriving. It includes the network, the connection and your server’s thinking time.
3 min read9 sectionsUpdated
On this page
| Phase | What happens | Typical cause of slowness |
|---|---|---|
| Redirects | Following 301/302 responses | http to https to www chains |
| DNS lookup | Resolving the domain | Slow DNS provider, no caching |
| TCP connection | Opening a socket | Distance to the server |
| TLS handshake | Negotiating encryption | Old TLS versions, no session resumption |
| Server processing | Your code building the response | Database queries, uncached rendering, cold starts |
Thresholds
Google's guidance for field data: good at 0.8 s or less, needs improvement up to 1.8 s, poor above that, measured at the 75th percentile of page loads. TTFB is not a Core Web Vital itself, but it sets a floor for LCP: the largest element cannot paint before the HTML arrives.
One curl from your laptop tells you about one network path. For a real picture, measure:
- From real visitors with real user monitoring, which records TTFB for every page view by country and device.
- From several regions with uptime checks, which record response time on a schedule.
- Inside the server with APM, which shows how much of TTFB is your code and which query or call dominates.
How to reduce it
Start with the full guide to reducing TTFB. The short version:
- Cache HTML at a CDN for pages that are the same for everyone.
- Remove redirect chains: link directly to the final URL.
- Fix slow queries found in traces, especially N+1 patterns.
- Serve from close to users with a CDN or regional deployment.
- Keep connections warm with HTTP/2 or HTTP/3 and TLS session resumption.
Is TTFB a Core Web Vital?
No. The Core Web Vitals are LCP, INP and CLS. TTFB is a diagnostic metric that strongly influences LCP.
Why is my TTFB fast locally but slow for users?
Your machine is close to the server and probably hits a warm cache. Real users add distance, slower networks, and cold caches. Real user data shows what they actually get.
Check it now, free
- Response time checker: Measure TTFB with DNS, connect, TLS and server time.
Related reading
- What is FCP (First Contentful Paint)?: First Contentful Paint explained: what FCP measures, the 1.8 second threshold, how it differs from LCP and TTFB, and the render-blocking fixes that improve it.
- IRCTC slow or not working at Tatkal time: what to do: Why IRCTC slows down at 10 and 11 a.m. Tatkal opening, how to check if it is down, and practical steps to book faster with fewer errors and payment failures.
- ERR_EMPTY_RESPONSE: why the server sent no data: Fix ERR_EMPTY_RESPONSE: worker crashes, plain HTTP sent to a TLS port, proxy misconfiguration and memory limits, with steps to see what the server did.
- High CPU usage on a Linux server: find the cause: Diagnose high CPU on a Linux server: read top, load, steal and iowait, find the busy process and thread, profile it and spot throttling.
- Let your AI agent debug production, safely: Give Claude Code, Cursor and other AI agents your incidents, logs, traces and stack traces: read-only by default, secrets masked, every call audited.
- A HetrixTools alternative: VitalRix vs HetrixTools: VitalRix vs HetrixTools: uptime and server monitoring, blacklist checks, status pages and alerts compared, plus APM, logs and on-call in one platform.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.