Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cache All the Things

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Avatar for Aditi Aditi
October 30, 2019

Cache All the Things

How to create a seamless experience for your customers and delight them using graphql and scaling it via different caching techniques. #GraphQLSummit2019

Avatar for Aditi

Aditi

October 30, 2019

Other Decks in Technology

Transcript

  1. Rest Connector • Utility to make HTTP calls • Retries

    • Custom Metrics Key Terms: Axios, HTTP, Request
  2. 2 1

  3. 9 8

  4. Varnish • Cache closer to GraphQL server • Default cache

    configuration • Can be overridden by response headers
  5. Varnish TTL GET 200 OK GET 200 OK GET 200

    OK GET 200 OK GET 200 OK GET 200 OK GET 200 OK 200 OK 200 OK TTL GET GET
  6. Grace Mode TTL GET 200 OK GET 200 OK GET

    200 OK GET 200 OK GET 200 OK GET 200 OK GET 200 OK GET 200 OK TTL GET 200 OK Grace
  7. Grace with errors TTL GET 200 OK GET 200 OK

    GET 200 OK GET 200 OK GET 200 OK GET 503 GET 503 GET 200 OK Grace GET GET 200 OK GET GET GET 200 OK