Is it possible to use External Caching framework like Redis within Apigee Edge?
Why would you want to do this? What problem are you trying to solve? Does the Apigee Edge built-in cache not satisfy your requirements? If so, why not?
There might be simpler paths to satisfaction.
Dino,
We need to cache responses that are bigger then 512 KB. What are the options to do that in Apigee.
Thanks,
Surabhi
Some of the APIs response size is more then 512 KB. As far as I am aware that is the limitation with Apigee Caching. So I need to find alternative solution.
What would you recommend.
Answer by clatimer1 · Jun 29, 2016 at 11:51 PM
Yes, assuming you're ok not using the built in policies for caching. You'd basically need to interact with Redis by either putting an HTTP interface like Webdis in front of it, or use a programmatic callout to interact with Redis and put it into your flow variables.
Answer by arghya das · Jul 01, 2016 at 05:01 PM
Using an external caching layer, probably isn't a good idea especially since Apigee provides such a sophisticated cache implementations along with policies to exercise response caching, populate, lookup and invalidate cache. Also by going out to an external caching service implemented over http, I am not sure how much benefit you would get because its almost as if you are going out to an external target. So, I would suggest you expand a bit more on your use-case and let us guide to the most appropriate implementation. Without knowing the problem statement, it would be hard to make a recommendation.
But to your original question, you can definitely interact with any external caching framework as long as they are accessible via an http endpoint. You can use the service callout policy to interact with it, but I think the management overhead of the cache would be too high. Better to stick to the built-in cache implementation.
We are using Apigee's cache implementation. But for some of the URIs, JSON response size is more then 512 KB. what I have read so far is, 512 KB is max cache size.
So that's why i am looking for alternative to cache more then 512 KB response.
Did you see Chris Latimer's response? And? Have you tried that approach?
We are exploring that option as well but was wondering if that's a recommendation from Apigee to cache larger objects or if there is anything else can be done before we introduce a new entity in between.
Answer by Suganya Ravindra Samuel · Jul 12 at 06:24 PM
Can you please let us know what solution have you built for the cache data which is larger that 512 KB?
Have you used external caching framework -Redis?
We also have similar use case where our cache data is greater than 512 KB.
Can the object say for example token put in cache by one API be accessed by another API? 1 Answer
what is the difference between response cache and populate cache ? 2 Answers
How can we ignore similar request for the backend service. 1 Answer
DNS caching behaviour 1 Answer
How do I invalidate cache by InvalidateCache policy? 0 Answers