Pagination on response

Is it possible have pagination of the JSON response using lookupcache. What are all the pros and cons of this and whether this cache is shared between cluster?Also any approximate maximum limit?

0 1 780
1 REPLY 1

Yes, you can implement paginated JSON responses using PopulateCache and LookupCache. If you use Apigee Edge SaaS there is a 2-level cache and all message processors in the environment will have cache entries propagated.

The pros are:

  • save the "expense" in time and compute , required for a remote call to retrieve the data
  • reduced response time, and potentially greater throughput

The cons :

  • greater complexity of the implementation
  • risk of cache staleness

You can see also, this discussion of a pagination design.