Our solution
One router for your whole federated graph: fast, open source, and live-reloading
Cosmo Router is an open-source GraphQL federation router built in Go that routes queries across your subgraphs, caches query plans for speed, and reloads configuration live so your API stays up when schemas change.
How it behaves at runtime
Fetches the current execution config from the CDN.
Builds an optimized query plan for each operation and caches it so repeat traffic skips replanning.
Routes requests to subgraphs and aggregates responses.
When the composed schema updates, the router discovers it on the next CDN poll (every 10 seconds by default, plus up to 5 seconds of jitter, configurable; pull-based, not push). It swaps engines without a restart. The main plan cache starts cold on the new engine, so planning latency rises until hot paths warm again. The cache warmer can rewarm plans when the new engine starts.
The router registers with the Cosmo Control Plane to report fleet health, but serving requests does not depend on the control plane. Config comes from the CDN, an S3-compatible storage provider, or a file.
Open source. The same router on every Cosmo plan.

