Tuesday, December 6, 2022
HomeiOS Developmentandroid - What's a diff between Cache (Normalized, HTTP) and Continued queries...

android – What’s a diff between Cache (Normalized, HTTP) and Continued queries (Apollo)?


An android app makes use of GraphQL (Apollo), this app has a Normalized cache, with a purpose to cut back the variety of queries to the backend.

Nonetheless, I see there may be additionally APQ (Computerized Continued Queries), so far as I perceive it is usually a sort of various for cache implementation, however on the backend. proper?

So, so far as I perceive if the app has each APQ and Normalized cache a question circulate appears to be like like this:

question -> verify regionally in cache -> if nothing -> ship question on server -> if there may be nothing in APQ -> execute question and ship again to the consumer -> consequence saves in APQ -> consumer receives the response -> save response in normalized cache

The query is – does it make sense? Would not it appear like overkill? I imply what’s a motive to make an implementation for each Normalized cache and APQ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments