hystrix/

directory
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: MIT

README

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL