title: How to improve message processing with large queues?
body: <p>I am trying to use Spring JMS and ActiveMQ to process a large number of messages. The context of the problem is the following:
  Each customer produces a set of messages that are added to the queue. The messages are added to the queue with the customer id as parameter.</p>
  
  <p>In one case, customer A can add 10k messages to the queue, while customer B only adds 100 messages to that same queue. My issue is customer B needs to wait until all the 10k messages have finished processing before its 100 messages are processed. </p>
  
  <p>Is there a way to process some of messages of customer A and some of the messages of customer B at the same time? I know there is the option to set a higher priority on the messages from customer B, but that does not solve the issue when there is more multiple customers. The customer with the more messages will fill-up the queue while the others will have to wait.</p>
  
  <p>I would appreciate if you could provide some help or advice.</p>