0

I am reading this documentation about Amazon AWS SQS API. The documentation explain it is possible to list all my queues. However I was wondering whether there is a way to list all my queues which are not empty. Is it possible?

My current approach is to get all my queues and then I have to filter them by size. However it implies to perform many requests to the API. I would be pleased to remove those request from my app side.

1 Answer 1

3

I don't think you can filter by queues that are not empty

Your current approach of calling "ListQueues" and then "GetQueueAttributes" for each one is probably the best way to do it

Sign up to request clarification or add additional context in comments.

1 Comment

I think this is correct. Also worth noting, GetQueueAttributes is sort of eventually consistent, returning only an approximate (not necessarily authoritative) number of messages visible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.