Skip to content

Latency and failure handler for service communcation

Notifications You must be signed in to change notification settings

80pctsols/breaker

Repository files navigation

breaker

Build Status

Small python library to help with serving requests between services.

Currently holds a simple Circuit Breaker which is used to fail fast on services that are returning errors.

Usage

from breaker import CircuitBreaker

def my_function(a, b):
    return a + b

cb = CircuitBreaker(my_function, failures_allowed=3, timeout=10)

cb.call(a, b)

About

Latency and failure handler for service communcation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published