what is the best solution/pattern to extract all events for an aggregate ?
I’ve write something like this :
List retour = new ArrayList<>();
DomainEventStream domainEventStream = eventStore.readEvents(id);
DomainEventMessage<?> event = domainEventStream.next();
Is it better to use the EventStore or EventStorageEngine interface ?
Is it a good idea to use the EventStore or do i need to implement my own history solution ?