Closed filwaline closed 3 months ago
Hi @filwaline,
The naive approach is to use a commit time field in the database.
I think a more important question is why do you want them replayed in temporal order across aggregate boundaries? If your domain model relies on this, you probably have an error in that model.
How can I replay all events in the order they were committed?
I am storing events from multiple aggregates in the same table, such as aggregates A, B, and C. The events are presented staggered in the table as follows:
However,
QueryReplay
requires an Aggregate type and only replays events for that specific aggregate. What I want is to replay all events in the order they were committed, regardless of which aggregate they belong to.Consider these scenarios: