Skip to content

danriti/short-circuit

Repository files navigation

short-circuit

Example of the circuit breaker pattern in Python. Uses the pybreaker library.

Johnny Five

Setup

$ git clone git@github.com:danriti/short-circuit.git
$ cd short-circuit
$ virtualenv .env
$ source .env/bin/activate
$ pip install -r requirements.txt

Run the Example

Run the following command each in a separate terminal:

$ cd short-circuit
$ source .env/bin/activate
$ python app.py
$ cd short-circuit
$ source .env/bin/activate
$ python service_time.py
$ cd short-circuit
$ source .env/bin/activate
$ python service_user.py

Now visit http://localhost:3000/ in your favorite browser!

Releases

No releases published

Packages

No packages published