# Flow optimisation - kind of - which way is better?

**URL:** <https://discourse.nodered.org/t/flow-optimisation-kind-of-which-way-is-better/56420>\
**Category:** General\
**Created:** [10 January 2022 20:20 UTC](https://discourse.nodered.org/t/flow-optimisation-kind-of-which-way-is-better/56420 "2022-01-10T20:20:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [10 January 2022 20:20 UTC](https://discourse.nodered.org/t/flow-optimisation-kind-of-which-way-is-better/56420/1 "2022-01-10T20:20:26Z")

</div>

Maybe along the same vein as a recent question about `MQTT` nodes and the best way to do something.

I am getting these weird messages - again. ☹  
Daily at about 05:00.

The only thing that happens at that time is the machine's check how full their USB stick is.

This is done/triggered by a signal that happens at mid-night and a 5 hour delay.

So my question is this:

Is it _better_ to have a simple `NEW DAY` signal that a lot of things use and for this routine, add a 5 hour delay.

OR

Just have a node (be it `inject` or `cronplus`) that makes a message at 05:00 daily?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 January 2022 20:26 UTC](https://discourse.nodered.org/t/flow-optimisation-kind-of-which-way-is-better/56420/2 "2022-01-10T20:26:36Z")

</div>

If your device restarts anywhere between 00:00:01 → 04:59:59 your 5hr delay will not be triggered.

Better off using a schedule for 5am (be that an inject, cronplus or other)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [10 January 2022 20:28 UTC](https://discourse.nodered.org/t/flow-optimisation-kind-of-which-way-is-better/56420/3 "2022-01-10T20:28:00Z")

</div>

Thanks.

I'll go and apply it now.

---

<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:** [24 January 2022 20:28 UTC](https://discourse.nodered.org/t/flow-optimisation-kind-of-which-way-is-better/56420/4 "2022-01-24T20:28:48Z")

</div>

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