GitHub - maxpert/marmot: A distributed SQLite server with MySQL wire compatible interface · GitHub
Go, MIT
Marmot v2 is a leaderless, distributed SQLite replication system built on a gossip-based protocol with distributed transactions and eventual consistency.
Marmot is a multi-master, leaderless distributed SQLite replication system designed to scale read-heavy applications horizontally. [1, 2, 3]
Core Architecture & Mechanics
- Leaderless & Multi-Writer: Unlike single-master systems (such as rqlite) or backup tools (such as Litestream), Marmot allows independent node progression and local table transaction serialization without routing everything through a central coordinator. [1, 2]
- NATS JetStream Integration: It maps row-level changes to NATS JetStream to propagate updates across nodes with eventual consistency. [1, 2, 3]
- Conflict Resolution: It typically relies on last-writer-wins (LWW) mechanisms and careful ID generation strategies (such as Snowflake or JS-safe 53-bit auto-increment IDs) to mitigate collision risks. [1, 2]
- Evolution & Alternatives: The project evolved toward a distributed SQLite server with a MySQL wire-compatible interface supporting features like distributed DDL replication and vector search. Related forks and community projects like HarmonyLite continue this leaderless NATS-based SQLite replication vision. [1, 2, 3]
- Known Alternatives: LiteSync, dqlite, cr-sqlite, comdb2, rqlite, LiteFS, liteserver, Bedrock, libsql, and SQLSync. [1]
Marmot
https://awsmfoss.com/marmot/
SQLite is the most widely deployed database many people have never heard of. If you're using it you've probably felt the need to do some enhanced disaster recovery.
Marmot distributes SQLite database data (writes) with eventual consistency on top of NATS Jetstream (another awesome project). With Marmot you can more easily scale the reads on your SQLite database, and that means more robust SQLite deployments for all.
GitHub - nats-io/nats-server: High-Performance server for NATS.io, the cloud and edge native messaging system. · GitHub
Marmot distributes SQLite database data (writes) with eventual consistency on top of NATS Jetstream (another awesome project). With Marmot you can more easily scale the reads on your SQLite database, and that means more robust SQLite deployments for all.
GitHub - nats-io/nats-server: High-Performance server for NATS.io, the cloud and edge native messaging system. · GitHub
Go, Apache2