Amazon Simple Queue Service (SQS) has introduced two new metrics on Amazon CloudWatch to enhance visibility into the usage of FIFO queues. This move aims to provide SQS customers with improved insights into their FIFO usage. The new metrics include the NumberOfDeduplicatedSentMessages, which measures the number of messages sent to a queue and deduplicated. This metric is valuable for identifying duplicate message issues from producers to the SQS FIFO queue.
The second new metric is the ApproximateNumberOfGroupsWithInflightMessages, which calculates the approximate number of message groups with in-flight messages. A message is considered in-flight once a consumer receives it from a queue but it has not yet been removed from the queue. This metric assists in troubleshooting and optimizing the performance of FIFO queues by suggesting actions such as increasing FIFO message groups or scaling consumers.
These metrics can be accessed on a per-queue basis through both the SQS and CloudWatch consoles. They are available in all Amazon Web Services (AWS) Regions where SQS operates. Customers looking for more detailed information on these metrics can refer to the SQS Metrics Documentation for further guidance. This enhancement offers a more comprehensive view of FIFO queue usage and helps customers better manage and scale their microservices, distributed systems, and serverless applications effectively.
Article Source
https://aws.amazon.com/about-aws/whats-new/2024/07/amazon-sqs-cloudwatch-metrics-fifo-queues