Stop syncing everything
4 days ago
- #edge-computing
- #strong-consistency
- #database-replication
- Graft is an open-source transactional storage engine designed for lazy, partial replication with strong consistency, horizontal scalability, and object storage durability.
- Key use cases for Graft include offline-first & mobile apps, cross-platform sync, stateless multi-writer replicas, and replication of any data type.
- Graft combines the simplicity of physical replication with the efficiency of logical replication, allowing clients to sync only the data they need.
- The core concept of Graft is the Volume: a sparse, ordered collection of fixed-size Pages, with clients interacting through a transactional API.
- Graft supports lazy syncing, partial replication, edge-friendly deployment, and strong consistency, making it suitable for edge-native applications.
- Graft provides Serializable Snapshot Isolation for strong consistency, ensuring safe handling of conflicts and offline operations.
- The Graft SQLite Extension (libgraft) allows for asynchronous replication, lazy partial replicas, and point-in-time restore.
- Graft is developed openly on GitHub, with plans for WebAssembly support, more client libraries, and low-latency writes in the future.
- Graft differs from other SQLite replication solutions like mvSQLite, Litestream, and cr-sqlite by being schema-agnostic and edge-capable.