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!