Timeout
A maximum duration to wait for an operation to complete before giving up. Without timeouts, a stalled dependency can hang your entire system indefinitely.
What is Timeout?
A maximum duration to wait for an operation to complete before giving up. Without timeouts, a stalled dependency can hang your entire system indefinitely.
Timeout is a intermediate-level concept that sits in the Microservices Architecture area of system design. Engineers reach for it whenever they need to reason about real-world trade-offs in that space — not just for textbook correctness, but because real production systems at companies like Netflix, Amazon, and Google make these decisions every day.
If you want to go deeper than this definition — with diagrams, code, and a quiz to lock it in — work through the "Timeout" lesson linked below. It walks through the why, the mechanism, the trade-offs, and how the giants actually use it in production.
Learn Timeout in depth
Full interactive lesson with diagrams, code examples, real-world references, and a quiz.
Open the Timeout lessonRelated lessons
Lessons that touch on Timeout as part of a larger topic.
Connection Timeout
Maximum time a client waits to establish a connection before giving up
foundation · core fundamentals
Request Timeout
Maximum time a client waits for a server to send a complete response
foundation · core fundamentals
Timeout Patterns
Set appropriate timeouts for every external call, deadline propagation and timeout budgets
advanced · reliability resilience
Session Windows
Dynamic windows based on activity gaps, group events by user sessions with configurable timeouts
advanced · stream batch processing
See also
Related glossary terms you might want to look up next.
Circuit Breaker
A pattern that stops calling a failing service after repeated failures, preventing cascade failures. Like an electrical circuit breaker that cuts power to prevent fires.
Retry
Automatically re-attempting a failed operation, usually with exponential backoff. Essential for handling transient failures in distributed systems.
Latency
The time delay between sending a request and getting a response. Amazon found every 100ms of extra latency costs 1% in sales.