camel-quarkus icon indicating copy to clipboard operation
camel-quarkus copied to clipboard

high times (20s) in 150 concurrent calls from RestRoute

Open brianmolinaspring opened this issue 1 year ago • 1 comments

Bug description

I'm using apache camel to call from my main RestRoute class to .process(new GetBoltonUnitProcessorReq()) inside this to run a loop to make multiple calls to a rest service with producerTemplate (It can be 5 iterations which is equivalent to 5 calls to the rest service) when I put it under stress with 150 requests it takes more than 20 seconds, but I took out everything that the GetBoltonUnitProcessorReq class does and put it in the main RestRoute class within a .process(exchange -> {}) everything exactly the same, but when I stressed with 150 requests the times improved drastically, meaning that now it takes less than 1 second to Answer: Do you know why this scenario occurs? Is it because of the issue of the New instance that cannot handle the concurrency?

brianmolinaspring avatar Jan 19 '24 20:01 brianmolinaspring

Is it because of the issue of the New instance that cannot handle the concurrency?

That would be very strange.

Have you tried to profile your application to see where the real bottleneck is?

ppalaga avatar Jan 22 '24 12:01 ppalaga