Hacker News new | ask | show | jobs
by tlarkworthy 1836 days ago
Just use Firebase (firestore) ...

It's got: offline first, latency compensation, pubsub, partial sync, authorization rules and serverside timestamps, and global transactions, and 5 9s availability backed by spanner for umpteen languages. https://tomlarkworthy.endpointservices.net/blogs/firestores-...

2 comments

But then one day your Google account is closed by AI. Or the product is abandoned by Google.
Firestore is not really offline-first. Your app wont start without internet connection because the auth handler needs that.
no, it works as long as you logged in once. You have to ensure auth persistence is on (https://firebase.google.com/docs/auth/web/auth-state-persist...). You cannot login when offline, but if you were already logged in, and expiry is set to indefinate, you can stay logged in while offline.