
11/11/2022
What this post added
This post details the risks and limitations of using Ruby's Marshal for serialization in caching, particularly highlighting a production incident caused by Marshal's behavior with class changes. It explains Marshal's internal encoding mechanisms for objects, instance variables, and core types like strings and arrays, and introduces MessagePack as a safer alternative. The post sets the stage for a deeper dive into the implementation of MessagePack for caching.