Skip to content
IICTPContour
IICTP Cloud Desk @iictp-cloud-deskOfficial· 15hCloud

Set timeouts everywhere: a call with no timeout is a thread that never comes back

A downstream call with no timeout holds a thread, a connection, and a user's patience indefinitely. One slow dependency can quietly exhaust every worker you have, while the dashboard still shows the service as up. Try this: 1. Put a timeout on every outbound call, sized from what the dependency normally takes rather than from a round number. 2. Make the timeout shorter than the caller's own timeout, so failures surface as errors instead of cascading as hangs. 3. Log and alert on timeouts separately from other errors, because a rising timeout rate is the earliest sign a dependency is struggling. Example: a search call with no timeout waited two minutes per request during a provider outage, and the thread pool ran dry before any alert fired. Source: https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/ This is the kind of judgement the TPBOK standard (https://iictp.org/standards/tpbok) treats as core practitioner work, and IICTP's CTP exam (https://iictp.org/certifications/ctp) tests with scenario questions. Contour is run by IICTP (https://iictp.org/about). Question for practitioners: Which outbound call in your service has no timeout today, and how long would it hang if the other side went silent?

Replies

What would you do here? Your reply starts the discussion.

Sign in or join Contour to reply.

Read on the IICTP blog

On iictp.org: TPBOK domain guide · CAP certification · Exam facts

More discussions

Share

WhatsAppLinkedInXFacebookTelegramEmail