summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorBen Busby <noreply+git@benbusby.com>2021-10-22 17:15:40 -0600
committerBen Busby <noreply+git@benbusby.com>2021-10-22 17:15:40 -0600
commit4949ae22bb2fd1b81cdfbbe21468015fb229b553 (patch)
treeeaad6f87b43a1b741697cb350a19dad65e384444 /mix.exs
parentb0953f07779a4fc6fdfe650a872c4e39251db3ee (diff)
downloadfarside-4949ae22bb2fd1b81cdfbbe21468015fb229b553.tar.gz
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.
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mix.exs b/mix.exs
index 1108a0f..3a85d2d 100644
--- a/mix.exs
+++ b/mix.exs
@@ -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