eventuate-tram / eventuate-tram-examples-java-spring-todo-list

A todo list application implemented using Spring Boot-based microservices and the Eventuate Tram framework
Other
186 stars 95 forks source link

How schema versioning will be done #6

Open chaudharisuresh997 opened 5 years ago

chaudharisuresh997 commented 5 years ago

Suppose I have event class UserAdded{ userId string msg string } I have saved this in event store same updated in read side. Now I add another attribute "IsManager bool" How you will maintain versions because you have now two diffrent schemas living in db. When event store creates readside from past event but now it will give errors for casting because earlier version did not have IsManager boolean present.