Advanced offline caching techniques in Cloud Firestore
summary
A demo e-commerce app called FireSale shows how the Firestore SDK cache provides offline reads and queues mutations using getDocs, addDoc and onSnapshot, with persistence via enableIndexedDbPersistence (enabled by default on Android/iOS, manual on web). Bundles generated by an Admin SDK and stored in Cloud Storage are loaded with loadBundle so 10,000 users avoid repeated server reads, cutting an estimated 3,750,000 reads to about 2,250 billed reads (>99% savings). SDK-side acceleration uses client-side indexing via setIndexConfiguration to keep cache queries fast.
AI-written summary · about
chapters (4)
related talks
37mBuilding Scalable Apps with Cloud Firestore
49mOfflineFirst Apps with PouchDB and CouchDB
33mOffline applications in an online world
18mCloud Firestore for Game Developers
32mLook, Mum, No Internet - Creating great experiences with offline-first apps
39mOffline first!
40mBoost App Reliability: Offline Storage Solutions with AWS Expertise
44mDesign principles and implementation strategies for better offline experience
