News for hackers. Stuff that matters.
Re:Show HN: GraphCDN – GraphQL CDN with edge caching and ana... by ivanvanderbyl on Thursday June 17, 2021 @07:10AM (#27538335)
Max & Tim, thanks for building this. This is something I recently spent 2 weeks trying to solve, then more pressing issues came up so we threw more CPUs at the problem. So from that I can appreciate how complex this is to solve, and the UX is awesome, so cool that you can edit the cache keys in the UI.

Do you/will you handle caching individual request layers? For example if I need part of my query to always be fresh, but some expensive part can be cached for hours, is this possible? And somewhat related, what about keying on operation variables?

Re:Show HN: GraphCDN – GraphQL CDN with edge caching and ana... by mxstbr on Thursday June 17, 2021 @07:43AM (#27538514)
Thank you for the nice words, glad to hear you like GraphCDN.

We don't currently cache partial queries / request layers. For now, I would recommend splitting the query into two requests — one that loads the uncached data and one for the cached data.

We're definitely thinking about this exact use case though, stay tuned!

Re:Show HN: GraphCDN – GraphQL CDN with edge caching and ana... by graphql on Friday June 18, 2021 @12:11AM (#27547277)
Ah yes, the devil in the details.

Partial query caching appears to be the unicorn we all would like to chase, capture, and ultimately study.

GraphQL is powerful, But with great power, comes great responsibility, and it is too easy to dig your own grave if blindly jumping in with it.

I wonder if we can learn a thing or two, or just flat out steal, some of the concepts used in flagship relational databases. For example, how Postgres has a query optimizer tucked away secretly under the hood that attempts to alter queries to be more efficient.