IssueRaiser

Best practices for caching hasura responses in redis?

I was wondering whether there are any officially recommended patterns for caching hasura responses to a redis instance. Couldn't find any documentation/open issues/blog posts talking about this, here's what I have in mind: 1. Run a core server (for caching, auth) alongside hasura as a microservice 2. Add a middleware to intercept any graphql requests 3. Check if the exact request exists in redis, if so return (or whatever caching logic) 4. Otherwise, ask hasura microservice to generate a new response, cache that and then send to client

Posted by Aditya94A on May 4, 2020, 12:41 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (Sysadmin)

Best practices for caching hasura responses in redis?

Aditya94AMay 4, 2020, 12:41 PM

I was wondering whether there are any officially recommended patterns for caching hasura responses to a redis instance. Couldn't find any documentation/open issues/blog posts talking about this, here's what I have in mind: 1. Run a core server (for caching, auth) alongside hasura as a microservice 2. Add a middleware to intercept any graphql requests 3. Check if the exact request exists in redis, if so return (or whatever caching logic) 4. Otherwise, ask hasura microservice to generate a new response, cache that and then send to client

Comments (0)

No comments yet. Start the discussion.

Comment on this issue