Apigee Hybrid - Connecting to Redis

ven
Bronze 1
Bronze 1

Hi,

I want to connect to redis cache from Apigee Hybrid. Since Redis does not have a http interface of its own, I came across one option, using webdis. I want to check if there are any other options that Apigee/Google recommends to connect to any external cache, especially Redis since it lacks http interface. The other option I could think of is using a java call out (did not try this yet though).

My requirement is to cache response which can exceed 512 kb in size. Most of the cache objects will be in JSON and can exceed 512 kb easily. This is why I want to connect to external cache from the hybrid.

I have gone through the post related to Apigee x (or SaaS version) where we can connect to Redis through Apigee Integration Connector. Since Hybrid does not have this integration connector this option is not relevant for Apigee Hybrid

0 3 579
3 REPLIES 3

While it's a different use case to yours, I have an example solution that has an Apigee API Proxy using GCP Memorystore. I use a cloud function in between (based on nodejs with the redis package), and so you could use a similar approach of having some microservice in between the two.

There's an article on it here, and sample code here.

Thanks for the response, I will check these and get back with my questions/observations

I looked at the article and code. In my case I have huge payload to save/store in redis. Is JSON the only way to pass this information from apigee proxy to the gateway or is there any other way? If JSON is the only way, I think EV or AM or JS policy is needed for putting or getting/parsing the details, correct?