Diffinery

homeflare/celldpublic

celld/crates/ltx/README.md
37 lines · 1.7 KBRaw History
1# celld-ltx
2
3celld's in-process SQLite-to-object-store replication engine. It reads each
4cell's SQLite WAL, writes LTX files to a fleet bucket, restores a database from
5that bucket, and — as it grows — exposes the replicated position so celld can
6gate a write's response until it is durable. This is the foundation of celld's
7durability goal: RPO=0 for every cell write, matching Durable Objects.
8
9## Provenance and attribution
10
11Seeded on 2026-08-03 from a read-only snapshot of rustyriver
12(https://github.com/mikenomitch/rustyriver), a from-scratch Rust
13reimplementation of Litestream v0.5 and the LTX file format. celld owns and
14evolves this snapshot as first-class celld source; it does not track an
15upstream branch.
16
17Attribution for the vendored and ported work:
18
19- **rustyriver** — Copyright 2026 The rustyriver authors, licensed under the
20 Apache License, Version 2.0.
21- **Litestream** (https://github.com/benbjohnson/litestream), pinned by celld
22 to tag v0.5.15 — Copyright (c) Ben Johnson and the Litestream authors,
23 licensed under the Apache License, Version 2.0. Replication behavior and test
24 vectors are ported for wire-compatible interoperability.
25- **LTX file format and reference implementation**
26 (https://github.com/superfly/ltx), tag v0.5.1 — Copyright (c) Superfly, Inc.,
27 licensed under the Apache License, Version 2.0.
28
29The full Apache License, Version 2.0 text is in [LICENSE](LICENSE).
30
31## Tests
32
33The suite ports the upstream conformance vectors. `differential_xtool` checks
34LTX read and write byte-for-byte against the real Litestream binary in three
35directions; it self-skips when the binary is absent, so the fast CI stays green
36while the release gate (which builds the pinned Litestream) runs the real
37oracle.