AWS Developer Tools Blog Polling Messages from a Amazon SQS Queue We’ve recently added a utility class to the AWS SDK for Ruby that makes it easy to poll an Amazon SQS queue for messages. poller = Aws::SQS::QueuePoller.new(queue_url) poller.poll do |msg| puts msg.body end Messages are automatically deleted from the queue at the end of the block. This tool supports receiving and deleting messages i
![Polling Messages from a Amazon SQS Queue | Amazon Web Services](https://cdn-ak-scissors.b.st-hatena.com/image/square/0fc257e8ac5c0a4234f0ec8727a86934bb55480e/height=288;version=1;width=512/https%3A%2F%2Fd2908q01vomqb2.cloudfront.net%2F827bfc458708f0b442009c9c9836f7e4b65557fb%2F2020%2F06%2F03%2FBlog-Post_thumbnail.png)