Hello Camel users,

In my project we are currently adding circuit breaker functionality on HTTP 
routes with endpoints to external systems. We've chosen Resilience4J since we 
are running Apache Camel in Spring Boot, however I can't seem to verify 
configuration of the bulkhead functionality. The purpose of this is to ensure, 
that we return failures correctly to initial caller of the route.

So to trigger a bulkhead "error" I do the following:

 - Set Bulkhead maxConcurrentCalls to 1.
 - Set Bulkhead maxWaitDuration to 0.
 - Set the external endpoint (Wiremock stub) to respond after 10 seconds.
 - Set Circuit breaker Timeout to 60 seconds.
 - Asynchronously send a total of 5 requests to the configured route.

But the bulkhead does not take effect, all requests seem to hit the Wiremock 
instance.

Am I configuring the circuit breaker + bulkhead in a wrong way to test this? Or 
perhaps I am misunderstanding the purpose of bulkheads entirely?


Kind regards
Jesper

Reply via email to