Hello,
Is it possible to upgrade/split an Event to more than one event.
Be careful when working with event upgraders that return zero or more than one event, as this has an influence on the aggregate version and you need to make sure that the aggregate sequence number on upgraded events are valid in regard to the aggregate history.
for example:
- emit event 1 → aggregate version 1
- emit event 2 → aggregate version 2
- emit event 3 → aggregate version 3
- here comes the upgrader which upgrades/splits the event 2 into two events. Now the event 3 has an invalid sequence number.
is there a recommended way to split an old event to new events or update the sequence number with a upgrader?
Hello,
Is it possible to upgrade/split an Event to more than one event.
for example:
is there a recommended way to split an old event to new events or update the sequence number with a upgrader?