Store Library
summary
NYT’s Store is an open source library that implements a 2-level caching + network flow with RxJava + Guava + OKIO, a file-system persistor, OKHttp BufferedSource parsing, and memory cache policies. It exposes get vs fetch semantics (get may return stale in-memory or disk data; fetch forces network), collapses duplicate in-flight requests so 20 identical calls become one, and provides a memory + disk cache with stream events. It ships in the NYT app and is used for real features (intern-built bestsellers) to improve startup and offline behavior.
AI-written summary · about
chapters (9)
- 0:00Introduction and goals
- 3:03Why we built Store
- 6:14What is a Store
- 9:05Building a Store
- 12:57Putting it all together
- 14:45Example with bestsellers
- 17:38Advanced Store usage
- 19:24New features and Kotlin
- 20:27Q&A and feedback
related talks
34mHow to reactively load and cache data without even trying
22mApp Architecture for the Subway
34mStoring app data reliably & performantly with SimpleStore
27mModern Paging at Scale: StoreX + Compose
26mAndroid Architecture for the Subway
40mSmarter Application Caching with Kotlin Flow
41mLearning Rx by example
39mHow to use NgRx ComponentStore?
