Example read model projections using Commanded Ecto projections where Elixir's Registry
is used for pub/sub notifications of read model updates.
This alleviates the problem of async read model updates.
The command dispatcher can wait until the read model has been updated to the exact aggregate version (as returned by the dispatch command):
with {:ok, version} <- Router.dispatch(register_user, include_aggregate_version: true) do