Hi guys,
Me again ;-).
I have the following problem:
One of my bouded contexts receives (tracking event processor) events (let’s say ExternalCreatedEvent and ExternalUpdatedEvent to make it simple) from another bounded context and issue a create and update respectively.
For certain reasons for the same aggregate id, ExternalUpdatedEvent can arrive before ExternalCreatedEvent, which of course throws an exception, because the aggregate does not exist.
Is there a way to handle that properly (except by ensuring the right sequence)?
One approach could be to let the handler for ExternalUpdatedEvent retry until the ExternalCreatedEvent is received.
But that will not work, because of the sequence of the events…
Thanks,
Markus