Name Registration via :via!

Does using {:via, :gproc, {:n, :l, {MyMod, my_id}}} for registering processes, creates any atoms?

(Elixir noob) I’ve encountered the concept of process registry when writing some app (wrote my own registry, handling at least two maps for refs and pids and those supervisors and :DOWN and etc, etc) and got introduced to gproc. Based on this, I’ve written my app and after some struggling, I’ve learnt (?) what’s what and everything works perfectly! But I’m not sure if the above syntax is creating atoms under-hood or not.

Gproc should not be making atoms from any input unless they are already atoms, of which it will not alter them, so no it should not given the limited example shown. :slight_smile:

1 Like