Many flows to one

I have some sensors acquired via MQTT. These sensors have similar management, so I'll like to collect them on a common flow or sub-flow.
The data received from MQTT are asynchronous so they can arrive together.
I think an architecture similar to that in the figure.
immagine

What I'm not able to understand is what happens in case of simultaneous arrival of messages.

The other question is, can I share a sub-flow or a flow with other flows. I try to explain, every MQTT messages need a pre-management, that I want to develop on their own flow, before coming into a common operation.

Thanks for the help,
F.

Hi Rex. Messages will NEVER arrive at the same time.

So long as you are only adding/updating properties on the msg object then the messages passing through the function will all be unique and isolated.

Subflows have context so while not a problem, you'd be better off with a link-call node instead of subflow.

1 Like

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