Hydra-Router
Hydra Router is a service-aware router which can direct HTTP and WebSocket message requests to registered services.
Trying Hydra-router
The easiest way to try hydra-router is to grab the ready-made Docker container.
$ docker pull flywheelsports/hydra-router
Although the above command will work we recommend that you visit https://hub.docker.com/r/flywheelsports/hydra-router/tags/ and pull a specific version such as:
$ docker pull flywheelsports/hydra-router:1.3.3
Running the container requires that you have a local instance of Redis running and that you identify your machine's IP address using ifconfig
or the ipconfig
tool on your machine.
$ docker rm -f hydra-router
$ docker run -d -p 5353:5353 --add-host host:10.1.1.175 --name hydra-router flywheelsports/hydra-router:1.3.3
You should then be able to point your web browser to http://10.1.1.175:5353 and issue router request such as:
http://10.1.1.175:5353/v1/router/version
Pulling the latest docker container
Hydra-router docker images are stored here: https://hub.docker.com/r/flywheelsports/hydra-router/tags/
Building from source
You can also grab the hydra-router source code and use it locally.