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

Feature Request: Pub/Sub Support #7

Closed
jvinet opened this issue Apr 28, 2011 · 4 comments
Closed

Feature Request: Pub/Sub Support #7

jvinet opened this issue Apr 28, 2011 · 4 comments

Comments

@jvinet
Copy link

jvinet commented Apr 28, 2011

Thanks for the great Lua library, we use it throughout our application.

One feature we'd love to see is pub/sub support. At present, we're sending out the same data N times, once for each worker. It would be great to move that to a pub/sub system in the future.

Thanks very much!

@nrk
Copy link
Owner

nrk commented Apr 29, 2011

Hi Judd,

Right now you can publish messages with the PUBLISH command, but full support for an abstraction of pub/sub (as a consumer) is planned for the next patch release of redis-lua. I will try to take a look when I have some free time to give you an update for this feature request.

Thanks,
Daniele

@nrk
Copy link
Owner

nrk commented Apr 30, 2011

Support for PUB/SUB has been added in the master branch in the form of a coroutine-based iterator used to consume the incoming messages in a for-loop. This addition will be part of redis-lua v2.0.2 once it is ready.

Thanks,
Daniele

@nrk nrk closed this as completed Apr 30, 2011
@jvinet
Copy link
Author

jvinet commented May 2, 2011

This is wonderful. Thanks for your excellent response time, Daniele!

Cheers,

  • Judd

@ashbrener
Copy link

Hi, how do I get the PUBSUB CHANNELS * list ?

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

No branches or pull requests

3 participants