question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose `MessageCount` values in paged namespace queries

See original GitHub issue

Query/Question

It looks that the MessageCount values are available at the client-side when GetQueueAsync() is executed via Azure ServiceBus client.

Why is this not a Bug or a feature Request? This is a performance improvement. Currently MessageCount value for a queue is accessible via property on QueueRuntimeInfo class.

When querying for multiple MessageCount values in the namespace at once there are 1+n requests needed.

First, one to get a list of available queues in the namespace via

managementClient.GetQueuesAsync()

and later, n calls for each queue to get the QueueRuntimeInfo:

managementClient.GetQueueRuntimeInfoAsync()

Setup (please complete the following information if applicable):

  • OS: [e.g. iOS]
  • IDE : [e.g. IntelliJ]
  • Version of the Library used

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Query Added
  • Setup information Added

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
nemakamcommented, Dec 11, 2019

@tmasternak , sorry, but this needs further discussion internally and I’d like you to hold off on a new PR creation for this for now.

0reactions
tmasternakcommented, Mar 3, 2020

@nemakam I’ve opened a PR which proposes adding a new method to ManagementClient. I started off adding the MessageCount to the QueueDescription but realized that it’s designed with library client modifications in mind i.e. all property setters are public. Adding a new MessageCount property could lead to confusion as it’s a read-only value contrary to all the other values.

As a result, I’ve added a dedicated method similar to GetQueuesAsync that returns queue runtime information in pages. Please have a look.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Investigate Data Issues for PBI Report #879 - Azure ...
Expose MessageCount values in paged namespace queries azure-sdk-for-net#8434. No comments by assignees. So there is one issue.
Read more >
Build reusable UI components with Blazor
Learn how to build reusable UI components with Blazor and how they compare to ASP.NET Web Forms controls.
Read more >
Caché Classes | Caché Programming Orientation Guide
This parameter has a string value. VariableMessage and MessageCount are properties. The item after As indicates the types for these properties.
Read more >
Configuring AMQ Broker
When a temporary queue is created and a temporary queue namespace exists, the broker prepends the temporary-queue-namespace value and the ...
Read more >
Pulsar metrics
Namespace metrics are only exposed when exposeTopicLevelMetricsInPrometheus is set to false . All the namespace metrics are labeled with the following labels:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found