You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by raffi <ra...@gmail.com> on 2016/03/30 15:00:15 UTC

Seda concurrent consumers with aggregator

Is it valid to concurrently process messages into an aggregator?
There is no mention of "aggregator" in Camel docs for parallel processing,
want to be sure.


<route id="aggregatorRoute">
      <from uri="seda:workBasket?concurrentConsumers=5" />
      <aggregate strategyRef="objectAggregator" completionSize="50">
        <correlationExpression>
          <constant>true</constant>
        </correlationExpression>
        <to uri="jpa:?entityType=java.util.ArrayList" />
      </aggregate>
    </route>



--
View this message in context: http://camel.465427.n5.nabble.com/Seda-concurrent-consumers-with-aggregator-tp5780029.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Seda concurrent consumers with aggregator

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

That will only concurrently send in messages into the aggregator. The
aggregation happens single threaded by default (unless you turn on
optimisticLocking).

You can turn on parallel processing on the aggragator so outgouing
messages can be processed concurrently. There is options to configure
the pool size and refer to thread pools and whatnot.

http://camel.apache.org/aggregator2

On Wed, Mar 30, 2016 at 3:00 PM, raffi <ra...@gmail.com> wrote:
> Is it valid to concurrently process messages into an aggregator?
> There is no mention of "aggregator" in Camel docs for parallel processing,
> want to be sure.
>
>
> <route id="aggregatorRoute">
>       <from uri="seda:workBasket?concurrentConsumers=5" />
>       <aggregate strategyRef="objectAggregator" completionSize="50">
>         <correlationExpression>
>           <constant>true</constant>
>         </correlationExpression>
>         <to uri="jpa:?entityType=java.util.ArrayList" />
>       </aggregate>
>     </route>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Seda-concurrent-consumers-with-aggregator-tp5780029.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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