https://github.com/am-kantox/distributed_supervisor
Distributed dynamic supervisor using `:pg` as a registry
https://github.com/am-kantox/distributed_supervisor
dynamic-supervisor elixir supervisor
Last synced: 28 days ago
JSON representation
Distributed dynamic supervisor using `:pg` as a registry
- Host: GitHub
- URL: https://github.com/am-kantox/distributed_supervisor
- Owner: am-kantox
- License: mit
- Created: 2025-03-15T10:30:21.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-03-25T17:12:31.000Z (about 1 month ago)
- Last Synced: 2025-03-25T18:26:11.689Z (about 1 month ago)
- Topics: dynamic-supervisor, elixir, supervisor
- Language: Elixir
- Homepage:
- Size: 635 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DistributedSupervisor
## Purpose
`DistributedSupervisor` is exactly what its name says. Itβs a `DynamicSupervisor` working
transparently in a distributed environment.### Example
```elixir
iex|π’|n1@am|1> DistributedSupervisor.start_link(name: DS)
{:ok, #PID<0.307.0>}
iex|π’|n1@am|2> DistributedSupervisor.start_child(DS, {MyGenServer, name: MGS})
{:ok, #PID<0.311.0>, MGS}
iex|π’|n1@am|3> DistributedSupervisor.children(DS)
%{MGS => #PID<0.311.0>}
```## Installation
```elixir
def deps do
[
{:distributed_supervisor, "~> 0.1"}
]
end
```## [Documentation](https://hexdocs.pm/distributed_supervisor).