Barrel, keep data in sync in your Erlang application
summary
Barrel is an Erlang-built document store that embeds like Mnesia or serves over HTTP/WebSocket, using an Erlang binding to RocksDB backend for storage and an epoched monotonic sequence for change streams; documents carry hash-based revisions (a small blockchain per document) and attachments replicate via HTTP. It implements push-pull master-master replication with peer-to-peer read/write rules, optional synchronous quorum, per-path indexing of every document field, offline sync for devices, and is entering customer testing with a monthly incremental release plan.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:34Data in the cloud
- 3:25Parity
- 5:49Parallel
- 7:52Attachments
- 8:33Indexing
- 10:40Incremental
- 12:53Personal Replication
- 15:30Barrel
- 16:50Create a Barrel
- 18:31Peertopeer semantics
- 20:58Peertopeer pass semantics
- 21:37Repetition








