Member-only story
Introduction to GraphQL — Part 3
Apollo Kotlin Client: Performance, Security, and Debugging
4 min readSep 5, 2024
If you have missed the previous two parts of this article:
Now that we understand integrating GraphQL into our architecture, it’s time to focus on advanced topics: performance optimisation, security considerations, and debugging strategies.
Optimising GraphQL Performance
1. Implement Caching
Apollo Client offers a normalised cache to store GraphQL responses, which helps reduce redundant network requests.
💡 A normalised cache stores objects using unique identifiers, enabling efficient cache reads and writes.
val normalizedCache = ApolloNormalizedCacheFactory.create()
val apolloClient…