Chapter 25. Bears, ETS, Beets: In-Memory NoSQL for Free!

Something we’ve been doing time and time again has been implementing some kind of storage device as a process. We’ve made fridges to store things, built regis to register processes, seen key/value stores, and so on. If we were programmers doing object-oriented design, we would have a bunch of singletons floating around, special storage classes, and whatnot. In fact, wrapping data structures like dicts and GB trees in processes is a bit like that.

This chapter introduces ETS, an in-memory database that provides an alternative data storage approach.

image with no caption

Why ETS

Holding data structures in a process ...

Get Learn You Some Erlang for Great Good! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.