News for hackers. Stuff that matters.
Re:Local-First Web Development by rs999gti on Monday February 20, 2023 @09:54AM (#34868612)
How do you prevent sync issues?

One local DB/store for each app. Who is the correct sync?

Or is it first in first out?

Re:Local-First Web Development by hem777 on Wednesday February 22, 2023 @12:47PM (#34899567)
CRDTs is how sync issues become non-issues. The “correct sync” is deterministically determined by the CRDT conflict resolution algorithm. There can be multiple DBs/stores per app or per user or per whatever makes sense. One big global DB/store broken down to millions of DBs/stores.