SlateDB is an open-source embedded database that persists data to object storage such as S3 or GCS. It offers get, put, delete, range queries, transactions, and compaction for application code.
Overview
SlateDB is an embedded key-value storage engine implemented as a log-structured merge-tree. Unlike engines that rely on local disks, it writes durable data to object storage backends, including S3, GCS, ABS, MinIO, and other providers supported through the object_store crate.
Writes batch into in-memory structures and flush periodically as sorted string tables to reduce PUT costs. Reads use block caches, compression, bloom filters, and optional local SST disk caches to limit latency and GET charges. The core is Rust, with official bindings for Go, Java, Node.js, TypeScript, and Python.
The design targets a single writer with multiple readers, formally verified manifest fencing, and optional separated compaction processes. It supports transactions, merge operators, change data capture, snapshots, optimistic concurrency, zero-copy clones, and database split or merge operations.
Applications embed SlateDB when they want S3-class durability and capacity without maintaining local database disks or cross-AZ storage traffic. Performance and cost can be tuned by adjusting flush intervals and cache behavior.
Key features
- Object storage-backed durability
- LSM-tree with SST flushes
- Block cache and bloom filters
- Transactions and merge operators
- Range queries and CDC
- Zero-copy clones and splits
- Rust core with multi-language bindings
- Configurable write batching
Use cases
- Embedded OLTP on cloud object stores
- Key-value workloads without local disks
- Applications needing S3-class durability
- Read-scaled deployments with many readers
- Storage engines in Rust or bound languages