<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Tom<div><br><div><div>On 15 Aug 2012, at 14:59, Tom Wrigglesworth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi, Thanks for your reply.<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">So is the 40ms the time it takes for a message to travel from the game logic server to the web browser? </blockquote>
<div><div><br></div><div>It's the time between the message being published and the message being delivered. I have output from wireshark looking something similar to:</div><div><br></div><div> # Time From To Protocol Length Info</div>
<div>...</div><div><div> 155 1.539600 127.0.0.1 127.0.0.1 AMQP 115 Basic.Publish</div><div> 157 1.579834 127.0.0.1 127.0.0.1 AMQP 3873 Content-Header Content-Body</div>
<div> 159 1.580942 127.0.0.1 127.0.0.1 AMQP 3963 Basic-Deliver Content-Header Content-Body</div><div> 160 1.590769 127.0.0.1 127.0.0.1 AMQP 115 Basic.Publish</div>
<div> 162 1.627732 127.0.0.1 127.0.0.1 AMQP 3873 Content-Header Content-Body</div><div> 164 1.628295 127.0.0.1 127.0.0.1 AMQP 3963 Basic-Deliver Content-Header Content-Body</div>
<div> 165 1.638748 127.0.0.1 127.0.0.1 AMQP 115 Basic.Publish</div><div> 167 1.675834 127.0.0.1 127.0.0.1 AMQP 3873 Content-Header Content-Body</div>
<div> 169 1.676850 127.0.0.1 127.0.0.1 AMQP 3963 Basic-Deliver Content-Header Content-Body</div></div><div>...</div><div><br></div><div>This looks to me like it is AMQP that is taking about 40ms between publish and deliver. Is this because of certain server settings i'm running, interference from the node server running at the same time on the same machine or some other reason?</div></div></blockquote><div><br></div><div>The only way I can think of to determine that is to remove the other factors. You could try publishing and consuming via the same client instance, with the other servers disabled and see what kind of throughput you get when there's little other potential contention for operating system resources. </div><div><br></div><div>Cheers,</div><div>Tim</div></div></div></body></html>