-
Notifications
You must be signed in to change notification settings - Fork 236
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
can I have multiple sockets connection with one app #448
Comments
Hey @jgengo 👋🏻 Unfortunately, the behaviour described is expected. When multiple instances of the app each establish the same SocketMode connection, then the Slack API server will send each event to only 1 random connection. If you need to scale to multiple app instances, then you may need to use 1 app that establishes a SocketMode connection and adds each request to a job queue for other instances to handle. We don't have a working example of this but if you want to share your solution then we'd greatly appreciate it! |
@mwbrooks thank you for your response. I might come up with something. I could defo propose a solution with a rabbitmq, but I'm quite short on time. I might come back with a solution at some point. Where do you want me to propose my solution? in this issue? |
Hi @jgengo, if you implement some solution for your use case, as @mwbrooks suggested, doing as below should work for you.
At least in the short term, we (as bolt-python maintainers) are not planning to add any built-in functionalities for this use case. Thus, from bolt-python project maintenance perspective, I'm leaning toward closing this issue. But, once you share your work as your own GitHub project in the future, sharing the URL here would be greatly appreciated! |
@seratch alright! noted! Thank you |
For this reason, let us close this issue. Thanks for starting this conversation! |
Hello 👋🏻
I read the Slack documentation regarding the Socket and it seems to says that it can works up to 10 simultaneous socket per app.
I tried today, and it acts quite weirdly, it seems that I receive some of the events, but not all of them. It might dispatch one to my first slack-bolt socket and not the other one, and the other way around some time.
Do you know if there is something that could be preventing slack-bolt to work with simultaneous connection with the same app?
I would like if possible to receive the events to all the listening sockets.
Thanks
The text was updated successfully, but these errors were encountered: