# Communication between node-red servers

**URL:** <https://discourse.nodered.org/t/communication-between-node-red-servers/1727>\
**Category:** General\
**Created:** [21 July 2018 17:02 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727 "2018-07-21T17:02:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmacro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmacro/32/1023_2.png) [@drmacro](https://discourse.nodered.org/u/drmacro)\
**Post date:** [21 July 2018 17:02 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/1 "2018-07-21T17:02:52Z")

</div>

I plan to have multiple node-red servers running. There will be, most likely, a main server that needs to collect data from flows running on the other servers.

Any pointers to reading on setting up such a thing?

Or, hints, etc.?

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [21 July 2018 18:03 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/2 "2018-07-21T18:03:05Z")

</div>

What will the servers be doing?

---

<div class="post-metadata">

**Author:** ![drmacro](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmacro/32/1023_2.png) [@drmacro](https://discourse.nodered.org/u/drmacro)\
**Post date:** [21 July 2018 18:09 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/3 "2018-07-21T18:09:19Z")

</div>

typically things like providing data on my solar hot water system.

But other things like home sub-systems control and monitoring.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 July 2018 18:29 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/4 "2018-07-21T18:29:52Z")

</div>

Use MQTT to send info back and forth. Here is a link to a description of MQTT [https://www.hivemq.com/mqtt-essentials/](https://www.hivemq.com/mqtt-essentials/)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [21 July 2018 20:43 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/5 "2018-07-21T20:43:24Z")

</div>

> [@zenofmud](#):
>
> Use MQTT to send info back and forth

+1  
All my Pi running Node-RED use MQTT to pass info

---

<div class="post-metadata">

**Author:** ![michaelblight](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/michaelblight/32/445_2.png) [@michaelblight](https://discourse.nodered.org/u/michaelblight)\
**Post date:** [22 July 2018 13:41 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/6 "2018-07-22T13:41:40Z")

</div>

Definitely MQTT. I have 3 Node-red installs (Ubuntu, Pi3, Bluemix), and they all talk via MQTT (Mosquitto), as do some of my other home-control devices. It works flawlessly publishing JSON (as strings) - I'm not sure how easy it would be if you had binary content coming from your devices.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [15 April 2020 14:01 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/7 "2020-04-15T14:01:04Z")

</div>

10 posts were split to a new topic: [Linking 2 or more instances on a local network](https://discourse.nodered.org/t/linking-2-or-more-instances-on-a-local-network/24879)

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [15 April 2020 14:02 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727/8 "2020-04-15T14:02:08Z")

</div>


