Grokking System Design Fundamentals
Ask Author
Back to course home

0% completed

Vote For New Content
Why choose Random over Round Robin or vice versa?

reagankm

Jan 5, 2024

They have the same pros and cons in the list provided here. I had to look up on the internet to try and find a reason to prefer one over the other and it said the random algorithm can be better for security since bad actors don't have a predictable sequence they can use for targeting specific servers.

It might be good to add some mention like this to the list of pros for Random. Or, if my info is false, then add some other descriptor to explain why these algorithms suit different needs.

6

0

Comments
Comments
Design Gurus
Design Gurus2 years ago

This is a good suggestion.

We have added this to Round Robin and Random load balancing algorithms.

S
Shishir 2 years ago

Security systems that rely on detecting anomalies or implementing rate limiting (e.g., to mitigate DDoS attacks) might find it slightly more challenging to identify malicious patterns if a Random algorithm is used, due to the inherent unpredictability in request distr...

On this page

  1. Round Robin

Use Cases

  1. Least Connections

Use Cases

Comparison to Round Robin

  1. Weighted Round Robin

Pros

Cons

Use Cases

  1. Weighted Least Connections

Pros

Cons

Use Cases

  1. IP Hash

Example

Pros

Cons

Use Cases

  1. Least Response Time

How Least Response Time Load Balancing Works

Pros

Cons

Use Cases

  1. Random

Pros

Cons

Use Cases

  1. Least Bandwidth

Pros

Cons

Use Cases

  1. Custom Load

How Custom Load Load Balancing Works

Pros

Cons

Use Cases