fjall
🗻 Log-structured, embeddable key-value storage engine written in Rust
What is fjall?
🗻 Log-structured, embeddable key-value storage engine written in Rust
Overview of fjall
What it is
Fjall is a log-structured, embeddable key-value storage engine written in Rust. It uses an LSM-tree-based storage approach similar to RocksDB and provides a thread-safe BTreeMap-like API. The engine is built entirely in safe and stable Rust, and is not a standalone database server, nor a relational or wide-column database. It supports multiple keyspaces (column families) with cross-keyspace atomic semantics, and includes built-in compression (default LZ4). Optional features include serializable transactions, key-value separation for large blobs, and custom compaction filters. The project is open source under the MIT OR Apache-2.0 license.
Key features
- Thread-safe BTreeMap-like API with range and prefix searching, forward and reverse iteration.
- LSM-tree-based storage with multiple keyspaces (column families) and cross-keyspace atomic semantics.
- Built-in compression (default LZ4) with optional feature flag.
- Optional serializable transactions (optimistic or single-writer modes).
- Optional key-value separation for large blob use cases.
- Optional custom compaction filters to run custom logic during compactions.
- Automatic background maintenance and configurable durability (flush to OS buffers by default, with explicit persist to disk).
Use cases
Fjall is suitable for applications that need an embedded key-value store with transactional support, such as local data caching, metadata storage, timeseries data (with big-endian integer keys), or any workload requiring range queries and prefix scans. It is designed for single-process, multi-threaded use and is not intended for distributed or multi-process scenarios. The optional transactional modes make it appropriate for read-modify-write operations that require serializable isolation.
Getting started
Add the crate to your project:bashcargo add fjallFor a complete example, see the repository README.
License and pricing
All source code is licensed under MIT OR Apache-2.0. The project is open source and free to use.
Based on the project's public README and repository metadata.