RE: [Quickfix-developers] Dual CPUs and Performance
Brought to you by:
orenmnero
|
From: Steve B. <st...@te...> - 2005-07-12 22:50:10
|
> 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...) It looks like the acceptor reads its port number from the default section of the configuration file. If so, you'd be able to have any number of sessions defined for that acceptor as long as they connect to the same accept port. > 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>)) I can see how that might be a problem in C++. :-) Sometimes that's done intentionally in Java programs. For example, applications can be isolated from each other (including "singletons") by using separate class loaders for each application. Steve |