I am using redis pub/sub to talk between processes, and redis lists as
a queue, so there's some amount of IPC right there. I hope to release
those bits soon. Stream API #ftw!

On Tue, Jun 19, 2012 at 10:06 AM, dhruvbird <[email protected]> wrote:
> I wonder if anyone has tried to similarly use redis to do IPC between
> different node processes.
>
>
> On Monday, June 18, 2012 2:38:42 PM UTC-7, Rakesh Pai wrote:
>>
>> I put this up on github a couple of days ago:
>> https://github.com/errorception/redis-lock
>>
>> It's an implementation of a locking primitive using redis. It's great
>> for when you want to ensure that you don't run into concurrency issues
>> when using the node event loop heavily, or with multiple instances of
>> node. It doesn't block the event loop at all, yet ensures that your
>> functions execute in order (across processes), to ensure integrity.
>> it's kinda niche, but when you need it you need it badly. I've been
>> using this myself on http://errorception.com kinda heavily, and it
>> seems to do the job very well. I've tried hard to keep the API real
>> simple - just one function call! Depends on Redis, because I wanted
>> the lock to be sitting out of the node process, so that multiple
>> (node) processes can find out about it.
>>
>> Feedback welcome, of course. Let me know what you think. (My first
>> node thing on github! Also, my first github thing! :D )
>>
>> --
>> Rakesh Pai
>> Mumbai, India.
>> http://rakeshpai.me/
>> http://twitter.com/rakesh314
>> http://www.google.com/profiles/rakeshpai
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en



-- 
Rakesh Pai
Mumbai, India.
http://rakeshpai.me/
http://twitter.com/rakesh314
http://www.google.com/profiles/rakeshpai

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to