-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Pioneer support multiplexing subscriptions over one WebSocket connection? #142
Comments
Pioneer only opens 1 WebSocket connection for each client and uses either If you notice that this isn't the case, let me know and I'll try to get it fixed |
Got it. I assumed as much but I wasn't sure. Do you know if there is any downside to having many subscriptions open at the same time from a client? I am using Redis PubSub. |
Not quite sure if there would be obvious problems having many subscriptions open. I haven't done many tests with a significantly large number of subscription operations active |
So, if I understand correctly the protocol handles multiplexing from the client and Pioneer Redis PubSub's Broadcast makes sure there is only one Redis connection per topic? |
And if that's the case, in d-exclaimation/pioneer-redis-pubsub#8, Maybe the answer is that in:
Then I'm assuming the number of Redis connections is not based on the number of clients and only on the number of unique subscription topics. |
The protocol handle multiplexing of subscriptions on both the client and server on but only at the network/API level. RedisPubSub and PubSub also try to multiplex Redis subscriptions for each channel. RedisPubSub will multiplex all async stream of the same channel to 1 RediStack subscription, so basically 1 RediStack subscription for every GraphQL subscription of the same channel. The number of connections to Redis is dependent on how RediStack handle channel subscriptions and I don't know if they make a new Redis connection for each channel subscriptions. |
Does Pioneer support multiplexing multiple subscriptions over one WebSocket connection?
This is relevant when a client wants to subscribe to a high number of subscriptions.
The text was updated successfully, but these errors were encountered: