Distributed EventBus

102 views
Skip to first unread message

Job de Noo

unread,
Feb 4, 2016, 12:46:40 PM2/4/16
to Axon Framework Users
Hi all


we are currently setting up a distributed event bus, using cloudamqp(rabbitmq) and the basics seem to work fine.
But we have multiple apps that should retrieve the events, and i was wondering how to make sure that all listeners receive the message.

If one component is down for maintenance, or unexpected causes we want it to continue processing where it left off, instead of having missed a couple of events. What would be the best way to do this? 

I could come up with having a queue per component, or using a kafka like system in which the client saves the state where it left off, but i'm no expert on amqp, and don't know if there is a normal pattern to solve this problem.

So if someone has a tip, please let me know.

Cheers,

Job

Allard Buijze

unread,
Feb 15, 2016, 3:39:42 AM2/15/16
to Axon Framework Users
Hi,

on AMQP, you should have a queue per application. When multiple instances should compete for events, they must read from the same queue. Otherwise, each should have its own.
Kafka is also a good option. Basically, each consumer (application) will track the stream, keeping its own offset.

Cheers,

Allard

--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages