[Quickfix-developers] Processing messages in batches
Brought to you by:
orenmnero
|
From: Goodman, J. <Jef...@cm...> - 2007-10-28 13:15:28
|
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? ***************************************************************************= ******** This communication, including any attachments, is for the exclusive use of = the intended recipient(s) and/or the intended recipient's designees and may= contain proprietary, confidential and/or privileged information. Any use,= retention or dissemination by a person other than the intended recipient i= s strictly prohibited. If you are not the intended recipient or designee, = please notify the sender immediately by return e-mail and delete/destroy al= l copies of this communication. Any opinions, conclusions or information herein not related to the official= business of Natixis Capital Markets shall be understood as neither given n= or endorsed by the company. |