The Apollo Router
High-performance routing for self-hosted supergraphs
The Apollo Router is a configurable, high-performance router for your federated GraphQL API (also known as a supergraph):
The Apollo Router intelligently distributes inbound queries across your GraphQL-powered microservices, enabling clients to fetch data from multiple sources with a single request.
If you have an existing federated graph that currently uses @apollo/gateway
, you can move to the Apollo Router without changing any other part of your graph.
Try out the Apollo Router!Migrate from @apollo/gateway
This documentation helps you run a self-hosted instance of the Apollo Router. If you create a cloud supergraph with Apollo GraphOS, Apollo provisions and hosts your router for you.
Cloud supergraphs are recommended for organizations that don't need to host their router in their own infrastructure.
Features
- Full support for Apollo Federation and supergraph management via GraphOS
- Extensive declarative configuration options (header propagation, CORS settings, OpenTelemetry support, and more)
- Support for scripting via the Rhai scripting language
- Advanced GraphOS Enterprise features, including:
- Real-time data via GraphQL subscriptions
- JWT authentication
- Distributed caching for multi-router fleets
- Customization in any language via external coprocessing
- Operation limits