sb logoToday I Learned


In order to broadcast messages only for current node I used to spin-up a Registry with keys: :duplicate and use it as local non-distributed PubSub. (Just like described in Registry # Using as a PubSub)

Apparently, if the project already includes phoenix_pubsub dependency there is Phoenix.PubSub.local_broadcast/4 that does the work!