The EventStore interface has the following method for writing events:
public void appendEvents(String type, DomainEventStream events)
Question: is there a strong reason to have a DomainEventStream here vs a List? I assume the events are already in memory.
The reason I ask is that for a prototype EventStore implementation, I wrapped it with an EventStore implementation that would retry the appendEvents operation on the underlying EventStore in response to transient persistence issues. Problem is, if you read an event from the stream, encounter an issue & throw, there is no facility to reset the stream in order to retry the operation (ie you’ve lost some events from the head of the stream upon retry).
Thanks in advance. Really liking Axon so far.