tursodatabase / libsql-experimental-python

libSQL API for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Periodic sync support?

penberg opened this issue · comments

We want users to be able to configure embedded replicas to sync periodically. Lucio thinks it's should be streaming, but whatever… The main thing we still want to keep, though, is the current explicit sync() flow because it's useful in some use cases. For example, if I have a mobile app, I don't want it to use network bandwidth all the time if, for example, I am on an expensive data plan.

Yes, this would be super helpful... If it didn't exist I'd need to create it for my use case.

I'd like to be able to deploy a traditional web app and scale it horizontally. With sticky sessions and read-your-write, I can make sure a user always sees their own writes, but I still need to sync periodically to capture any writes that might happen on a different node.