Subflow Question

I am building many subflows to share with other flows in Node-Red. What will happen if 2 or more flows call the same subflow at almost the same time? Will the flow data stay separate from the other flows calling the subflow or will the flow variables get all mixed up? I just want to make sure all flow data stays in the correct places without any mix-ups.

Hello,
Each time you use a subflow you made in your flow a new instance of that subflow is created when you deploy.
Those multiple instances act as separate entities and the variables of each instance exist in their own context.
So you can use the same subflow as many times as you want and the different occurrences won’t influence or even know of each other.

Johannes

That is exactly what I was hoping for! Thanks Johannes!

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