Everything, Everywhere
Verified Specification | Standardized Formulas | Instant Precision
Secure & Private (Zero Data Retention) Free Access • No Sign-Up
Apollo Federation v2.7 Cosmo Supergraph Standard Query Planner AST Rust Router Benchmark

GraphQL Federation, Supergraph & Subgraph Architecture Studio

Architect enterprise federated GraphQL platforms: model cross-subgraph entity resolution with @key, @provides, and @requires, visualize parallel query execution plans, benchmark Apollo Router (Rust) vs Node Gateway, and synthesize production schemas.

4 Subgraphs
Active Supergraph Schema
2 Stages
Planner Execution Depth
52,000 RPS
Apollo Router (Rust) Max RPS
14.8x
Throughput vs Node Gateway

Federated Query Planner & Subgraph Execution Tree

Inspect how the Federation Router analyzes a client query, breaks it down into distinct sub-queries, and orchestrates parallel vs sequential network fetches across microservices.

Router Execution Plan (Stages)

Entity Directives Architecture (@key, @provides, @requires, @shareable)

Interactive directive matrix demonstrating how Federation v2 establishes distributed entity boundaries and enables inter-service dependency resolution.

@key(fields: "id")

Defines the entity primary identifier. Subgraphs that reference or extend this entity must implement a __resolveReference handler to fetch local data by key.

@provides(fields: "username")

Allows the local subgraph to satisfy fields that it does not own, preventing the Router from executing an extra network hop to the authoring service.

@requires(fields: "weight")

Declares that a field resolver requires data from another subgraph before executing (e.g. shipping cost calculation requires package weight from Products).

@override(from: "catalog")

Seamlessly migrates a field from an older microservice to a new service with zero downtime, instructing the Router to redirect all field queries to the new subgraph.

Interactive Directive Playground

DataLoader Batching & In-Memory Entity Cache Sizer

Model how the Router and Subgraph DataLoaders aggregate N-requests during event-loop ticks to prevent database exhaustion and size cache memory footprints.

Concurrent Requests (RPS): 2,500 req/s
Entities Requested per Query: 25 entities
Average Entity Payload Size: 1.2 KB
Batching & Network Reduction
62,500 / s
Naive N+1 Subgraph HTTP Calls
2,500 / s
Batched _entities Calls (96% drop)
• Router Concurrency In-Flight Memory: 75.0 MB
• Network Latency Savings: ~24 round-trips avoided per query

Gateway Performance Benchmark (Apollo Router Rust vs Cosmo Go vs Node)

Compare latency, throughput, and CPU/memory footprint across the three major federation router runtime implementations.

Runtime / Architecture Apollo Router (Rust) WunderGraph Cosmo (Go) Legacy Apollo Gateway (Node.js)
Underlying Engine Rust (Tokio Async Runtime) Go (Fiber / Netpoll) JavaScript / V8 Engine
Peak Throughput (Single Instance) ~52,000 RPS ~46,000 RPS ~3,500 RPS (14.8x slower)
p99 Router Added Latency < 0.8 ms < 1.4 ms ~8.5 ms (GC pauses)
Baseline RAM per Pod ~45 MB ~85 MB ~550 MB (V8 Heap)
Garbage Collection Overhead Zero (RAII Memory Management) Low (Go Tracing GC) High (V8 Stop-the-world GC)
Plugin / Extension Model Rhai Scripting + Native Rust Go Plugins + TypeScript Workers Node.js Express / Fastify Plugins

Production Supergraph & Subgraph Schema Synthesizer

Generate ready-to-compose Apollo Federation v2 schema files and production Apollo Router configuration files.

Sponsored Utility
While You're Here
Sponsored Recommendations
Advertisement