Problem:
- I Receive messages(say orders) on a queue in a particular sequence(FIFO)
- I have competing consumers on the queue
- To further add to the complexity, the consumer might be interested in only specific versions of the order depending on its state.(Say version1,version 2 and version5)
- The order version number is available on the order, but cannot be used for sequencing since my listener might not be interested in all the versions(The consumer might be interested only in versions Say version1,version 2 and version5)
How do i ensure that i process the messages across the consumers in the order i received them?