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.

Duration
5m
Level
Intermediate
Students
10k students

Overview

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

In this lesson you will:

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

Resources

AWS Architecture Center

The official reference for the tools used in this lesson.