~/talk

Getting rid of the REST Migrations to GraphQL from REST

Talkat droidcon San Francisco 2023 · 2023-06-08..06-09· [graphql, api-design]
links:none on file
slides:none on file

Pinterest migrates 878 endpoints and 7,000+ fields for 450M+ users using Apollo Kotlin and a normalized cache to avoid a full REST-to-GraphQL model rewrite. A single build-time dictionary registers converters keyed by GraphQL __typename, hooks into cache write callbacks, and generates a combined god query per type so one converter maps GraphQL↔REST. Updates flow both ways by issuing node queries by ID, normalizing records, merging them, and converting back to legacy models.

AI-written summary · about

  1. 0:00Introduction to migration
  2. 1:15GraphQL vs REST basics
  3. 3:21Pinterest's migration journey
  4. 5:26Client-side challenges
  5. 8:35Current architecture approach
  6. 10:02Normalized cache solution
  7. 12:06Converter implementation
  8. 13:30Reverse conversion process
  9. 15:15Next steps and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.