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
56
people completed
Published 3 years ago
|
Updated 3 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 GraphQL Query Language
    Eve Porcello • 30m • Course

    After the course, you’ll be ready to communicate with a GraphQL API regardless of server-side implementation using the GraphQL query language.

    illustration for Designing GraphQL Schemas
    Nik Graf • 62m • Course

    Through exploration and comparison, you'll come away with actionable knowledge for designing and extending schemas.

    illustration for GraphQL Data in React with Apollo Client
    Nik Graf • 23m • Course

    First, a guide on how to add the Apollo client to an existing project, then move on using the Query and Mutation components to fetch and manipulate data using a GraphQL API.