Show HN: GraphCDN – GraphQL CDN with edge caching and analytics
Hey HN,<p>When I built my last startup, Spectrum, we spent months building custom caching for our GraphQL API from scratch. It never worked well enough to alleviate our scaling troubles as we could only cache data for unauthenticated users since we had no invalidation. (since we open sourced it all before GitHub acquired us, you can even read through my terrible code[0])<p>When Tim told me he had built a prototype of a CDN specifically for caching GraphQL query results with proper invalidation, my first thought was: "Finally!" Not only had he made it possible to cache POST requests (which GraphQL requests usually are), he had made it possible to purge cached query results per specific GraphQL object. For example, when a user edits their name the API can call a purgeUser(id: $ID) mutation and any cached query result that contains that user's data is invalidated.<p>GraphCDN is based on Fastly Compute@Edge under the hood, which is really the main reason we were able to spin this up so quickly. Huge shoutout to the folks building that!<p>We'll be around all day to answer any questions you have about GraphCDN — ask us anything!<p>[0]: <a href="https://github.com/withspectrum/spectrum/blob/alpha/api/apollo-server.js" rel="nofollow">https://github.com/withspectrum/spectrum/blob/alpha/api/apol...</a>