ViewstampedReplication.Client (viewstamped_replication v0.1.0)

Copy Markdown View Source

Stateful VSR client session with monotonic request numbers and retries.

A session permits one outstanding command. Keeping the process alive keeps its client identity and request sequence stable across replica failover.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

command(client, operation, opts \\ [])

@spec command(pid(), term(), keyword()) :: {:ok, term()} | {:error, term()}

start_link(opts)

status(client)

@spec status(pid()) :: map()