Skip to content

"Parse Error: Cannot convert to map." when using xread_map #319

Answered by aembke
hmacias-avaya asked this question in Q&A
Discussion options

You must be logged in to vote

They share the same connection(s) under the hood, so it depends on a few things. Generally speaking I'd recommend using entirely separate clients/connections if one of them is expected to block though. In your case what will happen is the XADD commands will just wait until the XREAD call finishes or times out, then all the queued XADD commands will run, then it'll do the next XREAD call, etc. In most cases that's not what callers want, so usually I'd recommend using separate connections. The clone_new function can be used to create a new client that will use new connections if you need that - just don't forget to init the new client after calling that.

For what it's worth, this kind of th…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@hmacias-avaya
Comment options

@aembke
Comment options

Comment options

You must be logged in to vote
6 replies
@hmacias-avaya
Comment options

@aembke
Comment options

@hmacias-avaya
Comment options

@aembke
Comment options

Answer selected by hmacias-avaya
@aembke
Comment options

@hmacias-avaya
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants