Composing one graph from many services: subgraphs, the router, query planning, and its failure modes.
Where Netflix Started: The BFF Era — Netflix ran two generations of device-owned server code before GraphQL, and in 2012 all five member-42 fetches already shared one JVM and one Hystrix request cache. (13 min read)
What GraphQL Actually Changes — A typed schema and per-field resolvers replace per-screen endpoints; resolvers cause N+1 by design, and DataLoader fixes it inside one process. (10 min read)
From One Graph to Many: Federation's Model — Federation turns join code in the middle tier into declarations (@key, @requires, @override) that each owner writes in its own schema; stitching lost by keeping the joins in the middle. (13 min read)
The Query Planner: What "Fetch It Once" Really Means — The planner never sees member 42: it merges fetches by owning subgraph and response path, and nothing collapses a dependency the schema doesn't express. (14 min read)
Netflix's Actual Path — Netflix federated twice, Studio from a GraphQL monolith and the mobile apps from Falcor via a shim, and every reason it published was organisational. (11 min read)
The Migration Playbook: A Worked Example — Moving the TV home page off its BFF is two strangler figs in sequence, protocol first and then ownership one field at a time, and the shim's schema decides success. (11 min read)
Where the BFF's Jobs Go — The BFF's ten jobs scatter across planner, client, subgraphs and gateway, and its per-screen 'optional vs required' choice becomes one global ! per field. (15 min read)
Schema Governance: The Org Chart Becomes a Type System — Composition turns ownership disputes into type errors, but the decisions that set availability, like nullability and entity versus value type, pass every check. (13 min read)
Operating the Gateway: The New Load-Bearing Tier — The gateway is the new Zuul but understands the payload, so CDN caching, status codes and rate limits must be rebuilt as plan caches, cost limits and persisted operations. (16 min read)
When Not to Federate — Federation solves an organisational bottleneck, not latency or fan-out; a single GraphQL service with DataLoader dedupes member 42 better. (10 min read)
Synthesis and Self-Test — Every part is the same move, logic the BFF held because it saw the whole screen finding a new owner, then questions that each need several parts to answer. (11 min read)