Posted on Leave a comment


Round Robin

This router iterates through all the routes in the router component in a specific order but it only routes to one of the routes each time it is executed. For example, it keeps track of the last route it selected for execution and will not execute the same route again consecutively.

Basically, this router works in a circular manner and whichever route executes first will not be executed in the next execution till all the other routes are executed at least once.

Round Robin component

Use Case :-

Below is the simple demo where the “first-logger” route will execute first and in the immediate next iteration,”second-logger” will be executed and this sequence will continue.


First-logger is executing

Second-logger is executing:-



Leave a Reply

Your email address will not be published. Required fields are marked *