<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Grant,</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for the detailed information.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
What I understood is:</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Suppose there are 10 messages in the Q</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Case a) CheckLatency=Y and MaxLatency=120.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If it takes more than 120 seconds to process a message then session will be disconnected. So for 10 messages (subject to max 120 seconds for each) I have 1200 seconds time to process?</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Case b) CheckLatency=N, it doesn't matter how long I take to process 1 message and it will never disconnect.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Are the above correct?</div>
<div id="Signature">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Somnath</div>
</div>
<div id="appendonsend"></div>
<div><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>From:</b> Quickfixn <quickfixn-bounces@lists.quickfixn.com> on behalf of Grant Birchmeier <gbirchmeier@connamara.com><br>
<b>Sent:</b> Tuesday, July 15, 2025 22:12<br>
<b>To:</b> Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com><br>
<b>Subject:</b> Re: {{Quickfixn}} CheckLatency </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">
The defaults latency settings are CheckLatency=Y and MaxLatency=120.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">QF/n handles messages serially-- when messages A, B, and C are received, they go into a queue. The engine calls FromApp/FromAdmin on message A, and does not do anything with B until the FromApp(A)/FromAdmin(A)
callback returns.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">FromApp and FromAdmin are user code, i.e. that's your code, not the engine. If those functions are written so that they don't return quickly, then the message queue will start to back up
with unhandled messages. If you are receiving messages faster than you consume them, then this latency check will be triggered.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">With the above defaults, if 120 seconds elapse between receiving a message and processing it, the engine will throw an error and disconnect. This can a good thing in a trading situation,
because the market can move a lot in 2 minutes; you don't want to be acting on old data.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">Turning CheckLatency off disables this check, and is not advised.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">I have actually run into this situation before. I had a client move their app to a slower VM without telling me, and it was not capable of handling the firehose of data we were accustomed
to seeing it receive without trouble. Without this latency check, I wouldn't have learned about it until much later.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">-Grant</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr;">On Mon, Jul 14, 2025 at 10:45 PM somnath pal <<a href="mailto:palsomnath@hotmail.com" id="OWA7a2abfd4-7bbd-c6c4-2ef3-3330b4eb4a2d" class="OWAAutoLink">palsomnath@hotmail.com</a>> wrote:</div>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left: 1px solid rgb(204, 204, 204);">
<div style="direction: ltr; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It is good that you pointed out about CheckLatency. I could not find any information on this. Can you point me to any link or example where I could have details like the effect of CheckLatency=Y vs N.</div>
<div style="direction: ltr; margin: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</blockquote>
<div><br>
<span style="font-family: Slack-Lato, appleLogo, sans-serif; font-size: 13px; color: rgb(29, 28, 29); background-color: white;">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender
immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</span></div>
</body>
</html>