A cloud native embedded storage engine built on object storage.
A cloud native embedded storage engine built on object storage.
SlateDB is an embedded storage engine built as a log-structured merge-tree. Unlike traditional LSM-tree storage engines, SlateDB writes data to object storage (S3, GCS, ABS, MinIO, Tigris, and so on). Leveraging object storage allows SlateDB to provide bottomless storage capacity, high durability, and easy replication. The trade-off is that object storage has a higher latency and higher API cost than local disk.
To mitigate high write API costs (PUTs), SlateDB batches writes. Rather than writing every put() call to object storage, MemTables are flushed periodically to object storage as a string-sorted table (SST). The flush interval is configurable.
Write operations return a WriteHandle after updating the in-memory WAL and MemTable. Call handle.await_durable().await to wait for one write to become durable, or call db.flush().await to flush all pending writes.
To mitigate read latency and read API costs (GETs), SlateDB will use standard LSM-tree caching techniques: in-memory block caches, compression, bloom filters, and local SST disk caches.
Checkout slatedb.io to learn more.
Add the following to your Cargo.toml:
[dependencies]
slatedb = "*"
tokio = "*"Then you can use SlateDB in your Rust code:
…SlateDB uses the object_store crate to interact with object storage, and therefore supports any object storage that implements the ObjectStore trait. You can use the crate in your project to interact with any object storage that implements the ObjectStore trait. SlateDB also re-exports the object_store crate for your convenience.
Visit slatedb.io to learn more.
Check out CONTRIBUTING.md for fun (and useful) projects to work on.
SlateDB follows Semantic Versioning. We release new versions approximately every 2 months at the end of each even month (February, April, and so on). We guarantee forward/backward compatibility for storage formats between adjacent versions, but we do not currently guarantee API compatibility at this time (we reserve the right to break compile-time API compatibility).
See who's using SlateDB.
Thanks to the following companies for donating services and infrastructure to the SlateDB project.
SlateDB is licensed under the Apache License, Version 2.0.
SlateDB is a member of the Commonhaus Foundation.
No open issues yet, or sync has not completed.