Hi Kaveh,

the MQTT.js (https://github.com/adamvr/MQTT.js) library can crank up to
30000 msg/sec, with my recent PR (https://github.com/adamvr/MQTT.js/pull/113)
and on my 2011 Macbook Air. MQTT is a binary protocol, so things might be
different.

Ideally you should write a custom WriteStream and avoid Buffer#slice
whenever you can.
In your code you are doing it wrong, hooking it up on the 'data' event is
not the way to go if you want to achieve performance.

Let me know.

Cheers,

Matteo

-- 
-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
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 nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to