Difference between "message_queue" and "client_manager" parameters #1206
Replies: 2 comments
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
-
Makes sense. Thanks so much for the incredible work you do Miguel. 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running several flask-socketio instances load balanced behind nginx. Once I added Celery to my app, I realized I needed to add "message_queue" for the tasks to communicate with my socketio instances. That works great (and I pass "message_queue" to the socketio constructor for both Celery and in the socketio instances).
But, after reviewing the documentation:
https://flask-socketio.readthedocs.io/en/latest/api.html
I'm seeing that there is also a "client_manager" parameter.
While trying to diagnose some transient issue, (my socketio servers are hanging after being online for a while) I'm starting to wonder if I have something misconfigured. Could you elaborate on what the "client_manager" option is for, and when we should use it?
Currently the docs say:
It is not obvious to me the importance of the client list, and what issues might arise if this parameter is omitted in my multi-socketio instance setup. I see the docs say you don't need to set it explicitly, but I was wondering at what point do you have to pass something?
For example, I'm using sticky sessions for nginx, does this still mean I need to pass a client_manager?
Thanks! 💓
Beta Was this translation helpful? Give feedback.
All reactions