API / Apollo Gateway Interview questions
What is GraphQL Federation?
Federation is an architectural pattern for splitting one GraphQL API across multiple independently deployable services, called subgraphs, while still exposing a single unified schema to clients.
Each team owns a subgraph containing the types and fields relevant to its domain — for example a Products team and a Reviews team each ship their own service. A gateway or router then composes those subgraph schemas into one "supergraph" and routes each incoming operation to the subgraphs that can resolve it.
Clients never see the split; they query one endpoint as if it were a single monolithic graph, which is exactly the point — federation lets many teams scale a graph independently without exposing that complexity externally.
More Related questions...