Skip to content
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

Question: Reliable queue using blocking commands #1117

Closed
lefig opened this issue Apr 10, 2019 · 6 comments
Closed

Question: Reliable queue using blocking commands #1117

lefig opened this issue Apr 10, 2019 · 6 comments

Comments

@lefig
Copy link

lefig commented Apr 10, 2019

Hi,

We currently use Redis as a reliable queue and implement the reliable queue pattern using various commands that ultimately block. This avoids having a weak point in the architecture involving pubsub where there is no listener available.

I have taken a look at the multiplex guidance
https://stackexchange.github.io/StackExchange.Redis/PipelinesMultiplexers

This seems strange. Is the guidance saying that publishing/subscribing is required as a work around (for no blocking calls)?

Thank you

Fig

@mgravell
Copy link
Collaborator

if you want to avoid the pub/sub problem: perhaps consider redis streams; ultimately the architecture of the library is not amenable to blocking operations at the current time, unless I switch to a multi-connection pooled approach

@lefig
Copy link
Author

lefig commented Apr 10, 2019

Thanks for that. Yes, Thats what I thought but we are still with Redis 4.0 (without streams support). I have read some posts about using the interface to issue some "raw" commands such as
string foo = (string)db.Execute(
"JSON.GET", key, "[1].foo");
But this doesnt seem to be the reliable way to go.

@mgravell
Copy link
Collaborator

mgravell commented Apr 10, 2019 via email

@lefig
Copy link
Author

lefig commented Apr 11, 2019

I see. Thank you for confirming and for making this such an excellent product. We happen to use another Redis client that is rather connection pool focused. Initially I thought that this would be beneficial for performance. But the single connection multiplex design has made me rethink this.

@mgravell
Copy link
Collaborator

mgravell commented Apr 11, 2019 via email

@NickCraver
Copy link
Collaborator

Closing this due to inactivity, seems like we're good for the time being here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants