擅长:python、mysql、java
<p>不幸的是,SQS缺少一些我们在队列中经常期待的语义。没有任何通知或阻止“get”调用。</p>
<p>亚马逊相关的SNS/简单的通知服务可能对你的这项工作很有用。将工作添加到队列后,可以向已订阅的工作线程发送通知。</p>
<p>另见:</p>
<p><a href="http://aws.amazon.com/sns/" rel="nofollow noreferrer">http://aws.amazon.com/sns/</a></p>
<p><a href="https://stackoverflow.com/questions/2679024/best-practices-for-using-amazon-sqs-polling-the-queue">Best practices for using Amazon SQS - Polling the queue</a></p>