title: How can I make the nodejs server listen to AWS SQS?
body: <p>before I explain the problem in details, I tell you my current approach.</p>
  
  <p>I have a js script that run setInterval().
  and each interval, I will call SQS to get the message from queue.  If there is a message, then I process it.<br>
  so, it will run infinitely until I kill the process.</p>
  
  <p>I have also built a node server before (using the example in the nodejs.org )</p>
  
  <p>So, what I'm wondering is,.. instead of having the setInterval to run periodically.  Is there a way that if There is a new message in the SQS, then it will fire an event and process the message?</p>