The maintainer has not written a description at the source.
Repo phoenixframework/group, read from GitHub 5 d ago. phoenixframework has not joined Take My Repo.
phoenixframework/group is a public repo on GitHub by phoenixframework. It declares the MIT license on GitHub. It is written mainly in Elixir, has 49 stars and last changed on 2026-11-19. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-19.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Eventually Consistent distributed process registry, process groups, lifecycle monitoring, and isolated subclusters for Elixir. No external dependencies.
members/2.def deps do
[{:group, "~> 0.3.2"}]
end
Start a Group instance under your supervision tree:
children = [
{Group, name: :my_app}
]
# Register the calling process under a unique key
:ok = Group.register(:my_app, "user/123", %{name: "Alice"})
# Look up by key — returns {pid, meta} or nil
{pid, %{name: "Alice"}} = Group.lookup(:my_app, "user/123")
# Unregister (also happens automatically on process death)
:ok = Group.unregister(:my_app, "user/123")
# Join a group (many processes can join the same key)
:ok = Group.join(:my_app, "chat/room/42", %{role: :member})
# List all members — returns [{pid, meta}, ...]
members = Group.members(:my_app, "chat/room/42")
# Read at most one arbitrary member without materializing the full group
[member] = Group.members(:my_app, "chat/room/42", limit: 1)
# Read only members whose owning process is on this node
local_members = Group.local_members(:my_app, "chat/room/42", limit: 10)
# Choose three members uniformly at random, copying only their metadata
sample = Group.sample_members(:my_app, "chat/room/42", 3)
# Leave
:ok = Group.leave(:my_app, "chat/room/42")
members/2, local_members/2, and sample_members/3 return joined processes for a key. Registered processes are not
included — use lookup/2 for those.
Keys ending with "/" perform a prefix query across all shards:
# All members in rooms under "chat/"
Group.members(:my_app, "chat/")
Subscribe to lifecycle events matching a pattern:
# Prefix match — all keys starting with "user/"
:ok = Group.monitor(:my_app, "user/")
# Exact match
:ok = Group.monitor(:my_app, "user/123")
# Everything
:ok = Group.monitor(:my_app, :all)
Events arrive as {:group, events, info} tuples in the monitoring process's mailbox:
def handle_info({:group, events, _info}, state) do
Enum.each(events, fn
%Group.Event{type: :registered, key: key, pid: pid, meta: meta} ->
# a process registered at `key`
:ok
%Group.Event{type: :unregistered, key: key, meta: meta, reason: reason} ->
# a registered process died or unregistered
:ok
%Group.Event{type: :joined, key: key, pid: pid, meta: meta} ->
# a process joined the group at `key`
:ok
%Group.Event{type: :left, key: key, pid: pid, meta: meta, reason: reason} ->
# a process left or died
:ok
end)
{:noreply, state}
end
Single operations (register, join) produce one event per tuple. Bulk operations (nodedown, process death) batch all events from that operation into one tuple.
Send a message to all members of a key:
:ok = Group.dispatch(:my_app, "chat/room/42", {:new_message, "hello"})
:ok = Group.dispatch(:my_app, "chat/room/42", {:new_message, "hello"}, cluster: "servers_123")
Compared to Phoenix.PubSub, dispatch only broadcasts to nodes with at least
one subscription and can also be tailored to a given cluster.
Isolate groups and registries into named subclusters. Only nodes that have
called connect/2 for a cluster participate in that cluster's replication.
# Connect this node to a named cluster
:ok = Group.connect(:my_app, "game_servers_123")
# Or lease the connection while this node still has local interest in it
:ok = Group.connect(:my_app, "game_servers_123", ttl: 30_000)
# All operations accept a :cluster option
:ok = Group.join(:my_app, "room/1", %{}, cluster: "game_servers_123")
members = Group.members(:my_app, "room/1", cluster: "game_servers_123")
:ok = Group.monitor(:my_app, :all, cluster: "game_servers_123")
TTL leases are local policy only:
Group.connect(..., ttl: ms) still does the normal ETS membership check first,
so repeated connects while already connected stay a cheap noop and do not
refresh the TTL.# All Group peers (nodes that completed peer discovery), excluding self
Group.nodes(:my_app)
# All nodes in a named cluster
Group.nodes(:my_app, "game_servers_123")
Toggle verbose logging at runtime without restart:
Group.log_level(:my_app, :verbose) # turn on verbose
Group.log_level(:my_app, :info) # back to normal
Group.log_level(:my_app, false) # silence routine info/verbose logs
Group.log_level/2 updates :persistent_term, so it should be used as an
occasional admin control, not from a hot path.
Events are delivered as {:group, events, %{name: name}} tuples containing
%Group.Event{} structs:
%Group.Event{
type: :registered | :unregistered | :joined | :left,
supervisor: :my_app,
cluster: nil | "cluster_name",
key: "user/123",
pid: #PID<0.150.0>,
meta: %{},
previous_meta: nil | %{}, # old meta on re-register/re-join
reason: nil | term() # exit reason on unregistered/left
}
| Event | Trigger |
|---|---|
:registered |
register/4 — new or re-register (updates meta) |
:unregistered |
Process died or unregister/3 called |
:joined |
join/4 — new or re-join (updates meta) |
:left |
Process died or leave/3 called |
Re-registering or re-joining an existing key updates the metadata in place and
delivers an event with previous_meta set to the old value.
All operations are eventually consistent:
register, join, etc.) return immediately after updating local ETS.nodedown removes that node's view immediately. If the Erlang
node remains connected but its Group instance stops responding, a bounded
control-plane lease removes the same state and later discovery can rebuild it.resolve_registry_conflict callback. The
callback selects a winner; each origin retires and terminates only its own
losing process with {:group_registry_conflict, key, winner_meta}.{Group,
name: :my_app,
shards: 8, # number of write shards (default)
log: :info, # :info | :verbose | false
resolve_registry_conflict: {MyResolver, :resolve, []}, # partition conflict resolver
extract_meta: {MyApp, :extract_meta, []}, # transform read/event metadata
replicated_pg_receiver_buffer_size: 64,
replicated_pg_receiver_flush_interval: 5,
replicated_registry_receiver_buffer_size: 64,
replicated_registry_receiver_flush_interval: 5,
replicated_sender_buffer_size: 64,
replicated_sender_flush_interval: 5,
busy_dist_retry_attempts: 300,
busy_dist_retry_interval: 1_000,
replicated_pg_receiver_local_request_quota: 8,
replica_transport: Group.Transport.DistErl,
replicated_oplog_max_entries: 65_536,
replicated_snapshot_chunk_target_bytes: 1_048_576,
replicated_anti_entropy_interval: 1_000,
replicated_peer_lease_timeout: 15_000
}
name (required) — atom identifying this Group instance. Passed as the
first argument to all API functions.shards — number of GenServer shards for write operations. Defaults to 8.
Must match across all nodes.log — logging level. :info (default) logs peer discovery, node
connects/disconnects, and cluster membership changes. :verbose additionally
logs per-shard operations (register, join, leave, process deaths, replication).
false disables routine info/verbose logs. Registry conflicts remain
Logger.error events and busy distribution links remain Logger.warning
events. The level can be changed at runtime with Group.log_level/2.resolve_registry_conflict — {module, function, extra_args} callback
invoked once per competing claim as
apply(mod, fun, [name, key, {pid, meta, time} | extra_args]). It must return
a deterministic Erlang term used as the claim's rank. Group chooses the
maximum {rank, pid}, making the winner independent of delivery order and
grouping. Group records an authoritative delete and terminates a losing owner
only on that owner's local node. The callback runs synchronously inside the
shard GenServer, so it must return quickly and never block.extract_meta — {module, function, args} or fun(meta) applied to
metadata on reads and lifecycle events. Useful for stripping internal fields.replicated_pg_receiver_buffer_size — max buffered replicated PG
join/leave ops per shard before the receiver flushes immediately. Defaults to 64.replicated_pg_receiver_flush_interval — max time in milliseconds a shard
will buffer replicated PG join/leave ops before flushing. Defaults to 5.replicated_registry_receiver_buffer_size — max buffered replicated
register/unregister operations per shard. Defaults to 64.replicated_registry_receiver_flush_interval — max registry receiver
buffer age in milliseconds. Defaults to 5.replicated_sender_buffer_size — max buffered outbound operations per
shard. Defaults to 64.replicated_sender_flush_interval — max outbound buffer age in
milliseconds. Defaults to 5.busy_dist_retry_attempts — reconnect attempts after a non-suspending
remote dispatch reports a busy dist link. Defaults to 300. Replica transport
messages are simply dropped and repaired instead of forcing a disconnect.busy_dist_retry_interval — milliseconds between dispatch busy-link
reconnect attempts. Defaults to 1,000.replicated_pg_receiver_local_request_quota — legacy-named quota for
queued local shard requests drained per fairness turn while replica data or
cluster controls are busy. Defaults to 8.replica_transport — a module implementing
Group.Transport, or {module, opts}. The default
Group.Transport.DistErl adapter uses :erlang.send_nosuspend/3; adapters
must return promptly with :ok, :busy, or :disconnected. Dropped and busy
messages are repaired by anti-entropy. Sideband implementations can use
Group.Transport.Outbox to move bounded batching and socket work outside the
Group shard.replicated_oplog_max_entries — maximum retained replica records per
shard across all local streams. Defaults to 65,536. Pruning never waits for
peer acknowledgements; a peer behind the retained floor receives an exact
snapshot.replicated_snapshot_chunk_target_bytes — target maximum encoded size
of each exact-snapshot message. Defaults to 1 MiB and applies above every
transport, including dist Erlang. A single row larger than the target is
sent alone. Receivers stage provisional chunks in shard-owned private ETS and
replace visible state only after the complete slice and its terminal manifest
are present.replicated_anti_entropy_interval — interval in milliseconds for retrying
unacknowledged stream heads and sending nonblocking control heartbeats.
Acknowledged streams do not advertise unchanged heads. Defaults to 1,000.replicated_peer_lease_timeout — time without a dist-Erlang control
heartbeat before state owned by that Group peer is purged. Defaults to 15,000
and must exceed the anti-entropy interval. Probes continue after expiry so a
Group restart on a still-connected VM recovers automatically.Group.Supervisor (:"my_app_group_sup")
├── optional transport child — sideband manager and per-shard outboxes
├── Group.Replica.Data — owns ETS, journal, generations, and epochs
├── Group.PeerReconnect — bounded recovery after busy remote dispatch
├── Group.Replica.Supervisor — supervises N shard GenServers
│ ├── Group.Replica (shard 0)
│ ├── Group.Replica (shard 1)
│ └── ...
├── Registry — local monitor subscriptions (:"my_app_group_registry")
└── Group.ClusterLease — local named-cluster TTL sweeper
Keys are routed to shards via :erlang.phash2({cluster, key}, num_shards).
Including the cluster in the hash avoids false contention between the default
cluster and named clusters.
Reads (lookup, members, membership counts) go directly to ETS — no
GenServer hop. This is the hot path and runs at millions of ops/sec. Exact
membership counts use one lookup in the owning shard; slash-prefix counts use
one lookup per configured shard, independent of membership cardinality.
Writes (register, join
phoenixframework/group is a public repo on GitHub by phoenixframework. Its maker has not written a description.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-19. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run group. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-11-19. It has 49 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.