Wiki: REST in peace? - cause APIs are much more than REST

For agents: Markdown version · Wiki index · Explore

Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

Summary

This talk explores the evolution and limitations of REST APIs, arguing that REST is an architectural style rather than a strict standard and often falls short for complex use cases. The speaker examines the challenges of resource modeling and HTTP verbs, and presents alternative approaches such as JSON API, JSON Patch, GraphQL, RPC, and message queues. Ultimately, the audience learns how to evaluate API trade-offs and choose the right technology for their specific system architecture.

Key points

  • 1:11 The SOAP protocol was introduced as an early complex standard with all semantics embedded in the message body.
  • 2:23 The rise of lightweight web stacks and browsers led to the widespread adoption of REST as an architectural concept.
  • 4:30 REST relies on modeling APIs around resources using URLs and standard CRUD operations mapped to HTTP verbs.
  • 7:35 Modeling complex domains with REST often causes over-fetching and requires excessive round-trip requests.
  • 13:00 Developers can improve REST implementations by adhering to community standards like JSON API and JSON Patch.
  • 16:15 GraphQL provides a query-based alternative that empowers clients to request exact data structures and reduces over-fetching.
  • 25:05 Remote Procedure Call (RPC) technologies like gRPC offer performance benefits and easy extensibility for microservices.

Takeaways

  • Recognize that REST is an architectural guideline rather than a strict standard, helping avoid endless theological design debates.
  • Consider GraphQL when client applications require high flexibility in querying data to prevent over-fetching and minimize network requests.
  • Utilize existing ecosystem standards like JSON Patch and JSON API to handle partial updates and pagination cleanly.

Questions this talk answers

  • When should a team choose GraphQL over REST for their API architecture?
  • How does REST handle partial updates, and what standards can simplify this process?
  • What are the main performance and architectural trade-offs between REST and RPC in microservices?

Technologies

SOAP, HTTP, JSON, GraphQL, gRPC, Kafka

Tags

api design, architecture, graphql, microservices, rest apis, rpc