Thursday, 4 May 2017

Cloudfront cache with GraphQL?

At my company we're using graphql for production apps, but only for private ressources.

For now our public APIs are REST APIs with a Cloudfront service for cache. We want to transform them as GraphQL APIs, but the question is : how to handle cache properly with GraphQL ?

We thought using a GET graphql endpoint, and cache on querystring but we are a bit affraid of the size of the URL requested (as we support IE9+ and sell to schools with sometime really dummy proxy and firewalls)

So we would like to use POST graphQL endpoint but...cloudfront cannot cache a request based on its body

Anyone has an idea / best practice to share ? Thanks



via Jonathan Banon

No comments:

Post a Comment