Hello
I’m digging into the closing the books patterns to be able to split large streams on some time-frame and the problem that I’m encountering is how to split stream and at the same time to let app knows which is the name of the new stream. For example:
(Old Stream)
Account-2022-01-01 AmountCredited,AmountDebited, AccountPeriodClosed
(New Stream)
Account-2022-02-01 AccountPeriodOpened
Maybe I’m missing an aggregate or event but at the moment I’m not sure how this could happen in consistent manner.
Similar example of CashRegister (ShiftFinished, ShiftStarted) is shown in: https://www.eventstore.com/blog/snapshots-in-event-sourcing but it doesn’t explain how to keep and update the name of the stream (e.g to let repository know stream name to use).
It would be nice if someone could share some experience on this topic.
Thanks in advance.