[Quickfix-developers] Dealing with SeqNo...2
Brought to you by:
orenmnero
|
From: Ananth <ans...@sp...> - 2005-12-27 15:22:56
|
<html>=0D <BR> =0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FO= NT face=3D"Times New Roman" size=3D3>Hi,</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:= p><FONT face=3D"Times New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FO= NT size=3D3><FONT face=3D"Times New Roman">This regarding with my previous = question to set <SPAN style=3D"COLOR: black">seqnos=85=85<o:p></o:p></SPAN>= </FONT></FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SP= AN style=3D"COLOR: black"><o:p><FONT face=3D"Times New Roman" size=3D3>&nbs= p;</FONT></o:p></SPAN></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FO= NT size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"COLOR: black">Now= my team has come up with an idea that whenever <B style=3D"mso-bidi-font-w= eight: normal">Client</B> disconnects, the <B style=3D"mso-bidi-font-weight= : normal">Server</B> part will store the </SPAN><SPAN style=3D"COLOR: red">= Incoming and Outgoing seqno</SPAN><SPAN style=3D"COLOR: black"> in SQLServe= r2000. This will enable Client to relogin in any other workstation by retri= eving the above seqnos and storing in respective SeqNo Files. In this case = it is assumed that <B style=3D"mso-bidi-font-weight: normal">Client</B> wil= l not be able to login simultaneously to the <B style=3D"mso-bidi-font-weig= ht: normal">Server</B> with same ClientID.<o:p></o:p></SPAN></FONT></FONT><= /P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SP= AN style=3D"COLOR: black"><o:p><FONT face=3D"Times New Roman" size=3D3>&nbs= p;</FONT></o:p></SPAN></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FO= NT size=3D3><FONT face=3D"Times New Roman"><SPAN style=3D"COLOR: black">It = was easy for me to code in <B style=3D"mso-bidi-font-weight: normal">Server= </B>part to set in database by using </SPAN><SPAN style=3D"COLOR: red">Ses= sionID </SPAN>and by using funcs <SPAN style=3D"COLOR: red">getExpectedSend= erNum(), getExpectedTargetNum()</SPAN><SPAN style=3D"COLOR: black">. But in= the <B style=3D"mso-bidi-font-weight: normal">Client </B>side the problem = is that before I login to server there will be no </SPAN><SPAN style=3D"COL= OR: red">SessionID</SPAN><SPAN style=3D"COLOR: black"> created. So I have<o= :p></o:p></SPAN></FONT></FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SP= AN style=3D"COLOR: black"><FONT size=3D3><FONT face=3D"Times New Roman">2 w= ays <o:p></o:p></FONT></FONT></SPAN></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><SP= AN style=3D"COLOR: black"><o:p><FONT face=3D"Times New Roman" size=3D3>&nbs= p;</FONT></o:p></SPAN></P>=0D <OL style=3D"MARGIN-TOP: 0in" type=3D1>=0D <LI class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify; ms= o-list: l0 level1 lfo1; tab-stops: list .5in"><FONT size=3D3><FONT face=3D"= Times New Roman"><SPAN style=3D"COLOR: black">To look upon all the cases an= d write code for to retrieve</SPAN> SeqNo from database and store it to spe= cified files.(In which I may have to create files in some cases) </FONT></F= ONT></LI></OL>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:= p><FONT face=3D"Times New Roman" size=3D3> </FONT></o:p></P>=0D <OL style=3D"MARGIN-TOP: 0in" type=3D1 start=3D2>=0D <LI class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify; ms= o-list: l0 level1 lfo1; tab-stops: list .5in"><FONT face=3D"Times New Roman= " size=3D3>The previous logic is written in QuickFix Lib itself. So we can = directly write code in QuickFIX to retrieve Seqno from database and use bas= ic functions of quickfix. Thus making it lot more easier.</FONT></LI></OL>= =0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><o:= p><FONT face=3D"Times New Roman" size=3D3> </FONT></o:p></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><FO= NT face=3D"Times New Roman" size=3D3>I am now in dilemma to which way to go= as I may face numerous impacts on either side. Could anyone of you please = suggest which is better way or any new method so that I can apply to applic= ation so that there should be no <SPAN style=3D"COLOR: red">performance deg= radation</SPAN> after connectivity between Server and Client is established= due to any database access.</FONT></P>=0D <P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; TEXT-ALIGN: justify"><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"COLOR: bl= ack"><FONT face=3D"Times New Roman" size=3D3>Thanks in Advance,</FONT></SPA= N><SPAN style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"><BR> </SPAN><SPAN style=3D"COLOR: black"><FONT size=3D3><FONT face=3D"Times New = Roman">Ananth<o:p></o:p></FONT></FONT></SPAN></P>=0D </html><BR>= |