[Quickfix-developers] Multiple FIX acceptor servers
Brought to you by:
orenmnero
|
From: Pasquale d'A. <pas...@ga...> - 2005-05-17 17:42:09
|
Hi,
I have the need to start two FIX acceptors on two different machines =
letting an initiator connect alternatively to both ones. This scenario =
is useful to implement fault-tolerant services.
With the current release of QuickFIX library (1.9.4) I have the problem =
of maintaining the sequence numbers synchronized, even if I use the =
database storing; QuickFIX, in fact, keeps an internal copy of sequence =
numbers that it uses to validate the incoming messages and to set the =
outgoing ones.
So I have worked around the problem by adding the virtual method =
ReloadSeqNums() to the class MessageStore and to its derived MySQLStore. =
The MySQLStore implementation of this method is:
void MySQLStore::ReloadSeqNums() { populateCache(); }
I call the above mentioned method in void Session::nextLogon( const =
Message& logon ) by means of the following statement:
m_state.store()->ReloadSeqNums();
Do you think this update could be extended to future versions of the =
QuickFIX library?
If you have any concerns about my update, please let me know.
Regards,
Pasquale d'Aloise
GATE Tecnologie Informatiche s.r.l.
|