Client-Side and Mobile Data Persistence Questions
Storing data on devices and clients: embedded and mobile databases (SQLite and similar), local caching, offline-first persistence and sync, and durable save/state systems for applications and games. Covers constrained-storage design, conflict resolution on sync, and persisting state reliably outside a central server. Serves mobile and game development interviews.
You have persisted client state in localStorage/IndexedDB used by millions of users. Outline a safe migration/versioning strategy to change state shape: include version keys, incremental migration scripts, backward compatibility, rollback mechanisms, and testing strategies to validate migrations across browser versions.
Design the frontend state and sync architecture for a Todo app that must work offline, support optimistic adds/edits, and reliably sync with the server when online. Describe the data model, pending-operations queue in IndexedDB, background sync via Service Worker, client-generated IDs, conflict resolution, and retry strategies.
Design a scalable caching strategy that spans Service Worker Cache API, IndexedDB, and network fetches for a Progressive Web App. Cover caching of static assets, structured API responses, TTLs, stale-while-revalidate, background sync for writes, and cache invalidation during deployments.
That is every published Client-Side and Mobile Data Persistence question for Full-Stack Developer so far. Browse the other topics in this category, or practice this one interactively.