camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <ben.o...@initekconsulting.com>
Subject Re: Maximum Number of Routes
Date Thu, 30 Jun 2011 20:35:50 GMT
same question...same answer

http://stackoverflow.com/questions/6336900/design-question-on-dynamic-apache-camel-routes-context/6347445#6347445


krishy wrote:
> 
> This might be question that falls in the premature optimization category. 
> 
> I am working on a project where users create watch lists on the various
> events in the system based on 
> certain criteria and whenever the events that satisfy their criteria are
> met, an email is sent to the user. Say
> for example one user could create a watch that says "When ever the price
> of Foobar product goes below $10, 
> inform me", another could have a watch that says "Whenever the product Foo
> is sold out email me" etc.,
> 
> The events are pushed out to a ActiveMQ topic and I had envisioned each of
> these watch list items as a 
> dynamically added route from the topic to an email end point. I had
> thought about using recipient list but it 
> got pretty messy quickly as it turned out to be a big if else statement.
> 
> This has a potential to explode to thousands of routes as each user could
> configure multiple watches. I plan
>  to test this out as well but would really like some feedback from the
> list. Is this a safe approach to take? 
> What determines the number of routes that can be configured in this case?
> 


-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: http://camel.465427.n5.nabble.com/Maximum-Number-of-Routes-tp4539803p4540059.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message