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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More GraphQL interview questions

View all →