# Flow optimization question

**URL:** https://discourse.nodered.org/t/flow-optimization-question/99130
**Category:** General
**Created:** [22 September 2025 12:19 UTC](https://discourse.nodered.org/t/flow-optimization-question/99130 "2025-09-22T12:19:36Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![Semmu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/semmu/32/31164_2.png) [@Semmu](https://discourse.nodered.org/u/Semmu)
#### Post date: [24 September 2025 19:16 UTC](https://discourse.nodered.org/t/flow-optimization-question/99130/14 "2025-09-24T19:16:16Z")

</div>

I would suggest to only optimize anything when it is [needed](https://www.laws-of-software.com/laws/knuth/) (either because of performance issues, or because the current system is hard to work with).

If your server can deal with the current architecture and there is enough network bandwidth, I would not complicate my life with manual data synchronization, global variables, single network call, etc., because the end results seems much harder to work with and easier to mess up / introduce bugs.

But since you mentioned each machine has a dedicated flow, I would rather try to simplify that (just like in programming: [DRY principle](https://en.wikipedia.org/wiki/Don't_repeat_yourself)) and implement the generic flow only once and call it with different parameters via link in/out+call nodes.

Also don't forget to set the default context to [persistent file storage.](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115)

---

_[View the full topic](https://discourse.nodered.org/t/flow-optimization-question/99130)._
