How might we use store to keep a server in sync wi...
# store
b
How might we use store to keep a server in sync with the client -- more specifically handling deleted data on the server? The bookkeeper keeps tracks of syncs which maybe could be used to determine an item was deleted since the server wouldn't give it any data. I was thinking of an approach of sending up all of the id's and keeping a graveyard of those id's on the server to look up against. It seems like store5 gets me just shy of all the way there for being able to do this. This is something I've never implemented and due to this I've found it hard to even find solutions from searching because I'm likely not searching the right things. Perhaps articles or your experience might help. Conflict strategy is hard 🙂
Maybe even something like setting the validity to 7 days age. If it fails past that assume it's deleted then both the server and client are in sync
m
👀
Really good question
Mind creating a GH discussion to move it out of Slack? Will share thoughts this afternoon
b
Sure, I can do that. Thanks for listening
🍺 1
g
Hello, Blake! I had been searching about this topic in the last weeks, i'm trying to implement a "simple" app with data syncing, basically the same use case of you, if i don't got it wrong, and how much i learned about, more difficulties and challenges appears. This topic is really hard. If i find something that can contribute to that discussion, I will write.
👍 1
b
Thanks Gabriel. I’ve been thinking about this a while and just letting it simmer.
g
That part of syncing is really the big deal, i solved others problem, but always stuck on some problems with syncing from remote to local, specially syncing deletion
m
First draft of an RFC, bringing together a few other related gaps: https://github.com/MobileNativeFoundation/Store/pull/697 Please take a look and leave comments. If you’re interested in helping, please lmk
👀 4
Wanted to share an early look at Meeseeks with this channel. Store will use it to automatically retry failed syncs and open up other background sync capabilities for consumers. Haven’t decided yet where Meeseeks will ultimately live. Currently developing it under my personal GH. Take a look and let me know what you think! https://github.com/matt-ramotar/meeseeks https://docs.meeseeks.mattramotar.dev
👀 2
🎉 6
❤️ 3
p
This is awesome! We've been doing this very manually and this looks cool. Excited to try it out
❤️ 1
g
Nice work. I will use it on my project. Thank you!