seniorGraphQL
What are the challenges of scaling Subscriptions in a distributed architecture?
Updated Apr 28, 2026
Short answer
Subscriptions require maintaining long-lived, stateful connections (WebSockets), which are fundamentally difficult to scale horizontally.
Deep explanation
When a load balancer routes WebSocket connections across 10 API instances, a mutation hitting Instance A must somehow trigger subscriptions held on Instances B and C. This requires an external PubSub event broker (like Redis or Kafka) to broadcast events across the entire cluster.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro