Circuit breaking and retries
resilient-circuit
AvailableStop calling a failing service for a while, and retry failed calls with backoff.
A Python library for calls to services that can fail. Its circuit breaker stops calling a dependency after a set number of failures and lets a trial call through once a cooldown has passed. Retries wait a constant or an exponentially growing delay, and a breaker and a retry policy can wrap the same call through a decorator. With PostgreSQL configured, all instances of an application share one breaker state that survives a restart. It is part of the Highway workflow engine.
Who it is for. Python services that call other services or external APIs and must stop a failing dependency from taking them down with it.
- Status
- Available
- Part of
- Open source
- Licence
- Open source, Apache 2.0
- Product site
- github.com/rodmena-limited/resilient-circuit
- Tags
- PythonCircuit breakerRetryBackoffPostgreSQL
What it does
-
Circuit breaker
Trips after a configured number of failures and lets a trial call through after the cooldown.
-
Retries with backoff
Delays are constant or exponential, and one call can carry both a breaker and a retry policy.
-
Shared state in PostgreSQL
Breaker state can live in a PostgreSQL table that every instance of the application reads and updates under a row lock.
Documentation and access details are on the product site, github.com/rodmena-limited/resilient-circuit. For a pilot, an integration or procurement questions, contact us.