A timeout is a limit on how long a software operation waits for a response or completion before it is treated as failed.
A timeout limits how long an HTTP request may wait before the application aborts it with an error. It prevents hung internal or external services from making customers wait indefinitely and supports a fail-fast response when something is already failing. section 11.4.6
Use request timeouts to control failure behavior in service-to-service communication:
Apply them to requests made with Node.js http.request or Axios. section 11.4.6
Treat the default Axios timeout as unsafe for production because it is infinite. section 11.4.6
Choose a maximum wait that lets the application report failure promptly rather than hold a customer request indefinitely. section 11.4.6
Listing 11.3 Setting a default timeout for HTTP requests with Axios
Python Concurrency with asyncioA timeout is a configured duration after which an incomplete operation is treated as having exceeded its allowed execution time.
Akka in Action, Second EditionTimeout is an Akka value that represents the maximum duration allowed for an asynchronous operation before it is treated as timed out.
asyncio.wait_forconfigured by · asyncio.wait_for is a Python coroutine utility that awaits an awaitable for a specified duration and cancels it if the timeout expires.
detectionuses · Detection is the process of identifying whether a specified condition, abnormality, failure, or undesirable behavior is present or suspected.
contextconfigures · In Go, context.Context is an interface carrying cancellation signals, deadlines, and request-scoped values across function and service boundaries.
This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.