【问题标题】:Is there a way to have the Average Service Time of a SQS queue?有没有办法获得 SQS 队列的平均服务时间?
【发布时间】:2016-08-04 16:49:26
【问题描述】:

在包含 SQS 队列的数据管道中,我们的交付时间很慢。所以我想知道消息在 SQS 位中花费了多少时间。

CloudWatch 只给我不太有用的指标:

ApproximateNumberOfMessagesNotVisible
ApproximateNumberOfMessagesVisible
NumberOfEmptyReceives
NumberOfMessagesDeleted
NumberOfMessagesReceived
NumberOfMessagesSent
SentMessageSize

目前没有拥塞,队列有 99.99% 的时间是空的,但不能保证每条消息都在队列中花费一小段时间。

是否有任何高级指标选项或任何外部工具或 Scala/Java 库来测量每个消息 ID 的Tconsume-Tproduce

【问题讨论】:

    标签: java scala message-queue amazon-sqs amazon-cloudwatch


    【解决方案1】:

    没有可以为您提供此信息的高级指标。

    在处理消息时,您必须添加逻辑来记录这些指标。 sqs 消息还有其他属性可以帮助您计算消息在删除之前在队列中花费的时间。

    消息上的 CreatedTimestamp、LastModifiedTimestamp 属性将允许您记录指标,然后您必须汇总这些指标。

    【讨论】:

    猜你喜欢
    • 2019-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-10
    • 2022-01-08
    • 1970-01-01
    • 1970-01-01
    • 2020-04-08
    相关资源
    最近更新 更多