New to “Lightweight Persistence”

“Lightweight Persistence” has many changes. I covered Storable in the first edition, but since then it’s security problem has become more widely know. It’s easy to create a Storable file that can run unexpected code, for a couple of reasons.

Since I first wrote this book, YAML and JSON have become much more important, so I cover those.

A new format, Sereal, has emerged from Booking.com. It has some interesting design goals that make it fast and small. I’ve included it and I’m hoping that it works out well. It’s always a bit iffy to include new modules because people haven’t discovered the problems yet. It’s in heavy production use at Booking, though, so I think it’s better than most probably.

You can read this chapter in O’Reilly Atlas.