Discover the power of GraphQL APIs with Strawberry & Django in this talk! We’ll explore GraphQL vs RESTful APIs, tackle the N+1 problem, and unveil Strawberry’s Django integration for efficient queries. Learn to build high-performance, type-safe APIs with ease 😊
In this talk, we will explore the world of GraphQL APIs with Strawberry, a new Python library that makes it easy to create GraphQL APIs with Django. We will dive into what GraphQL is, how it compares to traditional RESTful APIs, and what makes Strawberry stand out from other Python GraphQL libraries.
One of the biggest challenges in GraphQL API development is the N+1 problem, where queries can become exponentially slow as more data is requested. We will discuss how data loaders can help solve this problem, and go in-depth on how to use them in Strawberry. In this topic we will also cover how the Strawberry Django integration leverages query introspection and user defined hints to automatically call .only(…)/.select_related(…)/.prefetch_related(…) on querysets, making your queries more efficient and avoiding common pitfalls. This is especially important in high-traffic, production environments where performance is critical.
Finally, we will showcase some of the benefits of using Strawberry and Django together, including a type-safe approach to API development and streamlined code maintenance. By the end of this talk, you’ll have the knowledge and tools you need to create high-performance GraphQL APIs with Strawberry and Django.
It will be presented in the following order:
My name is Thiago Bellini Ribeiro - a 37 year-old Brazilian 🇧🇷 software engineer living and working in the Netherlands 🇳🇱 at Sendcloud, with my wife, two dogs 🐶, and two cats 😸.
I’ve been passionate about Python since 2010, using it both professionally and personally. As an open-source enthusiast, I’m always looking for ways to give back to the community. Since 2022, I’ve been a maintainer of the 🍓 Strawberry GraphQL Python library - a project I continue to support out of passion, even though I no longer use it in my day-to-day work.
Outside of coding, I’m known for my positive outlook and my eagerness to help others in the tech community. I love connecting with people, sharing knowledge, and contributing to a collaborative and forward-thinking industry.