I have a question regarding processing from a message queue in spring - to which i am very new. I am trying to increase throughput of an application which reads from a queeue and writes to a database live financial information. The problem is messages have to remain ordered, ie first in first out. This means my original approach of increasing the number of concurrent consumers is not viable as there is potentially the case where ordering is lost.
Changing the concurrent consumers for 1 to 5 meant i could process 10,000 and save a good amount of time. (approx 20 mins)
Being fairly new to Spring and being a graduate developer (in my first year) i am unsure what alternatives there are. Spring batch is something that has cropped up but, because it is finiancial information trades need to be processed from the queue as soon as possible so I cant wait for a batch of 500 to fill up for example.
Please could someone suggest what approaches are viable for this type of scenario using spring?
Thanks