EasyNetQ.Management.Client icon indicating copy to clipboard operation
EasyNetQ.Management.Client copied to clipboard

Leverage pagination in GetQueuesAsync

Open SapientGuardian opened this issue 5 years ago • 0 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

SapientGuardian avatar Mar 22 '21 17:03 SapientGuardian