We are using azure service bus queues for posting messages. We are pushing message in queue using async functions so that we get maximum throughput.
Later these messages can be picked up by worker role for processing it. We would require strict order of processing messages. But, since we pushed messages async into queue, there is no order followed in queue.
I would require some sort of algorithm/design pattern which allow us to:
- Do sequential processing of messages even if there are not in order inside queue.
- it should allow us to push messages in queue asynchronously, i.e. not sacrificing queue throughput.