Closed carrypann closed 2 years ago
The most recent version 2020.0.3-SNAPSHOT of the document said that Spring Cloud CircuitBreaker Resilience4j uses FixedThreadPoolBulkhead
by default, however, the SemaphoreBulkhead
should work well across a variety of threading and I/O models. So can you consider changing to use SemaphoreBulkhead
by default? Or providing a method to set default mode by users?
Closing as duplicate to #119
There is a piece of code in
Resilience4jBulkheadProvider.java(119-129)
It caused that resilience4j will use bulkhead of semaphore mode defaultly if
id
not in bulkheadRegistry.I use
spring-cloud-resilience4j
andspring-cloud-openfeign
, and I want to use a default bulkhead config which in semaphore mode by puttingresilience4j.bulkhead.configs.default
inapplication.yaml
, but it does not work. How can i solve the problem?