vmware-archive / haret

A strongly consistent distributed coordination system, built using proven protocols & implemented in Rust.
461 stars 18 forks source link

Use serde instead of rustc_serialize #94

Closed andrewjstone closed 7 years ago

andrewjstone commented 7 years ago

rustc_serialize is deprecated. Serde also allows for forwards and backwards compatibility via ignoring fields of new messages on old nodes, and creating default values for missing fields on new nodes.

This PR depends upon https://github.com/andrewjstone/rabble/issues/19

Right now, we also use msgpack as the serialization format, but it appears that bincode is almost twice as fast. However, right now neither of them properly handles the forward/backwards compatibility as provided by serde. An issue has been opened for bincode here

andrewjstone commented 7 years ago

Fixed by #96

andrewjstone commented 7 years ago

Backwards/Forwards compatibility is still an issue, but one that can be dealt with later.