An empty database in everybody's pocket
summary
IndexedDB is presented as a practical way to add performance and resiliency to single page apps by keeping a local object store of messages. A small chat called Twill emoji uses Twilio Programmable Chat, opens a database with an object store named messages, uses a keyPath Sid and cursor iteration to put and read items, and renders stored messages immediately so messages load instantly from IndexedDB even when the network is slow. Notes include upgrade/version transactions, indexes, Safari bugs, and libraries like idb localForage and pouchDB.
AI-written summary · about
chapters (5)
related talks
31mAn empty database in everybody's pocket
38mMoving seamlessly through offline and online
51mFront End Data
31mBrowser database for offline application use
32mThe hitchhiker's guide to client side persistent data storage
35mBrowsers behind your back
32mThis Is Your Captain Speaking, We're Going into Airplane Mode!
51mCouchDB, PouchDB and Offline-Tolerant Apps
