ShorterDB
A high-performance, embedded key-value store for Rust, built with a Log-Structured Merge-Tree (LSM-Tree) architecture.
Features
- Embedded: Runs directly in your application process (no external server required).
- Persistent: Data is durably stored using a Write-Ahead Log (WAL) and SSTables.
- Fast: In-memory writers using lock-free SkipLists.
- Simple API: Minimalistic
get,set, anddeleteinterface. - Thread-Safe: Designed for concurrent access.
Installation
Add this to your Cargo.toml:
[]
= "0.2.0"
Quick Start
use ShorterDB;
use Path;
Architecture
ShorterDB uses a classic LSM-Tree design with a Memtable, Write-Ahead Log, and background Flusher.
For deep technical details on the internal design, file formats, and ACID guarantees, see ARCHITECTURE.md.
Examples
The project workspace includes examples you can run locally:
# Basic embedded usage
# Interactive REPL
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.