News for hackers. Stuff that matters.
Re:Distributed Erlang by vereis on Tuesday December 03, 2024 @12:19PM (#42308596)
honest q: how do you distinguish between single node erlang applications vs clustered erlang applications?
Re:Distributed Erlang by toast0 on Tuesday December 03, 2024 @12:54PM (#42309005)
This returns true if you're on a single node erlang application :P

    erlang:node() == nonode@nohost andalso erlang:nodes(known) == [nonode@nohost]

A single node erlang application would be one that doesn't use dist at all. Although, if it includes anything gen_event or similar, and it happens to be dist connected, unless it specifically checks, it will happily reply to remote Erlang processes.