The graph router
The entry point to your federated supergraph
After you set up at least one federation-ready subgraph, you can configure a graph router (also known as a gateway) to sit in front of your subgraphs. The router serves as the entry point to your supergraph, and it executes incoming operations across one or more of your subgraphs:
Apollo actively supports the following options for your graph router:
The Apollo Router (recommended): This is a high-performance, precompiled Rust binary.
If you're getting started with federation, we recommend creating a cloud supergraph with Apollo GraphOS. With a cloud supergraph, GraphOS provisions and manages Apollo Router instances for you!
You can also host your own Apollo Router instances:
Apollo Server: Apollo Server can act as your graph router via the
We recommend starting with the Apollo Router. It's faster to configure, it's more performant (especially with high request loads), and it rarely requires writing custom code.
If you'll use the Apollo Router, get started with the resources linked above. If you'll use Apollo Server, see Setting up Apollo Gateway.