-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
How to use bb8 with redis pubsub connections ? #70
Comments
I hacked around it but it is definitely not a good solution: https://github.com/sync/bb8/commit/876ed2c2b2b7d94922c83c1d87e69c3569341640 |
Having a second pool for this doesn't seem so bad. Why do you think it's not a good solution? |
Can you get yourself a dedicated connection (via |
I didn't like the fact that i have to create a fake subscription to see if pool is working... I've opened a PR let me know what you think: |
@khuey i can't see any usage of the dedicated_connection in the codebase, do you have a sample somewhere ? |
|
@djc might you be open to supporting a pubsub connection pool? The changes to do so seem pretty minimal (still need to figure out what My usecase for it is that we're looking to use an adhoc pubsub channel to send back a response from a request received over a stream. Using a stream for the response is overkill because we want this to be ephemeral. |
@bbaldino I'll consider it, please submit a PR. |
Hi,If this is still an issue, I recommend using RESP3 pubsub. It allows to use the same connection for pubsub & for regular usage. |
First of all thank you for the recent update to bb8 :-)
I can never turn a conn in into a pubsub connection calling
into_pubsub
for some reason. Have you had a chance to have a look pubsub with redis ?From redis
The text was updated successfully, but these errors were encountered: