I’m looking into using EventStore for a new project. I have some questions about versioning, and the projection runtime setup.
I would like to version my event schemas. Each event will have a
type and a
version field. Each type version will have an up-caster (converts an event from the previous version to the current version) and a downcaster (converts from the current version to the previous version). This way I can make a runtime conversion to get whatever version of event my service requires.
I’m hoping to be able to write projections that embed this runtime conversion system. In the handler function for each event type, a conversion will be made to the desired event version before running the rest of the handler. Has anyone tried this and does it sound reasonable?