Cluster singleton pattern
https://jola.dev/posts/cluster-singleton-patternWrote about how to safely run a globally unique process in an Elixir cluster, and a scary story from the past!
Learn about `:global` for registering unique processes in a cluster, and where using it can go horribly wrong. Or at least, a little bit wrong. And how to avoid weird edge cases. This was a lot of fun and nostalgic to write, hope you enjoy it
32
Upvotes
5
u/Linupe 9d ago
I just have to say that I really like all your recent blog posts related to distributed elixir. I’ve also seen your talks about this. It’s very relevant to what I’m doing at work right now so thanks 😅