---
title: "Litestream Revamped: SQLite Replication"
description: "Litestream is being reworked around ideas from LiteFS. It replaces the raw-WAL \"shadow WAL\" with transaction-aware LTX files, sorted page changesets that can be compacted LSM-style, so point-in-time restores no longer replay every intermediate page write."
url: "https://swe.quest/articles/litestream-revamped-sqlite-replication-0708888533a47bfa"
canonical: "https://fly.io/blog/litestream-revamped/"
source: "Fly.io"
published: "2025-05-20"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["sqlite","replication","storage-engines","storage-systems"]
---

# Litestream Revamped: SQLite Replication

A post on [Fly.io](https://swe.quest/sources/flyio.md), published 2025-05-20, 6 min read, Announcement. Original: [https://fly.io/blog/litestream-revamped/](https://fly.io/blog/litestream-revamped/)

## Summary

Litestream is being reworked around ideas from LiteFS. It replaces the raw-WAL "shadow WAL" with transaction-aware LTX files, sorted page changesets that can be compacted LSM-style, so point-in-time restores no longer replay every intermediate page write. Conditional writes in S3 and Tigris provide a time-based lease that guarantees a single writer per destination without Consul, which removes the need for multiple "generations" and makes failover and replica resync simpler. Planned additions are a VFS-based read-replica layer that fetches and caches pages straight from object storage, and wildcard replication of hundreds or thousands of databases from one process.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- SQLite WAL mode ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))
- S3 object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- LSM tree compaction ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))

## Keywords

Litestream, LiteFS, LTX, LiteVFS, SQLite VFS, Tigris, S3 conditional writes, Consul

## Related posts

- [Litestream v0.5.0 is Here](https://swe.quest/articles/litestream-v0-5-0-is-here-f9fbba886e3df515.md): Fly.io · 2025-10-02 · Medium · 6 min read · SQLite, Replication, Storage engines, Go
  Litestream v0.5.0 replaces WAL-segment backups with the LTX file format from LiteFS, enabling efficient point-in-time recovery through hierarchical compaction (30-second, 5-minute and hourly levels), so a restore typically needs only a dozen or so files.
- [Litestream VFS](https://swe.quest/articles/litestream-vfs-865d780022ba82d0.md): Fly.io · 2025-12-11 · Medium · 7 min read · SQLite, Storage engines, Replication, Storage systems
  Litestream VFS is a SQLite VFS plugin that runs read-only queries directly against Litestream backups in S3 without downloading the whole database, and supports point-in-time queries via a \`PRAGMA litestream\_time\` setting.
- [Litestream Writable VFS](https://swe.quest/articles/litestream-writable-vfs-4f950262d6c7f5b0.md): Fly.io · 2026-01-29 · Medium · 7 min read · SQLite, Storage engines, Replication, Storage systems
  Litestream's SQLite VFS now supports an optional write mode and background hydration, built so the Sprites storage stack can serve reads and writes milliseconds after a cold boot without first downloading its JuiceFS block map from object storage.
- [How does Turso Cloud keep your data durable and safe?](https://swe.quest/articles/how-does-turso-cloud-keep-your-data-durable-and-safe-676876baa112a2af.md): Turso · 2025-05-20 · Medium · 4 min read · SQLite, Storage engines, Storage systems, Multi-tenancy, Cloud platforms
  Turso Cloud makes every SQLite database durable on S3 and S3 Express, treating local server disk purely as a cache.
- [Turso Sync: Local-First SQLite with Push and Pull](https://swe.quest/articles/turso-sync-local-first-sqlite-with-push-and-pull-8967f9053b2dc6bc.md): Turso · 2026-11-16 · Medium · 10 min read · Local-first & sync, SQLite, Replication, Event-driven architecture, Performance engineering
  Turso Sync replaces libSQL's page-based Embedded Replicas with logical row-level changes captured via CDC in Turso Database, a Rust rewrite of SQLite, so reads and writes stay local and apps call push() and pull() explicitly.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
