Skip to content

Learning resilience4j and spring-cloud-circuitbreaker

Notifications You must be signed in to change notification settings

altfatterz/resilience4j-demo

Repository files navigation

Learning resilience4j and spring-cloud-circuitbreaker

  1. Start Eureka
$ spring cloud eureka
  1. Start all 3 services. The slow-service is running on port 8090

  2. Try the slow-service-client

⇒  http :8081
HTTP/1.1 200
Content-Length: 23
Content-Type: text/plain;charset=UTF-8
Date: Fri, 07 Jun 2019 15:10:30 GMT

Hello from slow-service
  1. Try the slow-service-reactive-client
⇒  http :8081
HTTP/1.1 200
Content-Length: 23
Content-Type: text/plain;charset=UTF-8
Date: Fri, 07 Jun 2019 15:12:04 GMT

Hello from slow-service
  1. Now, shut down the slow-service and try both clients again.

  2. Try the slow-service-client

⇒  http :8080
HTTP/1.1 200
Content-Length: 8
Content-Type: text/plain;charset=UTF-8
Date: Fri, 07 Jun 2019 15:13:14 GMT

fallback
  1. Try the slow-service-reactive-client
⇒  http :8081
HTTP/1.1 500
Connection: close
Content-Type: application/json;charset=UTF-8
Date: Fri, 07 Jun 2019 15:13:26 GMT
Transfer-Encoding: chunked

fallback

About

Learning resilience4j and spring-cloud-circuitbreaker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages