title: Node.JS cluster module with aws lambda function
body: <p>Is it possible to use the cluster module in lambda functions?
  I tried implementing the message pattern but I'm still not receiving the message sent by the children. The for loop correctly loops through the cluster workers but never finds a message.</p>
  <pre><code>'use strict';
  
  var cluster = require('cluster');  
  var http    = require('http');  
  var os      = require('os');
  
  var numCPUs = os.cpus().length;
  
  console.log('Number of Cores : ', numCPUs);
  
  exports.test = (event, context, callback) =&gt; {
      if (cluster.isMaster) {
          for (var i = 0; i &lt; numCPUs; ++i) {
              cluster.fork();
          }
  
          for (const id in cluster.workers) {
              cluster.workers[id].on('message', messageHandler);
          }
      } else {
          process.send('running');
      }
  };
   
  
  function messageHandler(msg) {
      console.log(msg);
  }
  </code></pre>