This block + 6,000 more — yours with Pro

Chat Dark Theme

42/200
Docs
K
Kai Nakamura

Online

Encrypted
Today
K
Kai Nakamura10:30 PM
Hey, have you tried the new GraphQL subscriptions endpoint?
You10:31 PM
Not yet. Is it stable enough for production?
K
Kai Nakamura10:32 PM
I've been running it for two weeks with zero downtime. Handles about 12k concurrent connections on a single instance.
You10:33 PM
That's impressive. What's the memory footprint like under that load?
K
Kai Nakamura10:34 PM
Around 480MB for the subscription server. The main bottleneck is the Redis pub/sub layer — you'll want to shard if you go above 50k connections.
You10:35 PM
Good to know. We're expecting about 20k peak so that should be fine. I'll spin up a staging instance tomorrow.
K
Kai Nakamura10:36 PM
Nice. One tip — set the heartbeat interval to 30s instead of the default 15s. Cuts bandwidth in half with no noticeable latency increase.
You10:37 PM
Will do. Thanks for the heads up.