Last active
January 13, 2017 11:03
-
-
Save jsrn/04cc61d5771fff9085a456bb256938df to your computer and use it in GitHub Desktop.
The World's Most Basic Load Balancing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URLS = ["https://a.b.c.d"] | |
PORTS = [80, 81, 82, 83, 84] | |
def random_endpoint | |
"#{URLS.sample}:#{PORTS.sample}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment