You should probably reach for something like ra for anything but trivial stuff. If latency is not a concern, global module is probably fine but double check the quorum membership.
ra for those interested: https://github.com/rabbitmq/ra
("A Raft implementation for Erlang and Elixir that strives to be efficient and make it easier to use multiple Raft clusters in a single system.")
Used by RabbitMQ for quorum queues + Khepri (the new metadata store)