DGen

CIFormal MethodsHex.pmHex DocsLicense

DGen provides software building blocks that marry the OTP ethos with a reliable distributed system, with a focus on ease of use and minimal operator setup. We implement a durable and fully distributed gen_server-like with dgen_server (Elixir: DGen.Server) and a distributed process registry with dgen_registry (Elixir: DGen.Registry).

DGen is implemented against the FoundationDB API. Any conforming database could, in theory, be substituted, but for now FDB is the only implemented backend.

What's here

Both are built on the same idea: push state and coordination into a strongly-consistent backend, so the OTP programming model you already know keeps working even when a process, a node, or the whole cluster restarts.

Installation

Erlang

DGen can be installed by adding dgen to your list of dependencies in rebar.config:

{deps, [
{dgen, "0.4.x"}
]}.

Find the most recent version number on Hex.

Elixir

DGen can be installed by adding dgen to your list of dependencies in mix.exs:

def deps do
[
{:dgen, "~> 0.4"}
]
end

Documentation

AI full disclosure