Hi Guys,
I belive that the best way to save your application state is to a traditional relational database which most of the time its table structure is pretty much represent the data model of our system + meta data. However other guys in my team think that today its best simply serialize the entire object graph to a binary or xml file. No need to say (but still i'll say it) that world war 3 is going between us and i would like to hear your opinion about this issue.
Personaly i hate serialization because:
1. The data saved is adhered only to your development platform (c# in my case). No other platforms like Java or c++ can use this data.
2. Entire object graph (including all the inheritence chain )is saved and not only the data we need.
3. Changing the data model might cause severe backward compatibility issues when trying to load old states.
4. Sharing parts of the data between applications is problematic.
I would like to hear your opinion about that,
Thanks,
Adi barda