简体   繁体   English

AWS SQS API:列出非空队列

[英]AWS SQS API: List non empty queues

I am reading this documentation about Amazon AWS SQS API . 我正在阅读有关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. 但是,这意味着要向API执行许多请求。 I would be pleased to remove those request from my app side. 我很乐意从我的应用程序一侧删除这些请求。

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 您当前为每个调用“ ListQueues”然后“ GetQueueAttributes”的方法可能是最好的方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM