Re: [Quickfix-developers] Dual CPUs and Performance
Brought to you by:
orenmnero
|
From: Dale W. <wil...@oc...> - 2005-07-12 22:26:16
|
Steve Bate wrote: >What happens when you run multiple QF engines in a process? I can >see where someone might want to do that if they want to accept >connections on multiple ports (in the same process) or have both >initiators and acceptors running in the same process (for example, >third party routing hub). > > You should be able to run two acceptors by configuring two separate sessions in the config file. Both acceptors will be sharing the same "engine". (I haven't tried this but in theory...) What I managed to do was get two complete copies of the quickfix library -- one statically linked into a DLL and the other statically linked into the EXE. If you look at Session.h, you'll see lots of static data items. As one example, two session registries is **NOT** better than one. ((I call this the Doubleton pattern -- maybe I'll publish a paper <grin>)) Dale -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |