Federaatio antaa monien itsenäisesti deployattujen palveluiden kunkin omistaa osan yhdestä graafista, jonka gateway komponoi yhdeksi schemaksi, jota clientit kyselevät. Se on moderni korvaaja schema stitchingille, jossa gateway yhdisti manuaalisesti etäschemat — federaatio siirtää yhdistämissäännöt itse subgraafeihin.
Arkkitehtuuri
┌────────────────────────┐
Client ─────▶ │ Gateway / Router │ (composed supergraph)
└───────┬────────┬───────┘
│ │ plans + fans out sub-queries
┌──────────▼──┐ ┌──▼──────────┐ ┌──────────────┐
│ Users svc │ │ Reviews svc │ │ Products svc │
│ type User │ │ extends │ │ type Product│
│ @key(id) │ │ User/Prod │ │ @key(id) │
└──────────────┘ └─────────────┘ └──────────────┘
