Hi everybody!
I already found this old thread for my problem:
https://groups.google.com/forum/#!searchin/axonframework/historic$20aggregate|sort:date/axonframework/FLtWkNcBnnc/0bNpZ0LaDQAJ
If I get it right, the answer was more or less: Use a read model to get access to old aggregate versions.
Since I’m doing a lot of writes but only very rare reads on the aggregate, I would prefere to simply read the aggregate from the event-stream
up to the requested version.
But I think it is still not possible in Axon 3 to retrieve an aggregate in a specific version, right?
When looking at the EventSourcingRepository, I got a method
protected EventSourcedAggregate<T> doLoadWithLock(String aggregateIdentifier, Long expectedVersion) {
But the expectedVersion isn’t used at all there.
Wouldn’t it be useful to be able to retrieve old versions of an aggregate without the io-overhead of creating a separte read-model?