Key-Value Database
15.6k 2026-04-19
dgraph-io/badger
BadgerDB is a fast, embeddable, and persistent key-value database written in pure Go, designed for high performance with large datasets on SSDs.
Core Features
Pure Go implementation for a key-value store.
Supports concurrent ACID transactions with Serializable Snapshot Isolation (SSI).
Optimized for SSDs and datasets spanning hundreds of terabytes.
Embeddable for seamless integration into Go applications.
High read throughput with LSM tree and value log design.
Quick Start
go get github.com/dgraph-io/badger/v4Detailed Introduction
BadgerDB is a high-performance, embeddable key-value database meticulously crafted in pure Go. It serves as the foundational storage for Dgraph and is engineered to be a robust alternative to non-Go key-value stores like RocksDB. Leveraging a WiscKey-inspired design, BadgerDB is optimized for SSDs and efficiently handles datasets up to hundreds of terabytes. It provides strong transactional guarantees, including concurrent ACID transactions with serializable snapshot isolation, ensuring data consistency and reliability for demanding applications.