Skip to main content
The retry module provides reliability patterns to handle transient network failures and prevent cascading errors.

Circuit Breaker

The circuit breaker pattern prevents repeated attempts to access a failing service, giving it time to recover.

States

The circuit breaker has three states:
  • Closed: Normal operation, all requests allowed
  • Open: Too many failures, requests blocked immediately
  • Half-Open: Testing if service recovered, limited requests allowed