bitwalker / bitwalker/swarm

Pub/sub events for registrations

Open
#23 5 comments 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
Elixir
Stars
1.3k
Forks
110
PR merge metrics
No merged PRs in 30d

Description

Is it in any way possible to "subscribe" to a Swarm registered process? Similar to Gprocs [gproc_monitor:subscribe](https://github.com/uwiger/gproc/blob/master/doc/gproc_monitor.md).

I want a process to be notified when a name becomes registered / unregistered (crash or shutdown). I can do this by looking up the Swarm name and then using `Process.monitor` on the PID, and keeping track of pid <-> name relation until it crashes, but that's a lot extra (and fragile) work.

Are there any plans of adding such a feature?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.