Lesson 4.2

Timeouts, retries, and circuit breakers

A dependency that hangs is worse than one that fails. Timeouts convert hanging into failing, and circuit breakers stop failure spreading.

Duration
4m
Level
Intermediate
Students
7.1k students

Overview

A dependency that hangs is worse than one that fails. Timeouts convert hanging into failing, and circuit breakers stop failure spreading.

In this lesson you will:

  • Set timeouts on every outbound call
  • Break the circuit when a dependency is clearly down
  • Degrade gracefully instead of cascading

Resources

AWS Architecture Center

The official reference for the tools used in this lesson.