Skip to content

Litestream replication to clients #456

Answered by hifi
switz asked this question in Q&A
Discussion options

You must be logged in to vote

Because the database is read only, relatively small and the updates are low frequency I'd explore not using WAL and use some diff algorithm to see how compact the updates would be.

If you can dump the raw SQL commands to update the database you could just patch an existing one like that by always keeping the latest database available to download and a daily compressed SQL text file for updates that the client would download keeping track how many days/updates it is lagging behind. It all depends on the relative size if it makes sense or not. This would be like doing database migrations that also contain data or only data and can be applied on-the-fly by the running application to a live d…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benbjohnson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants