Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 713 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 713 Bytes

Hystrix Example

A simple Docker Compose setup that has a frontend API <- issues requests to -> backend API. In the event that:

  1. The API returns an error (40x, 50x response code)
  2. The API is inaccessible
  3. The API does not meet its defined SLAs (currently a generous 1500ms)

The API should open a circuit breaker and return a canned response, instead of querying the back-end. We use the Go Hystrix library to achieve this, along with Muxy to interfere and trigger this behaviour.

Running the example

Ensure that Docker and Docker Compose is installed, and then run:

./run-tests.sh