RoseDB is a lightweight key-value engine modeled on Bitcask, with append-only WAL logs, in-memory key index, and APIs suited to embedded use.
Overview
RoseDB is a key-value storage engine implemented in Go using a Bitcask-style design inspired by log-structured files and merge strategies. Log files act as a write-ahead log backend made of append-only blocks. The project describes itself as tested and used in production as an embedded storage layer.
Reads and writes aim for low latency via direct index lookups and append-only writes without reordering data on disk. An in-memory structure maps keys to file offsets so large datasets on disk do not require loading values into RAM, though all keys must fit in memory. Batch writes support atomic, durable commits.
Features include forward and backward iterators, key change notifications, and per-key expiration. Crash recovery reviews the tail of open log files with CRC checks. Backups can copy database files with standard archive utilities because data is write-once.
The project positions RoseDB as lightweight for embedded devices, fast in Go for throughput-oriented scenarios, and consistent thanks to WAL usage. Community channels include Slack and discussions.
Key features
- Bitcask append-only log storage
- In-memory key index to disk offsets
- Atomic durable batch writes
- Forward and backward iterators
- Key watch notifications
- Per-key expiration support
- WAL-backed crash recovery
- Suited to embedded embedding
Use cases
- Embedded key-value store in Go services
- High-throughput append-heavy workloads
- Local persistence with simple backups
- Apps needing expiring keys