EasyNetQ/EasyNetQ.Management.Client

Leverage pagination in GetQueuesAsync

SapientGuardian opened this issue · 1 comments

I have several hundred queues in a VHost on AWS Managed RMQ version 3.8.6. When calling GetQueuesAsync, the library makes a call to /api/queues/myvhost, which fails intermittently with a 504. Other API calls for this VHost, and GetQueuesAsync for smaller VHosts on the same broker succeed.

While this is arguably a server-side issue, it seems unreasonable to expect that data for all queues on a broker could be returned in a single API call. I believe it would be sensible for the client to leverage pagination like the Management UI does. api/queues/myvhost?page=1&page_size=100&name=&use_regex=false&pagination=true