Introduction to GraphQL — Part 3

Apollo Kotlin Client: Performance, Security, and Debugging

Ryan W
4 min readSep 5, 2024

--

This image was created using an AI image creation program.

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…

--

--

Ryan W
Ryan W

Written by Ryan W

Modern Android Development | Jetpack Compose | Kotlin Multiplatform 📱Creating Android Solutions From Concept to Product | Building Apps That Matter Since 2010

No responses yet