←back to thread

366 points virtualwhys | 1 comments | | HN request time: 0.204s | source
Show context
uvas_pasas_per ◴[] No.41903373[source]
My problem with PG is it just doesn't seem to help much with my situation. I want to write apps that work offline and sync data across devices using the 'cloud'. I think that means Sqlite on the client, but ?? for the server. I have yet to find a good book explaining techniques for this kind of replication/syncing.
replies(4): >>41903396 #>>41903423 #>>41903746 #>>41904249 #
1. mannyv ◴[] No.41904249[source]
Well usually you use a datastore on a server as a master, then you pull/push based on timestamps.

Firebase and cognito/appsync work this way, basically.

You can use any data store you want on the server to do that. You could theoretically push a local sqlite db up to s3 as a sync mechanism, I suppose, if you do the locking correctly.