Thread: [Quickfix-developers] Dealing with seqno
Brought to you by:
orenmnero
|
From: Ananth <ans...@sp...> - 2005-12-20 11:48:40
|
<html>=0D <BR> =0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>Hi,</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>I have question regarding setting of seqnos=85</FONT></P>= =0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>We have an application by which a trader can login from any= computer.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>But as per settings we are storing seqnos in file in partic= ular computer.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>So whenever client logins in another computer I just extrac= t expected seq no. from logout<SPAN style=3D"mso-spacerun: yes"> </SP= AN>message sent by Server, and overwrite <B style=3D"mso-bidi-font-weight: = normal">outgoing seqno</B> in respective file.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>But my problem arises with <B style=3D"mso-bidi-font-weight= : normal">incoming seqno</B>. Because when the server appln send next msg w= ith its seqno, <B style=3D"mso-bidi-font-weight: normal">ResendRequest</B> = msg is generated by client appln, normally sequence reset msg is sent by se= rver, but at times when seqno. gap is too high then it sends logout msg=85.= In this situation I cant overwrite incoming seqno, because it would have ma= ny bad impacts in appln itself.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>How to handle this situation.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New = Roman" size=3D3>Pls give me some suggestion in this matter</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><o:p><FONT face=3D"Times= New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN style=3D"FONT-SIZE= : 10pt; FONT-FAMILY: Arial">Thanks in Advance,<BR> </SPAN><FONT face=3D"Times New Roman" size=3D3>Ananth</FONT></P>=0D </html><BR>= |
|
From: Caleb E. <cal...@gm...> - 2005-12-20 13:31:31
|
On 12/20/05, Ananth <ans...@sp...> wrote: > > How to handle this situation. > Pls give me some suggestion in this matter > You could use the MySQLStore so that your Session state is not stored on th= e local computer. Or you could put your Store files on a network-mounted drive (Windows) or NFS filesystem (UNIX). -- Caleb Epstein caleb dot epstein at gmail dot com |
|
From: Reiner N. <rei...@ma...> - 2005-12-20 13:34:40
|
Hi Ananth, you may find it useful to reset the sequence numbers on logout. So you can start a new session on an abritrary host and this can recover from dirty disconnects as the sequence number is well= =20 still maintained on those host. When the session terminates well, a logout message will be sent so after th= is=20 you can start the session on another host. Regards, Reiner > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX > Support: http://www.quickfixengine.org/services.html > > > Hi, > I have question regarding setting of seqnos=E2=80=A6 > We have an application by which a trader can login from any computer. > But as per settings we are storing seqnos in file in particular computer. > So whenever client logins in another computer I just extract expected seq > no. from logout message sent by Server, and overwrite outgoing seqno in > respective file. > But my problem arises with incoming seqno. Because when the server appln > send next msg with its seqno, ResendRequest msg is generated by client > appln, normally sequence reset msg is sent by server, but at times when > seqno. gap is too high then it sends logout msg=E2=80=A6.In this situatio= n I cant > overwrite incoming seqno, because it would have many bad impacts in appln > itself. > How to handle this situation. > Pls give me some suggestion in this matter > > Thanks in Advance, > Ananth > > > ------------------------------------------------------- This SF.net email > is sponsored by: Splunk Inc. Do you grep through log files for problems? > Stop! Download the new AJAX search engine that makes searching your log > files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id 865&op=3DClick > _______________________________________________ Quickfix-developers maili= ng > list Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |
|
From: Dale W. <wil...@oc...> - 2005-12-20 15:36:15
|
Hi Ananth, Ananth wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX > Support: http://www.quickfixengine.org/services.html > > Hi, > > > > I have question regarding setting of seqnos... > > > > We have an application by which a trader can login from any computer. > > But as per settings we are storing seqnos in file in particular computer. > > So whenever client logins in another computer I just extract expected > seq no. from logout message sent by Server, and overwrite *outgoing > seqno* in respective file. > > > > But my problem arises with *incoming seqno*. Because when the server > appln send next msg with its seqno, *ResendRequest* msg is generated > by client appln, normally sequence reset msg is sent by server, but at > times when seqno. gap is too high then it sends logout msg....In this > situation I cant overwrite incoming seqno, because it would have many > bad impacts in appln itself. > > > > How to handle this situation. > > Pls give me some suggestion in this matter > One suggestion that may be obvious, but peopole often miss the obvious so I'll make it anyway: Share the store directory between workstations. The downside is you may take a performance hit, and there may be reliability issues due to single-point-of-failure and the latency in writing to the store. But if you consider these factors and find the tolerable this is by-far the easiest approach. If sharing the flat files doesn't meet you needs, consider using MySQL or some other database to store the files on a server. You still risk a perfomance hit, but the reliability issue should ber handled by the database. One reason I think you may not be concerned about reliability is the technique you are using now is very risky. Do you have any mechanism to insure that a trader doesn't log onto two workstations at the same time? If a trader walks away from a running workstation, and logs into another there are a variety of things that could go wrong (and very few that could go right!) Dale > > > > > Thanks in Advance, > Ananth > > > ------------------------------------------------------- This SF.net > email is sponsored by: Splunk Inc. Do you grep through log files for > problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ Quickfix-developers > mailing list Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |