Orkestra.MessageBus.PubSub (orkestra v0.2.0)

Copy Markdown View Source

In-process MessageBus implementation using Phoenix.PubSub.

Commands are dispatched to a single registered handler (point-to-point). Events are broadcast to all subscribers.

Ack/nack is synchronous: the handler return value determines the outcome.

Setup

Add the registry to your supervision tree (done automatically if using Orkestra):

Orkestra.MessageBus.PubSub

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.

start_link(opts \\ [])