holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
167 stars 39 forks source link

Hasura Based Caching #622

Closed dandlezzz closed 2 years ago

dandlezzz commented 2 years ago

Goals

Use Hasura Cloud to cache responses using TTL.

echohtp commented 2 years ago

redis would be a good solution

any thoughts about:

kespinola commented 2 years ago

Use hasura as a cache layer that proxies our api adds caching directives to queries

https://hasura.io/graphql/caching/

kespinola commented 2 years ago

https://docs.stellate.co

Another graphql caching service

dandlezzz commented 2 years ago

@kespinola stellate looks cool. Do you know if its open source? I couldn't really tell. Also, Hasura looks promising, I know in prod we saw that Hasura adds latency to each request. @mpwsh any idea what it would take to resolve those?

mpwsh commented 2 years ago

We could spin up Hasura in our kubes cluster for the stage env and start testing there. Hasura Cloud with VPC Peering is pretty expensive

mpwsh commented 2 years ago

@dandlezzz dammit it seems Hasura built in caching is only available for cloud. Back to square one? Redis? will continue researching different options

kespinola commented 2 years ago

Exploring alternative options. Hasura max cache size is 100MB and $10k per month.