Lesson 3.1

REST and GraphQL trade-offs

REST gives you cacheable, predictable endpoints; GraphQL gives clients exactly the data they asked for. The trade is caching and complexity.

5mIntermediate10,184 students
Video thumbnail for REST and GraphQL trade-offs

Sign in to watch this lesson

Browsing is free. Create an account to play videos and track your progress.

Overview

REST gives you cacheable, predictable endpoints; GraphQL gives clients exactly the data they asked for. The trade is caching and complexity.

What this lesson covers

  • Compare fixed endpoints against flexible queries
  • Weigh caching behaviour on each side
  • Version an API without breaking existing clients

This lesson sits in API Design at Scale, part of System Design Foundations. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will:

  • Compare fixed endpoints against flexible queries
  • Weigh caching behaviour on each side
  • Version an API without breaking existing clients
REST and GraphQL trade-offs — Skiply