Definition
Latency measures the time delay in a system, typically the round-trip time from when a request is sent to when the first byte of the response is received. Network latency is affected by physical distance, network congestion, processing time, and the number of hops between source and destination. Low latency is critical for real-time applications, APIs, and user experience. Latency is usually measured in milliseconds (ms).
Examples
Latency Expectations by Use Case
Acceptable latency varies by application type.
| Application Type | Good Latency | Acceptable | Poor |
|--------------------|--------------|------------|---------|
| Web API | < 100ms | < 500ms | > 1s |
| Real-time gaming | < 50ms | < 100ms | > 150ms |
| Video call | < 150ms | < 300ms | > 500ms |
| File download | < 500ms | < 2s | > 5s |
| Database query | < 50ms | < 200ms | > 500ms |Latency Components
Breaking down total latency into components.
// Total latency breakdown
const latency = {
dnsLookup: 20, // DNS resolution
tcpConnect: 30, // TCP handshake
tlsHandshake: 50, // TLS negotiation
timeToFirstByte: 100, // Server processing
contentTransfer: 50, // Data transfer
// Total: 250ms
};Use Cases
Best Practices
- Monitor from locations near your users
- Track percentiles (p50, p95, p99), not just averages
- Set up alerts for latency degradation
- Use CDNs to reduce geographic latency
- Profile and optimize slow endpoints
FAQ
Related Articles
monitoring
Complete Guide to Uptime Monitoring in 2026
Master uptime monitoring with our comprehensive guide. Learn about monitoring strategies, tools, best practices, and how to achieve high availability for your services.
monitoring
Five Nines Uptime (99.999%) Explained: What It Really Means
99.999% uptime means just 5.26 minutes of downtime per year. Learn what five nines really costs, which architectures achieve it, and whether your SLA actually needs it.
comparisons
Best Free Uptime Monitoring Tools Compared (2026)
Compare the best free uptime monitoring tools in 2026. UptimeRobot, WizStatus, Freshping, and more - features, limits, and which free plan is best for you.
Put Latency Knowledge Into Practice
Start monitoring your infrastructure with WizStatus.
No credit card required • 20 free monitors forever