Pull messages

Retrieve a batch of messages from the queue for processing.