API / Apollo Gateway Interview questions
Explain the lifecycle of a GraphQL request through Apollo Gateway?
A request passing through a federated gateway goes through a fairly fixed sequence of stages before a response comes back to the client.
Two things are worth calling out: query planning is decoupled from execution — the plan only depends on the query's shape, so identical queries reuse a cached plan — and stitching happens after all subgraph calls return, matching the shape of the response back to exactly what the client originally asked for, regardless of how many services contributed to it.
More Related questions...