You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ravi Nallappan <ra...@gmail.com> on 2015/07/27 13:18:55 UTC

Camel SEDA and JDBC

Hi,

I have created a route with seda consumer (concurrentConsumers=20). And I am using camel jdbc to query a database (mysql) based on key provided in body.

For this, can I expect there will be 20 jdbc sessions created and queried in parallel?

When send data thru this route, I do able to see "Threads_running" up to 10 (show global status like "%thread%"). And reducing  concurrentConsumers to 1 does bring "Threads_running" to 1. But for some reason, does not go beyond 10 - before I ponder on mysql settings, I would like to confirm my expectation that parallel queries should be same as number of concurrentConsumers that I set?

Thanks and regards,
Ravi Nallappan


Re: Camel SEDA and JDBC

Posted by Claus Ibsen <cl...@gmail.com>.
Only if there is enough messages in the  queue for all seda consumers
to process concurrently.

On Mon, Jul 27, 2015 at 1:18 PM, Ravi Nallappan
<ra...@gmail.com> wrote:
> Hi,
>
> I have created a route with seda consumer (concurrentConsumers=20). And I am using camel jdbc to query a database (mysql) based on key provided in body.
>
> For this, can I expect there will be 20 jdbc sessions created and queried in parallel?
>
> When send data thru this route, I do able to see "Threads_running" up to 10 (show global status like "%thread%"). And reducing  concurrentConsumers to 1 does bring "Threads_running" to 1. But for some reason, does not go beyond 10 - before I ponder on mysql settings, I would like to confirm my expectation that parallel queries should be same as number of concurrentConsumers that I set?
>
> Thanks and regards,
> Ravi Nallappan
>



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