<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">If I remember right, messages are only "consumed" in the engine between callback calls. So, for two messages A and B, message B will sit in the TCP queue until OnMessage(A) completes.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">You could kind of test this by commenting out most of your OnMessage() function bodies, assuming you have some kind of test connection that can blast you with the same amount of data, or if you are able to do it on prod itself. If you comment stuff out and the latencies go away, then one of those callbacks was too heavy.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 29, 2014 at 12:28 PM, xmoon 2000 <span dir="ltr"><<a href="mailto:xmoon2000@googlemail.com" target="_blank">xmoon2000@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Grant,<br>
<br>
How can I check that?<br>
<br>
I have no code between QF receiving message and then logging it.<br>
<br>
FIrst time I lay my hands on message is when it finally gets to<br>
OnMessage() - but by that time is has been logged and is therefore<br>
after the latency has been introduced.<br>
<br>
Moon<br>
<div class="HOEnZb"><div class="h5"><br>
On 29 October 2014 15:35, Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com">gbirchmeier@connamara.com</a>> wrote:<br>
> The amount of time spent inside QF callbacks can affect latency. Please<br>
> check that you are spending a minimum time inside of QF callbacks. For<br>
> expensive operations, you should delegate to worker threads.<br>
><br>
> On Wed, Oct 29, 2014 at 9:27 AM, xmoon 2000 <<a href="mailto:xmoon2000@googlemail.com">xmoon2000@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I am getting some latency between exchange time in the FIX message and<br>
>> Time stored in quickfixn logs.<br>
>><br>
>> I have put wireshark on and I see I am getting the packets in a timely<br>
>> fashion.<br>
>><br>
>> I tried swapping the standard QuickFixn logging routine for a<br>
>> high-performance one, and I STILL see the latency issue (about<br>
>> 10-20ms) across a received "burst" of messages.<br>
>><br>
>> What else happens between a FIX message getting to my machine and<br>
>> QuickFixn logging it?<br>
>><br>
>> Moon<br>
>> _______________________________________________<br>
>> Quickfixn mailing list<br>
>> <a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
>> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Grant Birchmeier<br>
> Connamara Systems, LLC<br>
> Made-To-Measure Trading Solutions.<br>
> Exactly what you need. No more. No less.<br>
> <a href="http://connamara.com" target="_blank">http://connamara.com</a><br>
><br>
> _______________________________________________<br>
> Quickfixn mailing list<br>
> <a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
><br>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br></font></font></div><div><font><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div>
</div>