Hello,
I stumbled across Axon when I was searching for an event sourcing framework.
More precisely I need the functionality to query my data for its state at specific times in the past.
So event sourcing would enable me to recreate the state of my data at any given point in time.
So far so good, but after hours of web search I didn’t find a proper way in Axon to dispatch a query in the form: “Give me the state of the data at this time.”
Shouldn’t that be possible in an event sourcing framework?
I know that I can use a TrackingEventProcessor to replay the event store, but as pointed out in this stackoverflow question, Axon doesn’t cover the scenario to replay to a given date, that has to be done on the query side.
With that in mind, my closest solution to the mentioned behaviour is to use a TrackingEventProcessor to replay the event store and wait on the query side for the event with the TrackingToken at a given time.
But this seems more like a workaround. Furthermore, this approach doesn’t facilitate me to query for multiple times in the past at once because then the TrackingEventProcessor has to be restarted and the previous state is lost.
Is Axon not suited for my use-case or am I missing something?
Thanks