# 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:** 5

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [30 July 2024 14:05 UTC](https://discourse.nodered.org/t/super-simple-round-robin-router-implemented-in-a-function-node/89737/5 "2024-07-30T14:05:04Z")

</div>

Glad you found a low-code solution!

In the spirit of providing another (essentially) no-code way to route messages via a counter, I have also used [this technique](https://discourse.nodered.org/t/switch-node-jsonata-magic/12943/4) based on a `switch` node:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/96cb3b46dd43523c3380f6ce7ab22e4166ae94d1.png)

Of course, it doesn't provide the nice status message, but it's useful when you just need to send a message down a different path, say for a poor-man's load-balancer.

---

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