Explore the advantages and potential pitfalls of GraphQL compared to traditional REST APIs in this 37-minute PyCon US talk. Learn how to leverage data-loaders, async/await, dynamic query generation, and other performance optimizations to create a flexible, performant interface for front-end services. Discover techniques to address the n+1 query problem and navigate GraphQL's idiosyncrasies. Dive into topics such as query language, schema design, database integration with SQL Alchemy, and GraphQL libraries. Gain insights on latency management, Python implementation, and the mathematics behind GraphQL operations. Witness a live demo showcasing best practices and learn when to use GraphQL effectively. Conclude with a discussion on query counters and information about GraphQL meetups.
Overview
Syllabus
Intro
Outline
What is GraphQL
Query Language
GraphQL Schema
GraphQL Database
SQL Alchemy
GraphQL Libraries
GraphQL Models
Latency
Python Code
The Math
Data Loader
Data Loader Complexity
Promises
Dataloader
Demo
Bad GraphQL
When to use GraphQL
Query Counter
Shoutouts
Meetups
Taught by
PyCon US