Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

10 watching

Forks

Releases

Packages

Contributors

Languages