Hi there!
I have a pet project where I control a real life traffic light to show the status of a CI server. I have been joyfully overengineering this for over ten years now, using different hardware and software solutions.
At the beginning of this year I rewrote the client component from a Ruby to Nerves and last month I rewrote the server from node to Elixir. I am very happy with the result!
However, since I always replace the parts piece by piece these components used the same simple HTTP interface for almost eight years: Server provides a simple JSON API, client keeps polling it.
This works well, I was just wondering what other Elixir/OTP idiomatic options could look like? Phoenix.PubSub, MQTT, direct connection between nodes?
Happy about any feedback and ideas!
Server component
fabrik42/traffic-light-server-elixir: Configure traffic lights on Heroku, powered by Elixir and Phoenix
Client component
fabrik42/traffic-light-client-elixir: A web controlled traffic light for Raspberry PI, powered by Elixir and Nerves