You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by kiranreddykasa <ki...@fss.co.in> on 2013/01/04 11:09:02 UTC
Sclaing camel
Hi
With spring and camel integration we have developed a webapp from which we
can add or remove routes at runtime.
Suppose if there is an tcp endpoint which is receiving some ten thousand
requests is it advisable to run camel instance separately ?? or is it okay
to run it in the web container itself ??
what if there are some ten tcp endpoints like these???how to scale it??
-----
Regards
kiran Reddy
--
View this message in context: http://camel.465427.n5.nabble.com/Sclaing-camel-tp5724876.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Sclaing camel
Posted by Christian Müller <ch...@gmail.com>.
No.
Best,
Christian
On Mon, Jan 7, 2013 at 11:46 AM, kiranreddykasa <ki...@fss.co.in>wrote:
> Hi
>
> As camel running in the web container itself , it's performance won't be
> reduced??
>
> Because it has to serve web requests also!!
>
>
>
>
>
> -----
> Regards
>
> kiran Reddy
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sclaing-camel-tp5724876p5725045.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Re: Sclaing camel
Posted by kiranreddykasa <ki...@fss.co.in>.
Hi
As camel running in the web container itself , it's performance won't be
reduced??
Because it has to serve web requests also!!
-----
Regards
kiran Reddy
--
View this message in context: http://camel.465427.n5.nabble.com/Sclaing-camel-tp5724876p5725045.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Sclaing camel
Posted by Christian Müller <ch...@gmail.com>.
It depends on the core framework you use (Mina, Netty, ...). Checkout the
documentation, but most of the frameworks let you configure the max. thread
pool size. The other request threads are blocked until they are served. If
the database query doesn't take too long, you can live without a queue...
Best,
Christian
On Fri, Jan 4, 2013 at 6:14 PM, kiranreddykasa <ki...@fss.co.in>wrote:
> Thanks Christan it helped..
>
> Consider this simple route
>
> async tcp(1) --->someBean(2)
>
> bean(2) will be accessing database for processing requests,
>
> What if the tcp endpoint gets 10k requests concurrently and bean(2) cant
> open that many database connections ??
>
> Should i put the requests in queue and then send it to the bean(2) ???
>
>
>
> -----
> Regards
>
> kiran Reddy
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sclaing-camel-tp5724876p5724924.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Re: Sclaing camel
Posted by kiranreddykasa <ki...@fss.co.in>.
Thanks Christan it helped..
Consider this simple route
async tcp(1) --->someBean(2)
bean(2) will be accessing database for processing requests,
What if the tcp endpoint gets 10k requests concurrently and bean(2) cant
open that many database connections ??
Should i put the requests in queue and then send it to the bean(2) ???
-----
Regards
kiran Reddy
--
View this message in context: http://camel.465427.n5.nabble.com/Sclaing-camel-tp5724876p5724924.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Sclaing camel
Posted by Christian Müller <ch...@gmail.com>.
Find my comments inline.
Best,
Christian
On Fri, Jan 4, 2013 at 11:09 AM, kiranreddykasa <ki...@fss.co.in>wrote:
> Hi
>
> With spring and camel integration we have developed a webapp from which we
> can add or remove routes at runtime.
>
Cool.
>
> Suppose if there is an tcp endpoint which is receiving some ten thousand
> requests is it advisable to run camel instance separately ?? or is it okay
> to run it in the web container itself ??
>
Both options are ok from the Camel point of view. Choose what ever works
best for you.
>
> what if there are some ten tcp endpoints like these???how to scale it??
>
You can scale vertical - add more CPU, RAM, ...
You can scale in your application - add more listeners (threads) to your
TCP/IP endpoint.
You can scale in your application - start the same route again on different
ports and put a load balacer up front.
You can scale horizontal - start the same application on another server and
put a load balacer up front.
>
>
>
>
> -----
> Regards
>
> kiran Reddy
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Sclaing-camel-tp5724876.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--