www.catify.com
Event Queue
Instance 'A'
Instance 'B'
Instance 'C'
Database
server cluster with queue
www.catify.com
E
E
E
Instances
producing
events...
...with the
same id
(e.g. 0815)
producing events...
www.catify.com
E
E
E
Instance 'C'
consumes the
first event
consuming first event...
www.catify.com
E
E
E
a cluster means multible consumers for a event
If there're trying
multible instances to
consume the s...
www.catify.com
E
E
E
we have to track the cosumption over a database
To guarantee that an
event will be consumed
only once...
www.catify.com
E
E
E
the first incoming event will be registered
No, it's not
registered.
Ok register
it!
www.catify.com
E
E
E
all others with the same id will be found...
2. Yes!
1. '0815'
already
registered?
www.catify.com
E
E
...and rejected
E
Kick it!
www.catify.com
In the next part of this blog entry we show how
to implement this with camel in 5 minutes :)
http://www.cat...
Upcoming SlideShare
Loading in …5
×

events in a clustered environment

1,590 views

Published on

events in a clustered environment with Apache Camel and MongoDB.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

events in a clustered environment

  1. 1. www.catify.com Event Queue Instance 'A' Instance 'B' Instance 'C' Database server cluster with queue
  2. 2. www.catify.com E E E Instances producing events... ...with the same id (e.g. 0815) producing events...
  3. 3. www.catify.com E E E Instance 'C' consumes the first event consuming first event...
  4. 4. www.catify.com E E E a cluster means multible consumers for a event If there're trying multible instances to consume the same event we're getting in trouble.
  5. 5. www.catify.com E E E we have to track the cosumption over a database To guarantee that an event will be consumed only once we have to track the consumption Is event with id '0815' already registered?
  6. 6. www.catify.com E E E the first incoming event will be registered No, it's not registered. Ok register it!
  7. 7. www.catify.com E E E all others with the same id will be found... 2. Yes! 1. '0815' already registered?
  8. 8. www.catify.com E E ...and rejected E Kick it!
  9. 9. www.catify.com In the next part of this blog entry we show how to implement this with camel in 5 minutes :) http://www.catify.com/blog

×