本文介绍了在开发过程中从SQS删除消息的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
右键单击队列> configure queue
将Message Retention period更改为1分钟(可以将其设置为最短时间).
等待一段时间,所有消息消失.
Right click on queue > configure queue
Change Message Retention period to 1 minute (the minimum time it can be set to).
Wait a while for all the messages to disappear.
在开发过程中,我在Amazon SQS上生成了很多虚假消息.我正要编写一个微型应用程序以删除所有消息(在开发过程中我经常这样做).有人知道清除队列的工具吗?
During development, I'm generating a lot of bogus messages on my Amazon SQS. I was about to write a tiny app to delete all the messages (something I do frequently during development). Does anyone know of a tool to purge the queue?
推荐答案如果您不想编写脚本或删除队列.您可以更改队列配置:
If you don't want to write script or delete your queue. You can change the queue configuration:
我发现这种方法可以很好地删除队列中的所有邮件而不删除队列.
I found that this way works well for deleting all messages in a queue without deleting the queue.
更多推荐
在开发过程中从SQS删除消息的最佳方法
发布评论