Overview of Fusion Subscription Models
Fusion supports two models for federating GraphQL subscriptions:
- Federated Event Streams: The recommended model for scale. Subscriptions are backed by a message broker (NATS, Kafka, Azure Event Hubs, Amazon SQS, or Redis). The gateway subscribes to a broker topic and resolves requested fields across subgraphs using stateless fetches. The gateway holds no per-subscription state.
- Subgraph subscriptions over SSE: The simplest model for when a single subgraph owns the event source. The subscription is implemented by a subgraph as a normal GraphQL subscription, and the gateway consumes the stream via Server-Sent Events (SSE).