Hacker News new | ask | show | jobs
by avinassh 1920 days ago
How does Litstream actually works? Do you read from WAL and then sync with S3?
1 comments

Yes, it reads off the WAL then compresses the frames using LZ4 and then uploads to S3. The SQLite WAL acts as a circular buffer so Litestream takes over the checkpointing process to control when it rolls over so it can recreate that buffer as separate files. There's additional information on the web site: https://litestream.io/how-it-works/