Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/claudio-code/spring-circuit-breaker-cucumber-wiremock
:memo: How configure circuit breaker, cucumber and wiremock on spring framework
https://github.com/claudio-code/spring-circuit-breaker-cucumber-wiremock
circuit-breaker cucumber cucumber-java feign-client resilience4j spring wiremock
Last synced: about 1 month ago
JSON representation
:memo: How configure circuit breaker, cucumber and wiremock on spring framework
- Host: GitHub
- URL: https://github.com/claudio-code/spring-circuit-breaker-cucumber-wiremock
- Owner: Claudio-code
- Created: 2024-06-03T00:37:00.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T16:02:18.000Z (8 months ago)
- Last Synced: 2024-11-08T09:03:38.143Z (3 months ago)
- Topics: circuit-breaker, cucumber, cucumber-java, feign-client, resilience4j, spring, wiremock
- Language: Java
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring with Circuit Breaker
## Introduction
This project uses Resilience4j, a fault tolerance library designed for Java8 and functional programming. Resilience4j provides several modules to help your application withstand failures in a distributed system, allowing you to build resilient applications.
## Modules
Resilience4j used configurations:
- **slidingWindowType**: Type of Circuit Breaker based in request count.
- **registerHealthIndicator**: Show address in health check.
- **failureRateThreshold**: Sets rate limit failure in 50% to circuit breaker switch to open state.
- **minimumNumberOfCalls**: Sets request amount 5 to circuit analysis.
- **automaticTransitionFromOpenToHalfOpenEnabled**: Enable automatic state transition.
- **waitDurationInOpenState**: Sets duration to 60s of state circuit open to avoid calls on service that has errors.
- **permittedNumberOfCallsInHalfOpenState**: Sets 3 requests to analysis state to half opened.