{{Quickfixn}} Switching between Primary and Backup sessions

Кононов Роман Олегович rkononov at bcs.ru
Mon Feb 12 20:36:00 PST 2018


Hi! Our counterparty requires to recover gateway failover and provides Primary and Backup ip addresses and ports. Also specific behavior required.
So we've configured 2 initiator sessions:

[SESSION]
BeginString=FIX.4.4
SessionQualifier=PR
SocketConnectHost=<Primary>
SocketConnectPort=<Primary>

[SESSION]
BeginString=FIX.4.4
SessionQualifier=BCK
SocketConnectHost=<Backup>
SocketConnectPort=<Backup>

But with this configurations application trying to start both sessions. Is there any options in quickfix/n to set up behavior below:
Start only 1st session, if it's unavailable to connect (3 attempts to connect) try to start 2nd session (3 attempts to connect). If 2nd session unavailable to then stop.

Regards
Kononov Roman
Developer
BCS Technologies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180213/3927c377/attachment.html>


More information about the Quickfixn mailing list