Caching your data graph with Apollo Kotlin
summary
Apollo Kotlin demonstrates a normalized cache that turns GraphQL JSON into a key‑value record store (memory + SQLite) and regenerates typesafe Kotlin models from those records, so a mutation updates all watching UI coroutines automatically. Requires stable ids to avoid duplication, supports chaining memory then sql for fast hits, exposes watches as source of truth, ships with an Android Makers example app, and flags pagination and expiry as open issues.
AI-written summary · about
chapters (6)
- 0:00Start
- 1:01Graphql
- 7:12Cache the Http Responses
- 8:31Cache Normalization
- 12:06Apollo Katlin
- 17:27Conclusion
related talks
21mCaching your GraphQL data graph
07mCache me if you can: Wayfair's secret to snappier apps
16mLightning Talk: Next-Generation GraphQL Cache Management in Your Android and iOS Apps
24mGraphQL Clients
08mFine-tuning Apollo Client's normalized cache
21mOffline and reactive apps with GraphQL
32mGraphQL Powered by Kotlin
41mOur ongoing journey from REST to GraphQL on Android
