Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 862 Bytes

README.md

File metadata and controls

44 lines (33 loc) · 862 Bytes

short-circuit

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

Johnny Five

Setup

$ git clone [email protected]: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!