~/talk

Improving API communication using GraphQL

Talkat SymfonyLive San Francisco 2017 · 2017-10-19..10-20· [graphql, api-design]
links:none on file
slides:none on file

Company replaces many REST endpoints with a single GraphQL endpoint and shows it running in production using overblog/graphql-bundle on Symfony and the reference webonyx/graphql-php library. Mobile payloads shrink to a fraction and a multi-call REST sequence (about ten requests) becomes one GraphQL request. N+1 SQL problems are solved with DataLoader + ReactPHP promises. Monitoring uses Apollo Optics or a custom query-parsing pipeline; one expensive search query once caused a site outage.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:28Why improve your API
  3. 3:17History of SOAP and REST APIs
  4. 8:49What is GraphQL
  5. 14:13GraphQL developer tools
  6. 14:34GitHub’s GraphQL API demo
  7. 19:14Implementing GraphQL in PHP
  8. 27:33GraphQL in production
  9. 27:55First GraphQL project mistakes
  10. 30:03Relay specification and nodes
  11. 34:00Connections and pagination
  12. 36:28Query complexity and nesting
  13. 37:54Solving the N+1 problem
  14. 40:28Mutations in GraphQL
  15. 42:20Deprecating fields and versioning
  16. 44:29Monitoring API usage
  17. 46:40Challenges and learning curve
  18. 48:27Benefits and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.