Choose Your Own Adventure for Client Web Services with GraphQL
1:30pm - 2:00pm on Friday, October 5 in PennTop NorthDavid Anderson
- Audience Level:
- Intermediate
- Slides:
- https://slides.com/dvndrsn/cyoa-graphql-pygotham
Overview
In the style of a modern, web-development choose your own adventure, we’ll explore the benefits and trade offs of GraphQL and REST (including performance and scaling). We’ll build up an example schema using a choose your own adventure story as the model and leverage that schema in front end code.
Description
In this talk, we discuss Facebook’s graphql standard, an a la carte way for front end clients to consume data from the backend, the python implementation of that standard (graphine), basic queries and mutations, and some advanced techniques. We’ll work up from shared principles with traditional REST web services to the new paradigm of data specific to each client request and how this makes back end and front end developers happier and more productive.
- About me, Prologue to the Adventure
- Chapter 1 - API Architecture and Design
- Concerning the design and structure of a GraphQL API and its benefits over a traditional REST API.
- Chapter 2 - Scaling and Performance
- In which, DataLoaders save the day when N+1 queries strike.
- Chapter 3 - Building a Rich Client Web Application
- Wherein we learn how to tame the client side cache monster with Apollo and better API design.
- Epilogue + Questions
To learn more, check out The Rabbit Hole Podcast and the episodes we’ve recorded about GraphQL or keep the conversation going on twitter.