News for hackers. Stuff that matters.
Re:Lovely Week with Elixir by winrid on Wednesday May 20, 2020 @07:29PM (#23253245)
Oh wow, so this will work across multiple instances of the BEAM?
Re:Lovely Week with Elixir by dnautics on Wednesday May 20, 2020 @08:20PM (#23253577)
If they are clustered using erlang clustering, yes. https://erlang.org/doc/man/global.html

Note that this works by taking a transaction lock on the entire cluster, so it's not recommended if you're making requests frequently. It also doesn't respect netsplits, unless you instruct in code to fail with a deficient cluster membership.