Re: [Quickfix-developers] Processing messages in batches
Brought to you by:
orenmnero
|
From: Djalma R. d. S. F. <drs...@gm...> - 2007-10-30 13:29:27
|
Hi Jeff, I believe that you need to provide your own persistence mechanism to guarantee this kind of transaction you want. There are several solutions, you can use a flat file, a RDBMS, mqseries, activeMQ or whatever. ThreadedSocket classes are useful only if your application creates more than one FIX connection. In quickfix you have only two choices: 1 thread to manage all sessions activities or 1-thread-per-connection. Djalma On 10/23/07, jgoodman999 <jef...@cm...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > I have an application right now that has a class that implements Application > to process all the messages. It processes one message at a time, stores in > our database and sends events to the user's front end of the change. The > problem is that if I have hundreds of messages at once coming in, then I am > sending notifications very quickly and its slowing the front end down. I > would like to read a message, insert, read a message, insert, etc until I > receive 50 messages or so, then commit and send all events at once. The > problem is once I am done processing one message and return, it is gone so > if the server crashes somewhere before 50, The messages that have not been > committed will be gone and wont be resent on startup. Any suggestions. > Also, It seems that Quickfix must be single threaded since we must process > the messages in the order they arrive, correct? So what benefit does the > multithreaded socket have? > -- > View this message in context: http://www.nabble.com/Processing-messages-in-batches-tf4679528.html#a13370932 > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > 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 > |