Resources Required to Process Messages

To help you estimate the amount of resources needed to process your queued messages, Amazon SQS can provide you with an approximate number of messages in a queue.

[Important]Important

Because of the distributed architecture of SQS, the result is not an exact count of the number of messages in a queue. In most cases it should be close to the actual number of messages in the queue, but you should not rely on the count being precise.

The following table lists the API action to use.

To do this... Use this action

Get the approximate number of messages in the queue

GetQueueAttributes