title: ActiveMQ - Cost of creating temporary queues
body: <p>I would like to use queues dynamically generated in ActiveMQ to serialize the handling of events generated by multiple sources.</p>
  
  <p>I need this to be sure that updates on the same record are never in conflicts.</p>
  
  <p>The problem is that I need a different queue for each set of updates that relate to the same record.</p>
  
  <p>There could be in theory millions of records and, of course, I do not want to create millions of queues.</p>
  
  <p>Ideally, a queue should be created when necessary and destroyed when all the updates are completed.</p>
  
  <p>The events that fire the updates are asynchronous but are still correlated. I know that when something happens, several events will be fired in the same time.
  It is practically a small burst of asynchronous but correlated updates.
  After some time, the queue generated could be deleted.</p>
  
  <p>I understand that there is a cost in creating and deleting queues, but am I right thinking that the cost of generated and deleting these queues with a rate that, during a peak, won't be higher than a few queues per seconds, won't create performance issues ?</p>