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: 5 months 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2025-05-01T07:40:31.000Z (5 months ago)
- Last Synced: 2025-05-01T17:52:34.396Z (5 months ago)
- Topics: dynamic-supervisor, elixir, supervisor
- Language: Elixir
- Homepage:
- Size: 667 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).