dgraph-io/badger

Fast key-value DB in Go.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 3 minutes ago
Added to GitGenius on September 3rd, 2026
Created on January 26th, 2017
Open Issues & Pull Requests: 68 (+0)
GitHub issues: Enabled
Number of forks: 1,314
Total Stargazers: 15,758 (+0)
Total Subscribers: 226 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Badger is a key-value database library written in Go that prioritizes speed and efficiency for SSD-based storage.

Badger solves the problem of needing a fast, embedded key-value store by using a log-structured merge tree architecture optimized for solid-state drives. The approach separates keys and values into different structures, storing values in a write-ahead log while maintaining keys in an in-memory index. This design reduces write amplification and improves throughput compared to traditional B-tree approaches, making it particularly effective for workloads that involve frequent writes to SSDs.

Developers should choose Badger when building applications that require an embedded database with high write performance and can tolerate the memory overhead of maintaining an in-memory key index. It suits projects ranging from caching layers to full application databases where the ability to run without external dependencies is valuable. The tool is particularly well-matched to systems where SSD performance characteristics can be leveraged and where Go's ecosystem is already in use.

The project shows consistent maintenance with regular updates addressing bug fixes and performance improvements. Development activity demonstrates responsiveness to reported issues and a commitment to stability in the codebase. The maintainers actively refine the implementation based on real-world usage patterns and continue to optimize the core storage engine.