It defines two apps: A and B.
A is a microservice with two endppoints:
- /success will always return 200
- /failure will always return 500
B is a microservice that depends on A. It will call A, and depending on the response, will activate the circuit breaker.
$ go run app_a/main.go$ go run app_b/main.go