Hi I have the following senario which I dont understand how to get eventual consistency with:
In 13 would there be an optimistic concurrency error if we pass the version of the aggregate in the event?
If so Message 1 new gets applied to object in the other context. How do we even maintain consistency?
This is the issue that is preventing me applying events in my domain. All help welcome.
The essential idea is to update another aggregate in another context. I am just stuck on the concurrency technicalities of this.
We are not using event sourcing or CQRS in the sense of commandhandler and commands push on the bus. It is only the event processing we want to happen asynchronously as we have an existing design which we do not wish to change.
Blair
Generally you would be queuing the messages. If they are going into a queue you will get proper ordering. If you want to use something that does not support ordering with your servicebus then add a sequence number to your events so the other side can properly reorder them. TCP has been doing this since 1981 http://www.ietf.org/rfc/rfc793.txt :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With