dgen provides a distributed gen_server.
I love gen_server. There are only 2 things stopping me from writing my entire app with them:
- Durability: The state is lost when the process goes down.
- High availability: The functionality is unavailable when the process goes down.
Let's try to solve this with a distributed system, and find out if an app actually can be written with only gen_servers.
If available in Hex, the package can be installed
by adding dgen to your list of dependencies in mix.exs:
def deps do
[
{:dgen, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/dgen.