---
title: "Litestream v0.5.0 is Here"
description: "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."
url: "https://swe.quest/articles/litestream-v0-5-0-is-here-f9fbba886e3df515"
canonical: "https://fly.io/blog/litestream-v050-is-here/"
source: "Fly.io"
published: "2025-10-02"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["sqlite","replication","storage-engines","go"]
---

# Litestream v0.5.0 is Here

A post on [Fly.io](https://swe.quest/sources/flyio.md), published 2025-10-02, 6 min read, Release. Original: [https://fly.io/blog/litestream-v050-is-here/](https://fly.io/blog/litestream-v050-is-here/)

## Summary

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. The 'generations' concept is gone in favor of monotonically increasing transaction IDs, LTX now compresses per page with a trailing index for page-granular access, and CGO is dropped by switching to modernc.org/sqlite. Upgrading is drop-in with a backwards-compatible config, but v0.5.0 cannot restore old v0.3.x WAL segments and allows only one replica destination per database. The release also adds a NATS JetStream replica type, and a VFS for instant read replicas is planned next.

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)
- [Go](https://swe.quest/tags/go.md) (Languages)

## Prerequisites

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

## Keywords

Litestream, LTX, LiteFS, SQLite, NATS JetStream, modernc.org/sqlite, S3

## Related posts

- [Litestream Revamped: SQLite Replication](https://swe.quest/articles/litestream-revamped-sqlite-replication-0708888533a47bfa.md): Fly.io · 2025-05-20 · Medium · 6 min read · SQLite, Replication, Storage engines, Storage systems
  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.
- [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.
- [Xet is on the Hub](https://swe.quest/articles/xet-is-on-the-hub-31527082840b41cc.md): Hugging Face · 2025-03-18 · Medium · 9 min read · Storage systems, Performance engineering, Load balancing, Scaling
  Hugging Face migrated its first model and dataset repositories from Git LFS to Xet storage, which uses content-defined chunking (~64 KB chunks aggregated into ~64 MB blocks) so that only changed bytes are uploaded.
- [Skip the API, Ship Your Database](https://swe.quest/articles/skip-the-api-ship-your-database-848af5fd83020408.md): Fly.io · 2023-09-13 · Medium · 5 min read · SQLite, API design, Replication, Multi-tenancy, System design
  Instead of designing an API for internal services, Fly.io ships them a read-only SQLite replica via LiteFS, letting consumers query and join data with plain SQL.

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)
