Re: [Quickfix-developers] ThreadedSocketInitiator/ SynchronizedApplication vs SocketInitiator/ Sync
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2007-08-16 16:45:40
|
#2 makes no sense. If you don't have multiple threads, you don't need to synchronize. #1 I generally wouldn't recommend unless you are converting from a SocketInitiator/Acceptor to the threaded one, and need protection until you come up with a better synchronization strategy, or you truly are using shared resources in all your callbacks. Choosing between #3 and #4 depends on the type of traffic you will be handling. For most things either will work just fine, depends on the number of sessions/type of traffic you will be handling. --oren On Aug 16, 2007, at 5:41 AM, Naveed Ali wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hello All, > > I am using an initiator (ThreadedSocketInitiator/Application) to > connect to an Acceptor (ThreadedSocketAcceptor/Application). > This acceptor accepts connection from various initiators. > The initiator just connects to this acceptor. > > What can be a better alternate if any in terms of the application > architecture is concerned...? > > For the Initiator > 1. Should I use ThreadedSocketInitiator and SynchronizedApplication..? > 2. Should I use SocketInitiator and SynchronizedApplication..? > 3. Should I use SocketInitiator and Application..? > 4. Should I use ThreadedSocketInitiator and Application..? > > For the Acceptor > 1. Should I use ThreadedSocketAcceptor and SynchronizedApplication..? > 2. Should I use SocketAcceptor and SynchronizedApplication..? > 3. Should I use SocketAcceptor and Application..? > 4. Should I use ThreadedSocketAcceptor and Application..? > > > Thanks in Advance -Naveed > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |