illustration for Prevent Scaling Issues With GraphQL Data Loaders
pro

Prevent Scaling Issues With GraphQL Data Loaders

Instructor

Jacob Paris

12m closed-captioning
·
10 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.5
54
people completed
Published 2 years ago
|
Updated 2 years ago

Most developers would raise an eyebrow if they saw database queries being done in a for-loop, but GraphQL provides just enough abstraction that it isn't always intuitive exactly how many times each resolver fires at scale, nor is it obvious how to batch operations efficiently and still return the correct results to the correct consumer

You'll learn how to use the GraphQL Data Loader pattern to improve the performance of your application, and solve scaling issues before they become a problem.

To do this, we'll first implement our own naive version of the pattern to understand why the API is shaped how it is. Then we will switch over to the official DataLoader package and explore the benefits further.

Follow Along

With just a couple of clicks, you'll be able to set up a Gitpod to follow along and optimize a GraphQL API as you work through the course. Navigate to the GitHub Repository and get started!

Check out the Gitpod here!

a gitpod showing a graphql query

Skills you'll Gain

  • Implement a cache layer to optimize your requests
  • Batch requests so your Database isn't overloaded
  • Build a performant GraphQL API

Course Content

12m • 10 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers
    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use
    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.