camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Whytock <dwhyt...@gmail.com>
Subject Re: Maximum Number of Routes
Date Thu, 30 Jun 2011 19:09:39 GMT
You can do it with a single email endpoint that points to your SMTP
server, producing an exchange for each event for each user by putting
the destination email address in the message's "to" header.

Don

On Thu, Jun 30, 2011 at 3:02 PM, krishy <calvinkrishy@gmail.com> 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?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Maximum-Number-of-Routes-tp4539803p4539803.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
View raw message