Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.