GraphQL and Rails beyond HTTP APIs
summary
GraphQL runs outside HTTP and executes in controllers, jobs, or stored queries so Rails can use it as a structured data layer. Concrete patterns: let clients choose webhook payloads so a single webhook carries passenger IDs and avoids extra requests; run client-supplied logic as WebAssembly on the server to remove client webhook servers; split large exports into background book operations that parallelize pagination (5,000 passengers at page size 50 becomes ~100 subjobs) and produce a downloadable JSON.
AI-written summary · about
chapters (13)
- 0:00GraphQL beyond HTTP APIs
- 1:48GraphQL vs REST
- 2:13Space Trips API demo
- 4:02First GraphQL query
- 5:50Variables for queries
- 8:23GraphQL without HTTP
- 10:13Webhooks with GraphQL
- 13:07Custom webhook payloads
- 15:36Client code with WebAssembly
- 18:50Server-side WebAssembly
- 20:15Book operations exports
- 22:45Pagination with background jobs
- 25:20GraphQL use cases summary
related talks
41mThe GraphQL Way: A new path for JSON APIs
27mGraphQL on Rails
36mGraphQL on Rails - Creating Living APIs for a Data-hungry World
54mOptimizing performance in Rails apps with GraphQL layer
08mGraphQL Beyond HTTP APIs
24mOptimizing for API Consumers with GraphQL
43mUsing Rails Engines to Supercharge Your Team
18mCrafting compelling real-time web experiences with GraphQL
