# How much is big is node-red

**URL:** https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950
**Category:** General
**Created:** [12 October 2022 21:22 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950 "2022-10-12T21:22:04Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![Sineos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sineos/32/3440_2.png) [@Sineos](https://discourse.nodered.org/u/Sineos)
#### Post date: [19 October 2022 08:08 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/21 "2022-10-19T08:08:29Z")

</div>

> [@hotNipi](#):
>
> if the msg contains some properties what are not needed for dashboard, those should be removed.

A lot of contrib and input nodes create very extensive messages, where in fact only one property might be needed for the given flow.  
I made it a habit to remove all properties I do not need but unfortunately this (AFAIK) always requires a function node. I'd wish that the change node has an option like "keep only"

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 October 2022 08:13 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/22 "2022-10-19T08:13:01Z")

</div>

> [@Sineos](#):
>
> A lot of contrib and input nodes create very extensive messages, where in fact only one property might be needed for the given flow.

Can you give some examples of that? For the problem with the dashboard all you need is a Change node Moving the property of interest into the payload. No function node required.

---

<div class="post-metadata">

### Author: ![Sineos](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sineos/32/3440_2.png) [@Sineos](https://discourse.nodered.org/u/Sineos)
#### Post date: [19 October 2022 08:40 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/23 "2022-10-19T08:40:32Z")

</div>

Consider such a message object:

> **Object**
>
> ```auto
> {
> "topic": "f0131f16.70b96",
> "messageId": "634fb6191aff1bcb2abb8f2f",
> "payload": [
> 0,
> 0,
> 927,
> 0
> ],
> "queueLengthByUnitId": {
> "unitId": 8,
> "queueLength": 0
> },
> "queueUnitId": 8,
> "unitId": 8,
> "modbusRequest": {
> "name": "PHMeter",
> "unitid": 8,
> "fc": 3,
> "address": 5,
> "quantity": 4,
> "emptyMsgOnFail": false,
> "keepMsgProperties": false,
> "messageId": "634fb6191aff1bcb2abb8f2f"
> },
> "responseBuffer": {
> "data": [
> 0,
> 0,
> 927,
> 0
> ],
> "buffer": [
> 0,
> 0,
> 0,
> 0,
> 3,
> 159,
> 0,
> 0
> ]
> },
> "_msgid": "1646851e47ad2658",
> "_event": "node:4c1510585faa8cb7",
> "originalPayload": [
> 0,
> 0,
> 927,
> 0
> ],
> "specification": {
> "options": {
> "byteSwap": [],
> "resultType": "value",
> "singleResult": true,
> "msgProperty": "value",
> "setTopic": true
> },
> "items": [
> {
> "type": "int16be",
> "name": "Temperature",
> "offset": 0,
> "length": 1,
> "offsetbit": 0,
> "scale": "/10",
> "mask": "",
> "id": 0,
> "scaler": {
> "operator": "/",
> "operand": 10
> },
> "value": 0
> },
> {
> "type": "int16be",
> "name": "PH",
> "offset": 4,
> "length": 1,
> "offsetbit": 0,
> "scale": "/100",
> "mask": "",
> "id": 1,
> "scaler": {
> "operator": "/",
> "operand": 100
> },
> "value": 9.27
> }
> ]
> },
> "values": [
> 0,
> 9.27
> ],
> "objectResults": {
> "Temperature": {
> "type": "int16be",
> "name": "Temperature",
> "offset": 0,
> "length": 1,
> "offsetbit": 0,
> "scale": "/10",
> "mask": "",
> "id": 0,
> "scaler": {
> "operator": "/",
> "operand": 10
> },
> "value": 0
> },
> "PH": {
> "type": "int16be",
> "name": "PH",
> "offset": 4,
> "length": 1,
> "offsetbit": 0,
> "scale": "/100",
> "mask": "",
> "id": 1,
> "scaler": {
> "operator": "/",
> "operand": 100
> },
> "value": 9.27
> }
> },
> "keyvalues": {
> "Temperature": 0,
> "PH": 9.27
> },
> "arrayResults": [
> {
> "type": "int16be",
> "name": "Temperature",
> "offset": 0,
> "length": 1,
> "offsetbit": 0,
> "scale": "/10",
> "mask": "",
> "id": 0,
> "scaler": {
> "operator": "/",
> "operand": 10
> },
> "value": 0
> },
> {
> "type": "int16be",
> "name": "PH",
> "offset": 4,
> "length": 1,
> "offsetbit": 0,
> "scale": "/100",
> "mask": "",
> "id": 1,
> "scaler": {
> "operator": "/",
> "operand": 100
> },
> "value": 9.27
> }
> ],
> "buffer": [
> 0,
> 0,
> 0,
> 0,
> 3,
> 159,
> 0,
> 0
> ],
> "value": [
> 0,
> 9.27
> ]
> }
> 
> ```

Of course I can just change the intended value to be msg.payload but I will still be dragging around all other properties throughout the entire flow.  
My habit is to move the intended value to payload and get rid of the rest. Makes debugging and understanding a flow much easier in my opinion. If it also has an impact on performance in the end, I can't tell.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 October 2022 08:48 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/24 "2022-10-19T08:48:02Z")

</div>

> [@Sineos](#):
>
> I will still be dragging around all other properties throughout the entire flow.

There is zero overhead in dragging the other properties around except where the flow is forked (multiple wires connected to one output). That is because the message is passed by reference, so effectively it just a pointer that is passed along the wires.

I agree that the example you show does have a lot of additional properties, but I think it is unusual in this. Even so, unless you are generating messages like this hundreds of times a second it is unlikely to have a measurable effect on performance.

---

<div class="post-metadata">

### Author: ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)
#### Post date: [19 October 2022 10:01 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/25 "2022-10-19T10:01:36Z")

</div>

If you were (presumably spending large resources) installing NR into high availability critical infrastructure surely you would be rolling your own Dashboard?

Yeah, yeah, don't call me Shirley.

---

<div class="post-metadata">

### Author: ![BLND](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BLND](https://discourse.nodered.org/u/BLND)
#### Post date: [19 October 2022 12:12 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/27 "2022-10-19T12:12:34Z")

</div>

so you mean it is difficult, do not you?

---

<div class="post-metadata">

### Author: ![BLND](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BLND](https://discourse.nodered.org/u/BLND)
#### Post date: [19 October 2022 12:18 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/28 "2022-10-19T12:18:06Z")

</div>

so your advice to me not doing this project by node red choosing another scada software, is´t it?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [19 October 2022 21:07 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/29 "2022-10-19T21:07:44Z")

</div>

> [@Bobo](#):
>
> If you were (presumably spending large resources) installing NR into high availability critical infrastructure surely you would be rolling your own Dashboard?

Perhaps using uibuilder 😉

---

<div class="post-metadata">

### Author: ![sniicker](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sniicker/32/56525_2.png) [@sniicker](https://discourse.nodered.org/u/sniicker)
#### Post date: [20 October 2022 07:08 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/30 "2022-10-20T07:08:06Z")

</div>

> [@BLND](#):
>
> so your advice to me not doing this project by node red choosing another scada software, is´t it?

no i wanted to say that a scada system is really expensive.

You can work many many month with Node RED to generate the same costs.

software costs vs personnel costs

In acceptance of your speech, I assume that you will complete the project in your working hours.

---

<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: [19 December 2022 07:08 UTC](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950/31 "2022-12-19T07:08:24Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/how-much-is-big-is-node-red/68950.md?page=1)
