title: Spring Boot RabbitMQ - How to make sure multiple consumers consume messages one at a time
body: <p>I'm using Spring Boot + RabbitMQ server and for one of my Queues I want my multiple consumers to consume the messages serially i.e.</p>
  
  <p><code>Expexted Behaviour
  consumer1: message1 xxxxxxxx message3 xxxxxxxx
  consumer2: xxxxxxxx message2 xxxxxxxx message4
  </code></p>
  
  <p>Right now I'm using the following to achieve exclusivity:</p>
  
  <p><code>@RabbitListener(queues = Constants.QUEUE_TOPIC, exclusive = true)</code></p>
  
  <p>But this only allows one active consumer at a time, so my functionality is not breaking but scalability is.</p>
  
  <p>Please suggest the correct way to do this. Thanks!</p>