# Node-RED in a large IoT project based on RabbitMQ

**URL:** <https://discourse.nodered.org/t/node-red-in-a-large-iot-project-based-on-rabbitmq/86417>\
**Category:** General\
**Tags:** docker, function-node\
**Created:** [14 March 2024 00:09 UTC](https://discourse.nodered.org/t/node-red-in-a-large-iot-project-based-on-rabbitmq/86417 "2024-03-14T00:09:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nioureddine](https://avatars.discourse-cdn.com/v4/letter/n/8e8cbc/32.png) [@nioureddine](https://discourse.nodered.org/u/nioureddine)\
**Post date:** [14 March 2024 00:09 UTC](https://discourse.nodered.org/t/node-red-in-a-large-iot-project-based-on-rabbitmq/86417/1 "2024-03-14T00:09:27Z")

</div>

Good evening everyone, I hope you are all doing well. I've encountered an issue with Node-RED. I've been running Node-RED in a terminal or CMD, but the terminal occasionally freezes, which poses a significant problem for data collection. Would using Docker to run the Node-RED server solve this problem or not?

Additionally, I have another issue. I've used a RabbitMQ node. I've installed a local RabbitMQ server to receive data sent by Node-RED. The problem is as follows: when I send a frame containing the status of a pump, it only appears once in the debugger before Node-RabbitMQ. However, in the RabbitMQ server, we receive two frames, indicating a duplication of the frame. Can anyone help me with this issue?  
 ![mq](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/6/164e57b1e2e367dd08ef2d1d8cb47fff57e33298.png)

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [14 March 2024 02:25 UTC](https://discourse.nodered.org/t/node-red-in-a-large-iot-project-based-on-rabbitmq/86417/2 "2024-03-14T02:25:43Z")

</div>

OK a couple of things

1. Why would you try and run node red from the commandline - thats just asking for trouble.

If it is under windows there are a number of ways to turn it into a service - but longer term a linux platform seems to be a hell of a lot more stable

1. Is there a specific project need that dictates RabbitMQ rather than the more widely used Mosquitto ?

2. I would usually use MQTT explorer to track the topics on the Mosquitto server and that would then let me track down what was going on with duplicated messages

I typically put all of my MQTT subs and pubs on a single page and then have link nodes to them as required - this gives me a logical place to go to troubleshoot issues as well as a single point to make changes etc.

Craig

---

<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:** [14 March 2024 08:08 UTC](https://discourse.nodered.org/t/node-red-in-a-large-iot-project-based-on-rabbitmq/86417/3 "2024-03-14T08:08:40Z")

</div>

> [@craigcurtin](#):
>
> 1. Why would you try and run node red from the commandline - thats just asking for trouble.

Just to say - I have run all my NR instances using a script to launch them in a terminal. It lets me see what;s going on without having to dig into logs.

I don't think doing this has lead to any trouble 🙂

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [15 March 2024 02:42 UTC](https://discourse.nodered.org/t/node-red-in-a-large-iot-project-based-on-rabbitmq/86417/4 "2024-03-15T02:42:03Z")

</div>

I get the impression from his post that he is using it in some business process - so the normal recommendation there would be to run it as a service - usually on something headless

Craig

---

<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:** [13 June 2024 02:42 UTC](https://discourse.nodered.org/t/node-red-in-a-large-iot-project-based-on-rabbitmq/86417/5 "2024-06-13T02:42:51Z")

</div>

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