Resurrecting this topic ... 

I think there is a real use case for node for shared memory. Because TCP 
connections are great but will always be slower than direct access to 
memory.

To avoid any concurrency issue shared memory should be writable only by one 
process. When using the cluster module, the shared memory should be 
writable only by the master for example. If you want to write from a 
worker, just send a message, and the master will do it.


On Thursday, August 12, 2010 8:24:30 AM UTC+2, Ohad wrote:
>
> I have few processes of Node, 
> What is the best practice of sharing memory between those processes ? 
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to