App Architecture for the Subway
summary
The New York Times Crosswords game works offline even on a first open by combining an open source Store library for unidirectional caching with Retrofit fetchers and Gson/Jackson/Moshi parsers, filesystem persisters addressed by a barcode key, and preloaded assets written into cache on first run. Background warming uses scheduled jobs and push-triggered prefetch (JobScheduler or Firebase Job Dispatcher) to fetch tomorrow’s puzzle so the app delivers playable puzzles on the subway without network.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 0:39Bens background
- 2:01Ephemeral data
- 2:29Realworld example
- 3:13Demo app
- 4:08Why a repository
- 5:05Store
- 6:59Interface declaration
- 7:40Store builder
- 10:05Fetch
- 10:19File System
- 10:40Path Resolver
- 11:25Fragment Architecture
- 11:48Fragment Scope
- 12:17Presenter Scope
- 14:39Asset Resource
- 15:11Asset Directory
- 16:26Data
- 16:40Push Notification
- 18:55Daily Puzzles
- 19:20Push Notifications
- 19:46Job Scheduler
- 20:10Sync Adapters
- 21:29Outro
related talks
43mOffline-first Architecture - How to survive without the internet?
21mStore Library
20mOffline-First React Native: Designing for production
34mOffline-First Mobile App Design
28mOffline first applications in React Native done well
49mBuilding for the future at Snapchat
35mHow Offline-First Architecture Could Save Your Apps
18mRethinking Apps with Local-First Architecture
