Backward compatibility with event-sourcing

Posted by Tomas Jansson on Programmers See other posts from Programmers or by Tomas Jansson
Published on 2011-11-28T08:37:07Z Indexed on 2011/11/28 10:38 UTC
Read the original article Hit count: 394

Filed under:

How do you stay backward compatible with event-sourcing? Let say you release a version that has one kind of event, let call it X. You know how to handle that event in all the systems that extracts the events from the event source. In a later release you make a change to event X or delete it, how do you stay backward compatible with that?

To have a fully functional system you need to be able to handle the old event as the same time as you need to handle the updated version. Or if you delete that event type, then you will be stuck with code that is only there to handle legacy events which in my head can be a little bit messy in the long run.

© Programmers or respective owner

Related posts about event-sourcing