GraphQL on Android is here!
summary
The New York Times needed an Android GraphQL client and helps maintain Apollo Android, an open source Gradle plugin plus runtime that generates request/response classes, uses OKHTTP, supports RxJava, and offers two caches: an HTTP LRU cache and a normalized cache backed by SQL (or custom implementations). It ships codegen that avoids reflection, handles 20MB queries in production, includes optimistic mutation updates, has ~380 commits and thousands of tests, and is used successfully in production.
AI-written summary · about
chapters (11)
- 0:00Introduction to GraphQL
- 8:53REST vs GraphQL comparison
- 10:40Introducing Apollo Android
- 13:05Setting up Apollo Android
- 15:52Generated code benefits
- 17:58Executing GraphQL queries
- 19:01Caching strategies in Apollo
- 24:34Custom cache implementations
- 25:17RX Java support
- 25:58Production readiness and testing
- 27:02Live Q&A session
related talks
35mGraphQL in real life
24mGraphQL in Android
43mExploring GraphQL on Android
39mOur ongoing journey from REST to GraphQL on Android
45mOur ongoing journey from REST to GraphQL on Android
36mImplementing an Android client that brings out GraphQL’s strengths
23mGraphQL in real life
52mOur ongoing journey from REST to GraphQL on Android
