# Streaming realtime data between nodes?

**URL:** <https://discourse.nodered.org/t/streaming-realtime-data-between-nodes/51098>\
**Category:** Dashboard\
**Created:** [16 September 2021 12:11 UTC](https://discourse.nodered.org/t/streaming-realtime-data-between-nodes/51098 "2021-09-16T12:11:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kakyoism](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kakyoism/32/46283_2.png) [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Post date:** [16 September 2021 12:11 UTC](https://discourse.nodered.org/t/streaming-realtime-data-between-nodes/51098/1 "2021-09-16T12:11:48Z")

</div>

When looking at the custom node sample code, I noticed that the node output is done via

```auto
node.send(msg)

```

This seems to indicate a fire-and-forget style of unary message.  
Would it be possible to stream continuous data between nodes so that they form some kind of realtime processing chain on time-series data, for example?

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [16 September 2021 13:55 UTC](https://discourse.nodered.org/t/streaming-realtime-data-between-nodes/51098/2 "2021-09-16T13:55:57Z")

</div>

That is very interesting. If you are familiar with node.js and piping data, then in your custom node you could use nodered’s send(msg) to pass a reference of a readable/writable stream to your other custom node. The receiving node can handle that msg and use the referenced stream and set up its data reading.

Some might consider this to be an anti-pattern for node-red, but it might be more performant for high volumes of buffer data.

---

<div class="post-metadata">

**Author:** ![davidz](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@davidz](https://discourse.nodered.org/u/davidz)\
**Post date:** [16 September 2021 16:38 UTC](https://discourse.nodered.org/t/streaming-realtime-data-between-nodes/51098/3 "2021-09-16T16:38:27Z")

</div>

What kind of real-time processing are you looking for?  
For basic real-time processing, you can use "Smooth" node.  
There are also some more advanced real-time processing nodes such as the "statistics" node depending on what you are looking for.  
If you are writing your own nodes, then you may take a look at how they implement the real-time processing.

---

<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:** [16 October 2021 16:39 UTC](https://discourse.nodered.org/t/streaming-realtime-data-between-nodes/51098/4 "2021-10-16T16:39:19Z")

</div>

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