Node.js – Cost of IPC

by Subbu Allamaraju on March 23, 2012 · 13 comments

I ran a quick test to quantify the cost of IPC between workers and the master in a node.js cluster. The test code is below (which I borrowed from node’s docs). On receiving an HTTP request, each worker process sends a message to the master. I ran three variations – no messages, send one message, and send 5 messages. 1. Don’t send a message. 2. Send one message per request 3. Send five messages per request These are done on Ubuntu 11.04 on a quad-core Xeon box using node 0.6.12.

{ 12 comments… read them below or add one }

Diego Sevilla Ruiz (@diegosevilla) March 23, 2012 at 3:12 pm

RT @jedisct1: Node.js – Cost of IPC: http://t.co/zrpbjQnm

Reply

Arnon Rotem-Gal-Oz (@arnonrgo) March 23, 2012 at 9:25 pm

RT @jedisct1: Node.js – Cost of IPC: http://t.co/zrpbjQnm

Reply

Jesse Ezell (@jezell) March 24, 2012 at 12:08 am

RT @jedisct1: Node.js – Cost of IPC: http://t.co/zrpbjQnm

Reply

Abrdev Blog (@abrdev) April 19, 2012 at 12:00 pm

Node.js – Cost of IPC http://t.co/taoiBSXh

Reply

Peter Galiba (@Poetro) April 20, 2012 at 12:31 am

Node.js – Cost of IPC http://t.co/XWs96acX #weblabor

Reply

Outsider (@Outsideris) April 20, 2012 at 6:57 am

Node.js – Cost of IPC http://t.co/nfBnDL6G

Reply

Chris Ahn (@bluempathy) April 20, 2012 at 7:38 am

#yam RT @Outsideris Node.js – Cost of IPC http://t.co/AmSjTT4B

Reply

Santhosh Menon (@santhosh_menon) May 31, 2012 at 4:46 am

Node.js – Cost of IPC http://t.co/Rg4zf5lR

Reply

Faruk ALKAYA (@farukalkaya) July 31, 2012 at 11:53 am

Node.js – Cost of IPC http://t.co/O70jz0lv

Reply

@z3r0 April 9, 2013 at 2:23 pm

Cluster module is not so cheap http://t.co/uWp0ZGWrs5 #nodejs

Reply

NodeJS Community (@NodeJsCommunity) April 9, 2013 at 2:31 pm

Cluster module is not so cheap http://t.co/4J0gCT0mzP #nodejs http://t.co/4XntemNOPK

Reply

NodeJS Community (@NodeJsCommunity) April 9, 2013 at 2:31 pm

Cluster module is not so cheap http://t.co/4J0gCT0mzP #nodejs http://t.co/4XntemNOPK

Reply

Leave a Comment

Previous post:

Next post: