Architecture & BFF

GraphQL Federation

Direct Definition

GraphQL federation is an architecture where multiple independent GraphQL services, called subgraphs, are composed into a single unified schema called a supergraph. A router receives client queries and plans execution across the subgraphs that own each field.

Technical Architecture & Deep-Dive

Federation lets separate teams own parts of a GraphQL schema while clients see one API. A gateway or router stitches entities together across services, resolving references like a user object that spans accounts and billing subgraphs.

Federation is powerful for large organizations already invested in GraphQL, but it adds schema registries, router infrastructure, and operational overhead. Teams integrating third-party REST APIs often achieve the same unified response with a lightweight edge composition layer and declarative output mapping.

Key Architectural Benefits

Allows independent teams to own and deploy schema slices.
Presents a single graph to clients across many services.
Supports entity references that span service boundaries.
REALCOMPOSER EDGE WORKSPACE

Implement GraphQL Federation at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:Do I need federation to combine third-party APIs?

No. Federation is designed for GraphQL services you own. For combining SaaS REST APIs, an edge aggregation pipeline is simpler and needs no GraphQL server.