title: SQS queue parallel processing of messages using sqs-consumer nodejs
body: <p>i tried using aws SQS for receiving messages from SQS in a batch of 5, and wanted to make 5 different child process so that each run simultaneously and when one of them finish the job it turns back to the parent process and then parent process can call another job from aws SQS . Similarly , this will make 5 jobs currently running on the server </p>
  
  <p>The code written is :</p>
  
  <pre><code>const app = Consumer.create({
    queueUrl: 'QUEUE_URL',
    batchSize: 5,
    region:"eu-west-1",
    visibilityTimeout : 300,
    handleMessage: (message, done) =&gt; {
  
      for(var i in data.Messages)
      {
         console.log(JSON.parse(data.Messages[i].Body));
         done();       
      }
    },
    sqs: new AWS.SQS()
  
  });
  
  app.on('error', (err) =&gt; {
    console.log(err.message);
  });
  
  app.start();
  </code></pre>
  
  <p>Here in the handleMessage() function how can multiple child process for each message can be created and then report back to one parent process  when one child process has finished the execution so that parent process can call for other message from the aws SQS ?</p>
  
  <p>Thanks guys</p>