title: Amount parallel processing Simple Queue Service (SQS)
body: <p>I am using Spring Cloud to consume Simple Queue Service (SQS). I have the following configurations for parallel processing:</p>
  
  <pre><code>@Bean
  public SimpleAsyncTaskExecutor simpleAsyncTaskExecutor() {
      SimpleAsyncTaskExecutor simpleAsyncTaskExecutor = new SimpleAsyncTaskExecutor();
      simpleAsyncTaskExecutor.setConcurrencyLimit(50);
      return simpleAsyncTaskExecutor;
  }
  
  @Bean
  public SimpleMessageListenerContainerFactory simpleMessageListenerContainerFactory(
          SimpleAsyncTaskExecutor simpleAsyncTaskExecutor) {
  
      SimpleMessageListenerContainerFactory factory = new SimpleMessageListenerContainerFactory();
      factory.setAutoStartup(true);
      factory.setTaskExecutor(simpleAsyncTaskExecutor);
      factory.setWaitTimeOut(20);
      factory.setMaxNumberOfMessages(10);
  
      return factory;
  }
  </code></pre>
  
  <p>I need to process 50 messages in 50 threads (configuration in the bean SimpleAsyncTaskExecutor), but is processing only 10 messages in parallel (maxNumberOfMessages returned from SQS)</p>
  
  <p>How can I process 50 messages instead 10?</p>