# Able to know how many messages are needing to be processed?

**URL:** https://discourse.nodered.org/t/able-to-know-how-many-messages-are-needing-to-be-processed/84039
**Category:** General
**Created:** [26 December 2023 14:23 UTC](https://discourse.nodered.org/t/able-to-know-how-many-messages-are-needing-to-be-processed/84039 "2023-12-26T14:23:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fatpanda](https://avatars.discourse-cdn.com/v4/letter/f/b5ac83/32.png) [@fatpanda](https://discourse.nodered.org/u/fatpanda)
#### Post date: [26 December 2023 14:23 UTC](https://discourse.nodered.org/t/able-to-know-how-many-messages-are-needing-to-be-processed/84039/1 "2023-12-26T14:23:27Z")

</div>

Hi,

I built a flow processing incoming syslog messages that did fine until the servers sending the messages had some legit problems and sent a lot more messages in a short period.  
My flow clearly started to get backed up and was processing messages that were several minutes old.

So my question is: is there any way to query NR structures to see how many messages are needing to be processed?  
Even if I cant tell the destination port or even if it's TCP/UDP, it'd be very useful to know if there's a general queue count I could query.

I know there have been several queue nodes developed that could be an alternate solution, but i was wondering more about a built in method first.

Thanks!

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [27 December 2023 13:18 UTC](https://discourse.nodered.org/t/able-to-know-how-many-messages-are-needing-to-be-processed/84039/2 "2023-12-27T13:18:59Z")

</div>

> [@fatpanda](#):
>
> is there any way to query NR structures to see how many messages are needing to be processed?

Not to my knowledge.

> [@fatpanda](#):
>
> it'd be very useful to know if there's a general queue count I could query.

Not quite the same, and probably very hacky but this will output the current message Q length

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/56aebb75705c3d231e511da82daf3bbfd6aa12c1.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/5/75ca8592c2bcbfafb0ca5a9ffe999e73f7704e5d.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [25 February 2024 13:19 UTC](https://discourse.nodered.org/t/able-to-know-how-many-messages-are-needing-to-be-processed/84039/3 "2024-02-25T13:19:56Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
