Object Storage Durability
SlateDB inherits your object store’s durability. Yup, 99.999999999% durability.
Object Storage Durability
SlateDB inherits your object store’s durability. Yup, 99.999999999% durability.
Zero-Disk Architecture
SlateDB runs without disks. No more disk failures, no more disk corruption.
Simple Replication
Why write complex replication protocols when you can let your object store handle it?
Tunable Performance
Configure SlateDB to optimize for low latency, low cost, or high durability.
Scalable Readers
Supports a single writer and multiple readers. SlateDB detects and fences zombie writers.
Built in Rust
SlateDB is an embeddable library built in Rust. Use SlateDB with the language of your choice.
Add the SlateDB crate and other dependencies to your project:
cargo add slatedb tokio --features tokio/macros
Connect the database to your object store, and start working with it:
use slatedb::object_store::memory::InMemory;use slatedb::{Db, Error};use std::sync::Arc;
#[tokio::main]async fn main() -> Result<(), Error> { let object_store = Arc::new(InMemory::new()); let db = Db::open("/tmp/slatedb_simple_example", object_store).await?;
db.put(b"key", b"value").await?;
match db.get(b"key").await? { Some(value) => println!("value: {value:?}"), None => println!("value not found"), }
db.close().await?;
Ok(())}
See a full example