Effective Data Prefetching on Background
summary
Instagram describes a concrete system that prefetches media only on Wi‑Fi, queues three feature jobs that each fetch up to 10 items in the prototype, and later replaces the prototype with a centralized framework that schedules work via a compatible job scheduler built with AlarmManager/BroadcastReceiver for older Android. It stores responses in a device response store, measures waste with a cache efficiency logger, predicts user return at the p75 latency, avoids Firebase to save APK size, and reports increased engagement in emerging markets.
AI-written summary · about
chapters (8)
- 0:00Introduction and context
- 3:50Problem with network limitations
- 9:14Offline experience strategies
- 15:24Background prefetching drivers
- 21:03Prototype and early learnings
- 28:11Job scheduler implementation
- 32:06Metrics and efficiency tracking
- 38:32Key takeaways and conclusion
related talks
40mAndroid high performance baby
28mPractical WorkManager
39mModern best practices for background task execution
15mASAP: Fast Mobile Application Switch via Adaptive Prepaging
11mEffective background tasks on Android
25mReducing Android Boot Times: Evaluating Proactive File Prefetching
36mBackground Work in Android: Strategies and Best Practices
31mAndroid Jetpack: Easy background processing with WorkManager
