hey hn, I’m Filipe, a developer at supabase
we have three projects using Elixir in a clustered setup. we’ve always used libcluster[0] to achieve it but ended up using multiple strategies. now we’ve converged into one approach for all our projects using Postgres as the coordinator.
we’re using Postgres LISTEN and NOTIFY commands with Postgrex as the system to propagate node addresses so they can connect plus we use it to send healtcheck pings to heal when required.
big thanks to https://twitter.com/gotbones for the libcluster library and https://twitter.com/kevinbuch_ for the inspiration
[0] libcluster: https://hexdocs.pm/libcluster/readme.html
eager to hear your feedback, thoughts and questions!