Timeout

Problem

Service A calls Service B. B never answers. Without a limit, A may wait forever while connections, threads and memory accumulate.

Solution — Timeout

A decides: Wait at most 3 seconds. After that, the operation fails and A can decide what to do next.
Core idea: timeouts put a bound on how long a system waits for an uncertain dependency.