1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-29 23:20:03 +00:00

Output available instances and fallback URL to redis

Once a list of available URLs has been determined for a particular
service, the list is written as "service -> [list of instances]" to a
local redis connection. These can then be used in the greater routing
logic to pick a random instance from the list, or use a fallback
instance if none are determined to be available.
This commit is contained in:
Ben Busby 2021-10-22 17:15:40 -06:00
parent b0953f0777
commit 4949ae22bb
No known key found for this signature in database
GPG key ID: 339B7B7EB5333D14
5 changed files with 70 additions and 29 deletions

View file

@ -25,7 +25,8 @@ defmodule RouterExample.MixProject do
{:jason, "~> 1.1"},
{:plug_cowboy, "~> 2.0"},
{:poison, "~> 5.0"},
{:httpoison, "~> 1.8"}
{:httpoison, "~> 1.8"},
{:redix, "~> 1.1"}
]
end
end