Hi,
i’m stumbled upon a problem while trying to implement a simple prototype with Axon. I’ve made a read/view model that updates on domain events.
This model needs to keep track of the current aggregate version. How would i pass the aggregate version information to the read/view model?. I can’t propagate it via the events itself
as the aggregate version is incremented even after event creation when applying it to the domain model itself. Should i use the GenericEventMessage optionally passed to my read/view models event handling?
There is a getSequenceNumber() method on it which may be equal to the current aggregate version. Is this the suggested method in this case?
Thanks
Marcus