Embeddable, persistent key-value database in pure Go
open sourceApache-2.0free
Badger (BadgerDB) is an embeddable, persistent key-value database written in pure Go, meant as a fast alternative to key-value stores that aren't written in Go, such as RocksDB. Its design follows the WiscKey paper: an LSM tree holds the keys and a separate value log holds the values, which suits SSDs and data sets of terabytes. It supports concurrent ACID transactions with serializable snapshot isolation, checked by a nightly Jepsen-style bank test, and encryption at rest, and a CLI does offline backup and restore. It's the storage engine under Dgraph, and projects such as Jaeger use it too.
Problems it solves
- an embedded key-value database for my Go program without cgo
- a pure Go alternative to RocksDB
- store terabytes of key-value data on SSD inside my Go service with transactions
Features
- embedded key-value store in pure Go
- LSM tree with a separate value log (WiscKey design)
- concurrent ACID transactions with serializable snapshot isolation
- encryption at rest
- CLI for offline backup and restore
- optimized for SSDs and terabyte-scale data
