title: spring rabbitmq - consume multiple messages at the same time
body: <p>I'm using <strong>RabbitMQ</strong> in my spring boot application in this way:</p>
  <p><strong>Sender:</strong></p>
  <pre><code>rabbitTemplate.convertAndSend(&quot;exchange&quot;, &quot;routingKey&quot;, &quot;Message Text&quot;);
  </code></pre>
  <p><strong>Listener:</strong></p>
  <pre><code>@RabbitListener(queues = &quot;queueName&quot;)
  public void receive(String message) {
      System.out.println(&quot;start&quot;);  
      //send an http request that takes for example 4 seconds 
      System.out.println(&quot;end&quot;);  
  }
  </code></pre>
  <p>With above codes, when application executes sender part, <code>receive</code> method invoked. My problem is <strong>while <code>receive</code> method is processing a message, if sender part put another message into queue, the method does not proccess new message</strong> and so second <code>start</code> word wont be printed until <code>end</code> word of previous message. In the other words, <strong>I want to know, how a message listener can proccess multiple messages at a time</strong> I don't know what is the problem.</p>