Gateway Setup and Management
Configure and deploy an Apollo Gateway to compose and expose your federated subgraphs as a single unified graph.
Gateway: The Unified API
In GraphQL Federation, the Apollo Gateway acts as the central entry point for all client applications. Think of it as the brain that understands your entire supergraph.
It takes multiple independent GraphQL services (called subgraphs) and combines their schemas into one unified, client-facing schema.
Why a Gateway is Essential
With a microservices architecture, you might have many backend services, each with its own GraphQL API. Without a gateway, clients would need to know about and query each service individually.
- Unified Endpoint: Clients interact with a single GraphQL API.
- Schema Composition: The gateway automatically stitches together the schemas from all subgraphs.
- Simplified Client Logic: Clients don't need to know which service owns which data.
All lessons in this course
- Introduction to Apollo Federation
- Building Federated Subgraphs
- Gateway Setup and Management
- Entity References and the @key Directive