# Pebble

> RocksDB/LevelDB inspired key-value database in Go

Source: https://talira.ai/catalog/pebble-856q9yyk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Database
- Categories: [databases / embedded](https://talira.ai/categories/databases/embedded)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Cockroach Labs](https://talira.ai/orgs/cockroach-labs.md)
- Funding: Series F, 2021[^3]

Pebble is an embedded key-value store for Go, inspired by LevelDB and [RocksDB](https://talira.ai/catalog/rocksdb-2613tyv8.md) and written for [CockroachDB](https://talira.ai/catalog/cockroachdb-vx5c3n3q.md), which has used it as its default storage engine since v20.2 in November 2020. It's a log-structured merge tree that keeps RocksDB's file formats and the features CockroachDB needs (snapshots, checkpoints, indexed batches, range deletions, SSTable ingestion, prefix bloom filters, merge operators), and leaves out others such as column families, transactions, backups and universal compaction. Compared with RocksDB it has faster reverse iteration, a more concurrent commit pipeline and concurrent compactions out of L0, and it's pure Go with no cgo. Cockroach Labs maintains it under the BSD 3-Clause licence.

## Links

- GitHub: https://github.com/cockroachdb/pebble
- Docs: https://pkg.go.dev/github.com/cockroachdb/pebble

## Problems it solves

- an embedded key-value store for a Go service that doesn't need cgo like RocksDB does
- a fast persistent sorted key-value store inside my Go program
- a storage engine for building my own database in Go

## Features

- embedded LSM key-value store in pure Go, no cgo
- reads and writes RocksDB's file formats
- snapshots, checkpoints and indexed batches
- range deletion tombstones, single delete and merge operators
- SSTable ingestion and prefix bloom filters
- CockroachDB's storage engine in production since 2020

## Limitations

- Lacks RocksDB's column families, transactions, backups and universal compaction, and may corrupt data if opened on a RocksDB database using a feature it lacks[^1]

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 0.65, adoption 0.76, momentum 0.54, community 0.84, backing 0.55, extensibility 0.00.

- last commit 10 days ago
- 8 commits in the last 90 days
- latest release v2.1.7 3 months ago
- 6.1k GitHub stars
- 123 contributors
- backed by Cockroach Labs
- funding: Series F, 2021

## Alternatives

- [RocksDB](https://talira.ai/catalog/rocksdb-2613tyv8.md): Embeddable persistent key-value store for fast storage
- [Badger](https://talira.ai/catalog/badger-jjgdn1k6.md): Embeddable, persistent key-value database in pure Go
- [bbolt](https://talira.ai/catalog/bbolt-jd8aba9j.md): An embedded key/value database for Go
- [LMDB](https://talira.ai/catalog/lmdb-mmsatwjv.md): Lightning Memory-Mapped Database: a tiny, crash-proof embedded key-value store

## Sources

[^1]: https://github.com/cockroachdb/pebble/blob/master/README.md (checked 26 Nov 2026)
[^2]: https://github.com/cockroachdb/pebble/blob/master/LICENSE (checked 26 Nov 2026)
[^3]: https://www.cockroachlabs.com/news/press-release-series-f-funding/ (checked 20 Nov 2026)
