REST or GraphQL? Examples with Symfony and API Platform
summary
Compares REST and GraphQL for web APIs, describing GraphQL’s strengths (selective data fetching, fewer requests, strong typing) and its weaknesses (poor fit with existing cache/log/security/auth mechanisms, need for custom parser). Presents API Platform (built on Symfony) as a tool that easily creates REST APIs (JSON-LD, JSON:API) and GraphQL, and walks through use cases showing when to choose GraphQL, REST, or both together.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 12:27What is GraphQL?
- 19:03REST vs GraphQL
- 24:56API Platform API
- 36:11Performance and caching
- 41:44API philosophy and ethics
- 45:13Q&A
related talks
50mGraphQL is right in front of us, let's do it, with Symfony
39mWhy REST when you can GraphQL
39mBuilding RESTful APIs with Symfony Components
54mGraphQL — Usable API or Just Another Hype?
23mHarnessing the Power of GraphQL
22mDelivering Exceptional Infrastructure as Code through REST and GraphQL
41mBuilding first-class REST APIs with Symfony
51mREST API vs. GraphQL #TheClash
