Definition
What it is
Latency is a measure of time, not amount. Bandwidth says how much data per second; latency says how long the first byte takes. A 1 Gbit/s link with 200 ms latency feels slower for interactive use than a 10 Mbit/s link with 20 ms latency — because the request round-trip dominates.
Common units: milliseconds (ms). Common flavours: RTT (round-trip time), TTFB (time to first byte), p50/p95/p99 (percentiles).
Why it matters
Google reports that 53% of mobile users abandon pages that take more than 3 seconds. Amazon measured 1% revenue loss per 100 ms of added latency. Every CDN, edge compute and HTTP/2 push exists to reduce latency, not bandwidth.
Physical vs network latency
Source | Example | Magnitude |
|---|---|---|
Speed of light (fiber) | NY↔London | ~28 ms one-way |
Router hops | Per hop | 1–10 ms |
DNS lookup | Cold | 20–200 ms |
TLS handshake | Full | 50–150 ms |
TCP slow start | Per RTT | grows |
Server processing | Compute | varies |
Queuing | Peak load | spikes |
Latency in the request chain
sequenceDiagram participant U as User participant D as DNS participant E as Edge participant O as Origin U->>D: resolve (20-200ms) D-->>U: IP U->>E: TCP (1 RTT) E-->>U: SYN-ACK U->>E: TLS (2 RTT) E-->>U: OK U->>E: GET E->>O: forward O-->>E: response E-->>U: response
How to reduce latency
Cutting latency that matters
Edge caching
Serve from the nearest CDN node. 150 ms → 10 ms.
DNS preconnect
<link rel="preconnect">to third-party origins saves one RTT per origin.Keep-alive connections
Reuse TCP+TLS. Never open a new connection per request.
HTTP/2 or HTTP/3
Multiplexing removes head-of-line blocking.
Compress
Brotli/Gzip reduce bytes, which reduces transmission time.
Reduce hops
Colocate origin near users. Avoid CDN bouncing back and forth.
Common failures
Origin
The word comes from Latin latere, "to be hidden, to lie low". In physics, "latency period" was used from the 19th century for delayed responses (e.g., heat, nerve impulses). In computing, the sense arrived with time-sharing systems in the 1960s (access latency to disk and memory). In networking, the term is standard since the 1990s.
Latency is the new bandwidth. It is what users feel.
— Stuart Cheshire, Apple, *It's the Latency, Stupid*, 1996 (paraphrase)
Evidence
FAQ
- Latency vs bandwidth?
Latency is delay; bandwidth is throughput. Two independent dimensions.
- Can latency be zero?
No. Physical limit is the speed of light. Practical limit is ~5 ms for local fiber.
- How to measure?
pingfor RTT;curl -w "@curl-format.txt"for TTFB; browser DevTools for waterfall.- Is CDN enough?
For static assets yes. For dynamic, edge compute or origin reads at the edge.
Connections
Google (2017). The need for mobile speed. https://www.thinkwithgoogle.com/marketing-strategies/app-and-mobile/mobile-page-speed-new-industry-benchmarks/
Cloudflare (2024). What is latency? https://www.cloudflare.com/learning/performance/glossary/what-is-latency/
Cheshire, S. (1996). It's the Latency, Stupid. https://stuartcheshire.org/rants/Latency.html
Etymology
Origin: borrowed
latency(noun): from Latin latere, "to be hidden"
Semantic network
● broader ● narrower ● related
Used in the garden
- Core Web Vitals Optimization: The Complete Technical Guide (8×)
- Serverless Savings: Cut Cloud Costs by 40% with Elegant Patterns (4×)
- From Script to Microservice: Scaling Reporting Automation to 10K Daily Requests (4×)
- Unmasking the Silent Killer: How Slow Websites Steal 30% of Your SaaS Revenue (3×)
- LatAm Startup's Lifeline: Core Web Vitals Audit Doubles Conversions in 48 Hours (3×)
- Technical SEO, Core Web Vitals, and Mobile SEO: The Complete Guide (2×)
- Why 80% of Small Businesses Fail at Invoicing (And How to Fix It) (2×)
- A Reputation Crisis Almost Broke Me (And What I Learned) (2×)
- Mercado Pago Reconciliation: Stop Losing Money on Hidden Fees (2×)
- The Day 5,000 WooCommerce Products Demanded a File-Based CMS Migration (2×)
- SEO · ENDURE (1×)
- Technical SEO for consultants (1×)
- Legal Bootstrapping: The Easiest Tax Structures for LatAm Solopreneurs (1×)
- The Solopreneur's Guide to Cash Flow Survival (1×)
- Cash Flow Forecasting: How to Predict Your Business's Next 3 Months (1×)
- The Restaurant That Branded Its Waiting List (1×)
- Burn Rate Management: How Long Can Your Business Survive? (1×)
- The Forgotten Secret: How Your Kids Are Becoming Financial Geniuses Without Even Knowing It (1×)
- The Minimalist Website: Design That Converts Without Clutter (1×)
- The ,000 Branding Blunder: Validate Your SaaS Name Before Launch (1×)
- The Ultimate SEO Guide: How to Dominate Search Engines (1×)
- The Exit-Ready Business: Financial Preparation for Acquisition (1×)
- Tax Panic: What LatAm Solopreneurs Get Wrong About Declarations (1×)
- The Zero-Downtime WordPress Migration Blueprint for High-Stakes Sites (1×)
- The European SaaS Founder's Guide to GDPR Compliance in 2025 (1×)
- Subtitles: The Unsung Hero of Free Streaming (1×)
- Technical SEO: The Brand Trust Signal No One Talks About (But Google Loves) (1×)
- E-commerce SEO: How to Optimize Your Online Store for Search and Sales (1×)
- Technical SEO Audit: Uncover & Fix Hidden Ranking Leaks for Dominance (1×)
- The Courage to Raise Your Prices (And Keep Your Clients) (1×)
- Nginx Mastery: Host Multiple Apps with One Server, Conquer LatAm Tech Costs (1×)
- Technical SEO: Speed, Core Web Vitals, and Crawl Optimization (1×)
- The Micro-Business Owner's Guide to Cash Flow Management (1×)
- The Hidden Power of Male Desire: A Guide to Inner Mastery (1×)
- The Copywriter's Guide to Writing for Busy Decision-Makers (1×)
- The Working Capital Playbook: Unlock Hidden Cash in Your Business (1×)