Dialup.CommandedContext (Dialup v0.2.0)

Copy Markdown View Source

Application-service facade for Commanded bounded contexts.

Use in a context module:

defmodule MyApp.Ordering do
  use Dialup.CommandedContext, app: MyApp.CommandedApp

  alias MyApp.Ordering.Commands.AddItem
end

Dispatches default to consistency: :strong so read models are up to date before the page remounts.