multithreading - Camel-SEDA in spring DSL - slow performance -


there 2 routes in camel spring dsl:

<route id="master">   <from uri="quartz..."/>   <to uri="mongodb:testdb?database={{testdb}}&collection={{testcollection}}&operation=findall" />   <split streaming="true">     ...     ..     <to uri="seda:slave"/><br>   </split> </route >  <route id="">   <from uri="seda:slave"/>   .......   ..... </route > 

issues , questions:

use case 1: mongo find return 100k documents , using splitter pattern , calling sub route.initially used "direct" component instead seda. took around 30 mins complete process.

use case2:enable multi thread options

i wanted use multi threading option in splitter eip pattern , changed direct component seda because direct synchronous. after changed seda component result quite different i.e slow 120 records taking 1 minute.

question:

is there performance issue in seda component multi threaded environment?

did have chance enable parallelprocessing option of splitter? btw, can dig performance issue monitor threads processing time.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -