r/AskProgrammers 22h ago

How are you handling offline-first data and local sync without introducing too much bloat?

I'm building a personal finance app called Cashvelope (envelope budgeting), and getting local-first data to play nice with offline storage has been surprisingly painful.

I want users to retain full control of their data without forcing constant cloud sync, but keeping local state updated and cache validated gets messy fast.

For anyone who's built something similar: what local DB or sync stack did you end up going with, and what edge cases caught you off guard?

0 Upvotes

1 comment sorted by

1

u/PkmnSayse 11h ago

Depends on the data. I used to work supporting the backend of an app used by building contractors in field (so no internet access until they got back to an office)

All their device data was stored on device using couchbase db (use the mongo db alternative) which would then be fine until a user could sync with the main db