Commit Failure on EventBus

Hi Allard,

If we are able to successfully commit events on EventStore but suppose my ActiveMQ is down,then how should i proceed?
Should i rollback and delete my recently commited events from eventStore ?and then retry whole command again?

Suggest me some approach to handle this scenario.

P.S. - I tried using Commands retyScheduler but it republished whole command so causing republishing same events in EventStore.

Regards,
GRS

Hi,

you should commit the transaction to the Event Store after sending the messages to MQ. You could also do the MQ publication transactionally, and commit both transactions in quick succession. That should minimize the chance of errors.
If that is still too much room for errors, you should consider a 2PC between the Event Store and the Bus.

Cheers,

Allard