AVM
AVM

Reputation: 9

What is the maximum rest client connection supported by Quarkus Rest server by default

We have a Quarkus Rest service, and the client is using org.apache.http.impl.conn.PoolingHttpClientConnectionManager with following settings

connMgr.setMaxTotal(20);
connMgr.setDefaultMaxPerRoute(6);

How would from service we can check if the service support maximum 20 connections?

By default what is the maximum connection allowed in quarkus?

Upvotes: 0

Views: 2006

Answers (1)

Javier Toja
Javier Toja

Reputation: 1762

As far as I know quarkus is not limited you can configure a limit with this property but I would not suggest going over 100 connections never, because then you might run into the memory limits or cpu limits. This is why you replicate or scale your backends, so instead of having one jvm handling 150 connections, you have three smaller jvms handling 50 connections each one so you gain some high availability and fault tolerance.

If you want to test the behaviour in concurrency of your application you can always run a load test with Jmeter or other tools which will allow to simulate the load that you want and you would be able then to check the response time of your backend or if you run into resource bottlenecks or other issues.

Upvotes: 1

Related Questions