# Delay node set to rate limit omits messages unexpectedly in case of bursts

**URL:** <https://discourse.nodered.org/t/delay-node-set-to-rate-limit-omits-messages-unexpectedly-in-case-of-bursts/76503>\
**Category:** General\
**Created:** [13 March 2023 09:47 UTC](https://discourse.nodered.org/t/delay-node-set-to-rate-limit-omits-messages-unexpectedly-in-case-of-bursts/76503 "2023-03-13T09:47:45Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![cameo69](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cameo69/32/66593_2.png) [@cameo69](https://discourse.nodered.org/u/cameo69)\
**Post date:** [16 March 2023 15:38 UTC](https://discourse.nodered.org/t/delay-node-set-to-rate-limit-omits-messages-unexpectedly-in-case-of-bursts/76503/21 "2023-03-16T15:38:50Z")

</div>

> [@Sean-McG](#):
>
> Oh no its started again 🤣 🤣 🤣

Sorry? 🙂

@dceejay, well, as a smallest common denominator, we could agree that in all cases a rate limit is being obeyed 🙂

On a different but related note, is there a good tutorial or starting point that helps me diving into automated testing of node modules? Is automated testing a thing for node-red nodes?

Could set something up in node-red, but maybe there is a better way? Directly on gitHub maybe?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [16 March 2023 16:03 UTC](https://discourse.nodered.org/t/delay-node-set-to-rate-limit-omits-messages-unexpectedly-in-case-of-bursts/76503/22 "2023-03-16T16:03:26Z")

</div>

> [@cameo69](#):
>
> we could agree

we certainly can ! - I have no problem with your node existing and it being enhanced with extra modes - i was just pointing out that the existing node can do something similar that may be adequate for a set of use cases.

hmm tutorial re testing... err not really... we do use grunt, mocha, and the node red test helper for testing (most of) the core and extra nodes - eg [https://github.com/node-red/node-red/blob/master/test/nodes/core/function/89-delay\_spec.js](https://github.com/node-red/node-red/blob/master/test/nodes/core/function/89-delay_spec.js) for the core delay node... or [https://github.com/node-red/node-red-nodes/blob/master/test/function/smooth/17-smooth\_spec.js](https://github.com/node-red/node-red-nodes/blob/master/test/function/smooth/17-smooth_spec.js) for the smooth node

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [16 March 2023 22:17 UTC](https://discourse.nodered.org/t/delay-node-set-to-rate-limit-omits-messages-unexpectedly-in-case-of-bursts/76503/23 "2023-03-16T22:17:02Z")

</div>

> [@cameo69](#):
>
> Not very intuitive... good to know, but not straight forward.

There isn't much about queueing theory (where this discussion may be going) that is intuitive or straightforward. I'm happy to continue the conversation by DM.

---

<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:** [12 April 2023 10:33 UTC](https://discourse.nodered.org/t/delay-node-set-to-rate-limit-omits-messages-unexpectedly-in-case-of-bursts/76503/24 "2023-04-12T10:33:46Z")

</div>

Closed on 12 April 2023 10:33 UTC

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

[Previous page](https://discourse.nodered.org/t/delay-node-set-to-rate-limit-omits-messages-unexpectedly-in-case-of-bursts/76503.md?page=1)
