[rabbitmq-discuss] Optimizing RabbitMQ

Simon MacMullen simon at rabbitmq.com
Tue Nov 20 12:46:08 GMT 2012


Are you also using amqp-node? I wonder whether that clients disables 
Nagle - I grepped for "setNoDelay" [1] in the source and couldn't find 
it, but I am not exactly a node.js expert.

Certainly a latency of 40ms is very high; RabbitMQ can routinely get < 
1ms assuming a fast network.

Cheers, Simon

[1] http://nodejs.org/api/net.html#net_socket_setnodelay_nodelay

On 19/11/12 18:03, Don wrote:
> Hi Tom,
>
> Did you ever find a solution?  I'm having the same problem and I've run
> out of ideas on what to do.  Any help you could provide would be much
> appreciated.
>
> Thanks.
> Don
>
> On Tuesday, August 14, 2012 1:32:41 PM UTC-7, Tom Wrigg wrote:
>
>     Hello.
>
>     I'm writing a real-time browser-based game using node.js and AMQP
>     and would like to know how to optimise the AMQP server to achieve a
>     high throughput- low latency system. I'm using postwait's amqp-node
>     <https://github.com/postwait/node-amqp> client with a RabbitMQ server.
>
>     The game logic runs on the server. Every 20ms a world update message
>     is sent to the client to render which each has a length of about
>     4000 bytes:
>
>         Game Logic server ---> AMQP topic exchange ---> websockets --->
>         web-browser.
>
>
>     I've done a quick test to measure the time it takes for the message
>     to be published, routed and reach it's destination which came out at
>     40ms. This seems quite slow.
>
>     Why is it taking so long to route a message? I've read of servers
>     doing 12,000+ messages per second.
>
>     Is there a way to turn off acknowledgements? would this make things
>     faster?
>
>     Are there any other methods I could use to increase speed/ reduce
>     latency?
>
>
>     Thanks in advance,
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list