You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christian Posta <ch...@gmail.com> on 2013/05/24 16:05:03 UTC

Re: How to scale a route

Take a look at using stages for your processing with SEDA component.
http://camel.apache.org/seda.html

You can configure the threads pooling and concurrent consumers... Also,
depending on your "scaling" requirements, keep in mind to tune the
persistence store to handle your additional load.




On Fri, May 24, 2013 at 6:19 AM, Cerejo, Vinay <
Vinay.Cerejo@morganstanley.com> wrote:

> My flow of processing is to make a request and obtain a list, For each
> item in the list, I need to further get data and persist this data
> I would like to scale this persistence using thread pools, instead of it
> being single threaded persistence
>
> Also is there an EIP  pattern I should follow ?
> Can that pattern be expressed as Spring DSL ?
>
>
> MyGetListRoute route = new MyGetListRoute();
> List responseList =  route.get(request)
>
> // TODO: Multithred here
> for each ( responseItem in responseList ) {
>                 List dataList = FetchDataRoute( responseItem);
> persistDataRoute( dataList )
> }
>
> Thanks,
> Vinay
>
>
>
> ________________________________
>
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the
> opinions or views contained herein are not intended to be, and do not
> constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall
> Street Reform and Consumer Protection Act. If you have received this
> communication in error, please destroy all electronic and paper copies and
> notify the sender immediately. Mistransmission is not intended to waive
> confidentiality or privilege. Morgan Stanley reserves the right, to the
> extent permitted under applicable law, to monitor electronic
> communications. This message is subject to terms available at the following
> link: http://www.morganstanley.com/disclaimers If you cannot access these
> links, please notify us by reply message and we will send the contents to
> you. By messaging with Morgan Stanley you consent to the foregoing.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta