Self-Hosted Router
High-performance routing with self-hosted supergraph runtimes
Want to learn about router adoption in-person?
Don't miss the GraphOS Router Success Stories panel at this year's GraphQL Summit.
💡 Not self-hosting your router? Get started with Cloud Router.
GraphOS Router is a scalable runtime for supergraphs that's fully integrated with GraphOS and based on the Apollo Router Core.
A self-hosted GraphOS Router or Apollo Router Core enables full management of your supergraph runtime infrastructure and deployments.
The router intelligently distributes inbound queries across your GraphQL-powered microservices, enabling clients to fetch data from multiple sources with a single request.
Learn about the distinction between the router and an API gateway.
If you have an existing federated graph that currently uses @apollo/gateway
, you can move to the router without changing any other part of your graph.
Try out the GraphOS Router!Migrate from @apollo/gateway
This documentation helps you run a self-hosted instance of a router. If you create a cloud supergraph with Apollo GraphOS, Apollo provisions and hosts a GraphOS 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