即使删除的消息等于收到的消息,SQS大小也会增加 [英] SQS Size growing even though messages deleted is equal to messages received
本文介绍了即使删除的消息等于收到的消息,SQS大小也会增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果删除的消息数量等于收到的消息数量,那么SQS队列中消息数量增加的原因可能是什么?
What can be the reason for number of messages in a SQS queue increasing if the number of messaged deleted is equal to number of messages received?
推荐答案
来自适用于Amazon SQS的CloudWatch指标-Amazon Simple Queue Service :
-
NumberOfMessagesDeleted:
对于使用有效收据句柄的每个成功删除操作,Amazon SQS都会发出NumberOfMessagesDeleted
指标,包括重复删除。 -
NumberOfMessagesReceived:
调用ReceiveMessage $ c返回的消息数$ c>操作。
-
NumberOfMessagesSent:
添加到队列中的消息数。
NumberOfMessagesDeleted:
Amazon SQS emits theNumberOfMessagesDeleted
metric for every successful deletion operation that uses a valid receipt handle, including duplicate deletions.NumberOfMessagesReceived:
The number of messages returned by calls to theReceiveMessage
action.NumberOfMessagesSent:
The number of messages added to a queue.
或者,简单地说:
- 已发送是指发送到队列
- 已收到表示从队列中检索
- 已删除意味着已从队列中删除的队列
- Sent means sent to the queue
- Received means retrieved from the queue
- Deleted means removed from the queue
这篇关于即使删除的消息等于收到的消息,SQS大小也会增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文