# How to know used bandwith on messages sent to Azure

**URL:** <https://discourse.nodered.org/t/how-to-know-used-bandwith-on-messages-sent-to-azure/34118>\
**Category:** General\
**Created:** [12 October 2020 10:24 UTC](https://discourse.nodered.org/t/how-to-know-used-bandwith-on-messages-sent-to-azure/34118 "2020-10-12T10:24:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bioshock2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bioshock2k/32/24830_2.png) [@bioshock2k](https://discourse.nodered.org/u/bioshock2k)\
**Post date:** [12 October 2020 10:24 UTC](https://discourse.nodered.org/t/how-to-know-used-bandwith-on-messages-sent-to-azure/34118/1 "2020-10-12T10:24:18Z")

</div>

Hi,  
Im working on a flow that sends repetetive messages. I needed to know the bandwith off the process, any idea how to do it?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [12 October 2020 13:34 UTC](https://discourse.nodered.org/t/how-to-know-used-bandwith-on-messages-sent-to-azure/34118/2 "2020-10-12T13:34:56Z")

</div>

why not use a counter? you could store it as a flow variable and increment each time you send a message

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [12 October 2020 15:57 UTC](https://discourse.nodered.org/t/how-to-know-used-bandwith-on-messages-sent-to-azure/34118/3 "2020-10-12T15:57:33Z")

</div>

Hi @bioshock2k,

This kind of functionality is something that could be useful for other people also, e.g. to calculate the bandwidth of audio/video streams...

My [node-red-contrib-msg-speed](https://github.com/bartbutenaers/node-red-contrib-msg-speed#output-message) node can measure the number of messages per specified time interval.  
Suppose I would add some code to calculate also the size of each message, then I could add to my output messages:

- The _ **total size** _ of the messages that have been passed during the specified time interval.
- The _ **average size** _ per message during the specified time interval.

Then you could e.g. get the number of bytes per second.  
Could that be of any help to your, to solve your issue?

Of course you won't know the real bandwidth, since the amount of data in your requests to Azure would be much larger.

Bart

---

<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:** [11 December 2020 15:57 UTC](https://discourse.nodered.org/t/how-to-know-used-bandwith-on-messages-sent-to-azure/34118/4 "2020-12-11T15:57:42Z")

</div>

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