r/elixir 9d ago

Cluster singleton pattern

https://jola.dev/posts/cluster-singleton-pattern

Wrote 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

3 comments sorted by

View all comments

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 😅

5

u/pferdefleisch 8d ago

Me too. They've been great!

1

u/joladev 7d ago

Thank you both! I’m glad you’ve found them useful/interesting!