# Super simple round-robin router implemented in a function node

**URL:** <https://discourse.nodered.org/t/super-simple-round-robin-router-implemented-in-a-function-node/89737>\
**Category:** Share Your Nodes\
**Tags:** function-node\
**Created:** [24 July 2024 19:46 UTC](https://discourse.nodered.org/t/super-simple-round-robin-router-implemented-in-a-function-node/89737 "2024-07-24T19:46:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 July 2024 20:26 UTC](https://discourse.nodered.org/t/super-simple-round-robin-router-implemented-in-a-function-node/89737/3 "2024-07-24T20:26:02Z")

</div>

If you are using MQTT you can also achieve this for free using shared topics.

> [@Redundant node-red instances plugged on AWS IOT CORE](https://discourse.nodered.org/t/redundant-node-red-instances-plugged-on-aws-iot-core/45856/2):
>
> In pretty sure you can use mqtt shared subscriptions anywhere with v5 mqtt broker. Just give it a go. Node-red 1 Subscribe to $share/group1/test Node-red 2 Subscribe to $share/group1/test Node-red 3 Publish to test You should only get a message to one or the other.

> **[MQTT Shared Subscriptions – MQTT 5 Essentials Part 7](https://www.hivemq.com/blog/mqtt5-essentials-part7-shared-subscriptions/#heading-mqtt-shared-subscriptions-mqtt-5-essentials-part-7)**
>
> Learn how to improve load balancing & fault tolerance using MQTT 5 Shared subscriptions that enable multiple MQTT clients to share a single subscription.

---

_[View the full topic](https://discourse.nodered.org/t/super-simple-round-robin-router-implemented-in-a-function-node/89737)._
