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

Can I send message directly by redis client on rails app? #18

Closed
jerryc-nguyen opened this issue Dec 27, 2015 · 3 comments
Closed

Can I send message directly by redis client on rails app? #18

jerryc-nguyen opened this issue Dec 27, 2015 · 3 comments

Comments

@jerryc-nguyen
Copy link

Hi,
First of all, many thanks for your great message queue implement using redis. Before known your lib, I try to use rabbitmq to setup message queue system for my app. But it's seem to be overkill and hard to maintain. Now I see your lib, It's seem to be very easy to use and redis server already running in my app. It's really cool.
So I wonder there is a way to use redis client on my rails app to push messages to my nodejs app directly?. I see you have made the rest-rsmq to easy communication between these apps. But I see it will hurt the performance when app have numerous concurrent request.
Looking forward to hearing from you, many thanks.

@mpneuried
Copy link
Contributor

Hi,
until you already using redis it should be possible push messaged directly into the rsmq data structures.
Details can be found here: https://github.com/smrchy/rsmq/blob/master/_docs/redis_data_structure.md

The redis multi call writing the message can be found here: https://github.com/smrchy/rsmq/blob/master/index.coffee#L425

I would recommend to create a rsmq ruby module (i guess it's called ruby Gem) and publish it so other people can use it ;-)

@mpneuried
Copy link
Contributor

@smrchy are the docs up to date?
also see #19

@jerryc-nguyen
Copy link
Author

Sorry for a long time to reply. Currently, I use redis pub-sub to communicate between these apps. It works as my expected for now. So I close this issue. Many thanks.

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

2 participants