Hi

Yeah if you are make up a reproducer with camel that would be good.
And of course you are welcome to dive into the code. It may be that we
need to catch that bulkhead exception and do something special inside
the camel component or what?


On Thu, Feb 4, 2021 at 12:22 PM Jesper Duelund Isaksen
<jesper.duelund.isak...@systematic.com.invalid> wrote:
>
> Hi again
>
> Alright, so I tested out the Bulkhead functionality of Resilience4J in a 
> JUnit 5 test and verified that when the bulkhead is configured to 
> maxConcurrentCalls set to 1 and maxWaitDuration set to 0, all but the first 
> request sent to Wiremock result in a BulkheadFullException as long as the 
> first request is in progress.
>
> Given the versions we are using, should I create I bug on this? I guess it 
> almost requires a reproducer?
>
>
> Kind regards
> Jesper
>
> -----Original Message-----
> From: Jesper Duelund Isaksen
> Sent: 4. februar 2021 10:34
> To: users@camel.apache.org
> Subject: RE: Configuration of circuit breaker - Resilience4J
>
> Hi Claus
>
> We are running Apache Camel 3.7.1 in Spring Boot 2.4.2 and are also already 
> using the camel-resilience4j-starter as a dependency.
> The configuration of the CBs are done programmatically though since we need 
> the CBs to be independently configurable for each set of routes.
>
> I'll give a pure Java Resilience4J CB a test and see if it behaves as 
> expected for the same scenario.
>
> Thanks for the quick reply.
>
> -----Original Message-----
> From: Claus Ibsen <claus.ib...@gmail.com>
> Sent: 4. februar 2021 10:12
> To: users@camel.apache.org
> Subject: Re: Configuration of circuit breaker - Resilience4J
>
>  CAUTION - External Mail
>
> What Camel version do you use?
>
> And btw I think resilience4j also has a spring-boot starter JAR where you can 
> configure it there too.
> Where you can try to compare against a resilienc4j CB in java code where you 
> test that against your wiremock and compare to camel resilience4j.
>
> And we did some fixes in camel-resilience4j a while back, so you can also try 
> with latest release.
>
> On Thu, Feb 4, 2021 at 10:06 AM Jesper Duelund Isaksen 
> <jesper.duelund.isak...@systematic.com.invalid> wrote:
> >
> > 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
>
>
>
> --
> Claus Ibsen
> -----------------
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsclaus.com%2F&amp;data=04%7C01%7Cjesper.duelund.isaksen%40systematic.com%7Ca58dd674d7a74afb52af08d8c8ece646%7C7f6211b17c5c42778403c0ccbd7f0408%7C0%7C0%7C637480267085311675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=na5ATS64EOklych1q91ERxaFNiOvUM1%2Bs03TAxBILGk%3D&amp;reserved=0
>  @davsclaus Camel in Action 2: 
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2&amp;data=04%7C01%7Cjesper.duelund.isaksen%40systematic.com%7Ca58dd674d7a74afb52af08d8c8ece646%7C7f6211b17c5c42778403c0ccbd7f0408%7C0%7C0%7C637480267085311675%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=FHb%2BB%2Fmn7kidSw7XWKvS3yDmcDlUZk2cCIkwbpw7G7U%3D&amp;reserved=0



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to