Hi,
I have a question about dealing with eventual consistency.
Is the following a reliable/good way to do this with Axon or is there a better way?
Problem:
A query model is used as the source for a view.
When the view is presented and saved, some new events are generated and the query model is updated.
When the view is presented again, the event from the previous saving of the view have to be processed in the query model.
Solution:
I would like to verify that the events are processed in the query model, by storing the timestamp of the last processed event in the query model (by using @Timestamp).
So when the view is presented the time of saving the previous view is compared to the stored timestamp of the last processed event in the query model with a certain margin.
I am using axon 3.0, with a simple command bus and tracking eventprocessors. So I think all events are processed sequentially.
Kind regards,
Erwin