A simple Docker Compose setup that has a frontend API <- issues requests to -> backend API. In the event that:
- The API returns an error (40x, 50x response code)
- The API is inaccessible
- 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.
Ensure that Docker and Docker Compose is installed, and then run:
./run-tests.sh