在开发过程中从SQS删除消息的最佳方法 [英] Best way to delete messages from SQS during development

查看:197
本文介绍了在开发过程中从SQS删除消息的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发过程中,我在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:

  1. 右键单击队列> configure queue
  2. Message Retention period更改为1分钟(可以将其设置为最短时间).
  3. 等待一段时间,所有消息消失.
  1. Right click on queue > configure queue
  2. Change Message Retention period to 1 minute (the minimum time it can be set to).
  3. Wait a while for all the messages to disappear.

我发现这种方法可以很好地删除队列中的所有邮件而不删除队列.

I found that this way works well for deleting all messages in a queue without deleting the queue.

这篇关于在开发过程中从SQS删除消息的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆