Synthesis and Self-Test
Synthesis
The gateway can only remove duplication that is at the edge, and that duplication was already gone
The BFF era part shows the 2012 API.NEXT scripts ran every home-page branch in one JVM under one HystrixRequestContext, so the edge fetched member 42 once. The five fetches in the Netflix guide's diagram are second-hop calls: service A calling the member service itself. The query planner part's plans show the planner sees only the operation and the schema, so those second hops are invisible to it, and the count stays at five. These aren't two findings. The query planner part's "still five" is the BFF era part's diagnosis run through a planner. The only fix is to move the dependency into the schema (@requires, @fromContext, or a client-selected field), and that's a change in each subgraph, not in the gateway.
@override is Zuul's strangler weight moved from endpoints to fields, but it lost stickiness on the way
The Netflix guide's monolith migration moved one endpoint at a time by shifting Zuul's routing weight. The Federation's model part's @override does the same thing per field, which is finer-grained and needs no client change. But the router rolls progressive override's percent(n) freshly on every request, so member 42 can see maturityLevel from legacy on one request and from members on the next. For a field that gates what a child may watch, that's a correctness bug, not a rollout detail. The migration playbook part rebuilds the stickiness with a custom label driven by a bucket Zuul computes. Netflix, before labels existed, ran two whole gateway clusters, one per schema, and pinned customers to one (see Netflix's actual path). Either way, stickiness lives outside the planner.
The property that makes plans cheap is the one that makes every schema publish expensive
Plans depend only on the operation and the schema, never on values (see The query planner). That's why one plan serves every member and can be cached. It's also why the cache key includes the schema, so every subgraph publish anywhere in the graph invalidates every plan in every router (see Operating the gateway). The same determinism makes plan depth a shared latency budget: one team's @requires adds a sequential wave to every home page on every device, from a change that composes cleanly. Under BFFs, a service change affected the screens that called it. Under federation, a schema change affects the plan of every operation that touches the type. The CI check has to diff plans, not just schemas.
The Hystrix fallback became a !, and no composition check can review it
In the BFF, a failed personalization call became a fallback row, decided per screen in code (see the Netflix Architecture guide's Strangler Fig Migration part). After federation the router has no fallback at all. A failed fetch becomes null, and the schema's nullability decides how far that null spreads (see Where the BFF's jobs go). So the availability of the whole home page is now set by one character per field, chosen once for every client. The Schema governance part shows that the checks guarding the graph are structural: adding Non-Null to an output field breaks nothing structurally, so it passes every check, and it takes a 2% partial outage to reveal that it can blank the page. The availability review that Hystrix did in code has to become a human review of nullability. That's why Netflix's weekly schema working group exists.
Netflix bought an ownership change, and its own path shows the fetch count was never the goal
Every reason Netflix published was organisational: one API team had become the bottleneck for every device team (see Netflix's actual path). Its consumer migration's first destination was a shim over Falcor, then one GraphQL-first Video API service. That's a GraphQL monolith with a federation-ready boundary, which the When not to federate part shows dedupes member 42 better than a federated graph, because one per-request DataLoader spans the whole tree. Read together, they give the decision rule. Change the protocol first, when the problem is the contract (payload shaping, device-specific endpoints). Split into subgraphs later, and only when the problem is who is allowed to change which part of the contract. Federation is how you distribute write access to an API. The query plan is what you pay for it.
Self-Test
Question 1
A director asks you to justify the federation migration with a slide that says "member 42 is fetched 5× per home page today; the gateway will fetch it once." Using 2012's API.NEXT and your printed query plan, what's wrong with the slide, and what would you put there instead?
Show answer
In 2012 every home-page branch ran as a script inside one API JVM under one HystrixRequestContext, so the edge fetched member 42 once already (see The BFF era). The five fetches are services A–E each calling the member service inside their own code. Those are second hops, and the planner, which sees only the operation and schema, can't see them (see The query planner). If A–E become subgraphs unchanged, the plan still produces five member fetches. The honest slide has two lines. (1) What federation actually removes is the orchestration code duplicated across N device BFFs, and the single API team that every device change waits on (the Netflix's actual path part's published reasons). (2) Fetch reduction happens only for the dependencies each subgraph team moves into the schema with @requires or @fromContext, and even then it's "once per owning subgraph per response path", not once. If fetch count is truly the goal, a single GraphQL service with a per-request DataLoader beats federation (see When not to federate).
Question 2
A front-end PR splits the TV home screen into colocated components. Nothing server-side changes, yet the next morning the membership subgraph's RPS has tripled while client latency is flat. Explain the mechanism, why the Router's dedup didn't save you, and the CI check that would have caught it before merge.
Show answer
Each component aliased its own me (header: me, banner: me, billboard: me). Aliases are different response keys, so the planner's merge rule fails on mergeAt path and emits three parallel membership fetches instead of one (see The query planner). The Router's representation dedup works only inside one fetch node, so it can't merge across the three. deduplicate_query is off by default and keys on the full HTTP request, so it won't help for per-user data either (see The query planner, Operating the gateway). Latency stays flat because the fetches run in parallel, so only the owning team's capacity alarms notice. The check: for every persisted operation (see Schema governance, Operating the gateway), print the plan against the candidate schema in CI (Apollo-Expose-Query-Plan: dry-run) and fail when fetch-node count or Sequence depth grows. The fix is fragments on one me selection, not aliases.
Question 3
A catalog engineer changes Video.title: String to String! "because every video has a title." Every schema check passes. Six weeks later a 2% partial catalog outage produces a near-total home-page outage, while every response is HTTP 200. Trace the chain, say which checks should have caught it and why they didn't, and say where the fallback that used to prevent this now lives.
Show answer
Video.title is resolved by the catalog subgraph in a different fetch from its parent list (personalization produces videos: [Video!]!). When catalog times out for 2% of representations, those titles become null. Since title is Non-Null, the null bubbles to Video, which is Non-Null in [Video!]!, so the whole list nulls, and then Row, and on up to the nearest nullable ancestor, which is the page (see Where the BFF's jobs go). With 40 rows of 75 videos, almost every page has at least one affected video. The checks didn't catch it because adding Non-Null to an output field is structurally backwards-compatible: no client query becomes invalid (see Schema governance). The router returns 200 with errors pointing at leaf paths, so status-code dashboards stay green (see Operating the gateway). Under BFFs, a Hystrix fallback decided per screen that a missing title shows a placeholder. Now the router has no fallback. The decision is split between the subgraph (degrade its own downstream calls), the schema's nullability (how far a null spreads), and the client (how a null renders) (see Where the BFF's jobs go). The review rule that prevents it: Non-Null only for fields resolved in the same fetch as their parent.
Question 4
During Phase 3 you move Member.maturityLevel from legacy to members with @override(from: "legacy", label: "percent(5)"). Replay diffs show perfect parity for the field. Name two ways children can still see content they shouldn't during this rollout, and the fix for each.
Show answer
(1) Flapping: percent(n) is rolled per request, not per member (see Federation's model), so one profile can get the legacy value on one request and the new implementation's on the next. With any disagreement between them, the same child sees a row appear and disappear. The fix is a custom label resolved from a stable bucket Zuul computes (a hash of the profile) in a Rhai script or coprocessor (see The migration playbook), or Netflix's approach of two whole gateway clusters with customers pinned to one (see Netflix's actual path). (2) Moving the field without moving the rule: replay compares a field's old and new values, so it can't catch a rule that spans fields (see Netflix's actual path). The maturity filter on rows still runs inside legacy, reading maturity from its own member client, while clients now read maturityLevel from members. The badge and the filter can disagree, and neither per-field diff flags it (see The migration playbook). The fix is to move the filter with the field (to personalization, the "neither" owner from the Where the BFF's jobs go part), or to add a cross-field invariant to the parity oracle, such as "every returned video's rating ≤ the member's maturity".
Question 5
A field used only by the seasonal "Holiday Favourites" row shows zero usage for the one-week operation-check window, and its removal is approved. When the row switches on, TV builds from 18 months ago fail completely, not just that row. Why is this worse than a null, what should the contract have been, and how does it interact with the plan cache?
Show answer
A removed field makes the operation invalid: the router rejects it at validation with a request error and no data, so the whole home page fails, rather than one field nulling and bubbling within the nullability design (see Where the BFF's jobs go, Schema governance). Usage stats are a sample over a window, and they can't see an operation that is dormant but still shipped. The exact contract is a trusted-document (persisted-operation) manifest per supported client build: a field may be removed only when no registered document for any supported build selects it (see Schema governance). The same manifest serves see Operating the gateway: it closes the API to arbitrary queries, bounds demand control, and gives the plan-cache warm-up its list of operations to plan before a new supergraph serves traffic. Pruning the safelist to "what the current build sends" repeats the same mistake at the gateway (the Operating the gateway part's trap).
Question 6
Your team runs a single GraphQL service (like Netflix's Video API) and a platform lead proposes splitting it into six subgraphs "for performance." Give the performance argument against, the only argument for, and the order in which you'd split if you do.
Show answer
Against: in one process, a per-request DataLoader spans the whole operation, so member 42 is batched and memoised across every branch (see What GraphQL changes). After the split, dedup is limited to one fetch node, so each owning subgraph gets its own call, every @requires adds a sequential wave, and the router adds serialisation and planning overhead (Netflix measured about 10 ms worst case in 2020) plus a new tier to operate (see The query planner, Operating the gateway, When not to federate). For: only ownership. It's worth splitting when many teams must change the schema and one team has become the queue they wait in, which is Netflix's own published reason (see Netflix's actual path). Order: split by entity ownership, not by microservice (the When not to federate part's trap). Carve out one field at a time with @override behind a sticky label, with replay plus cross-field parity checks (see The migration playbook). Move rules together with the fields they read. Give "optimise which subgraph owns what" to plan-depth diffs in CI, not to intuition.