I have a situation like this:
One single Producer executes many DB queries - the results are sent as messages and arrive to the queue of the single consumer (messages arrive with no special order )
On the other side - a single consumer reads these messages and wants to start processing the messages only when all messages arrived.
What is the best way to solve this kind of a problem?