FAQ event sourcing: the evoq_command_handler desk shape #15

Manually merged
terra merged 3 commits from mercurius/corpus-14-faq-handler into main 2026-12-01 07:41:24 +00:00
Member

Purpose (docs): the event-sourcing FAQ shows a new desk in the evoq_command_handler shape (evoq 1.31.1), so a service built from the guide starts with the behaviour, not the hand-written glue.

Refs #14, reckon-db-org/evoq#3

One added subsection in guides/FAQ_ADD_EVENT_SOURCING.md, "For a new desk, since evoq 1.31.1: evoq_command_handler":

  • The whiteboard example above it quotes mcl-whiteboard's real files and stays unchanged. The new section says those files predate the behaviour.
  • An Elixir snippet in the same HostBoard names:
    • the desk: command_module/0, handle/2, dispatch/1 through :evoq_command_handler.dispatch/3;
    • the aggregate: command_handlers/0, keyed by HostBoardV1.command_type() (:host_board); route/3 after the guard.
  • One line each on validate-before-dispatch and check_handlers/1.
Purpose (docs): the event-sourcing FAQ shows a new desk in the `evoq_command_handler` shape (evoq 1.31.1), so a service built from the guide starts with the behaviour, not the hand-written glue. Refs #14, reckon-db-org/evoq#3 One added subsection in `guides/FAQ_ADD_EVENT_SOURCING.md`, "For a new desk, since evoq 1.31.1: `evoq_command_handler`": - The whiteboard example above it quotes mcl-whiteboard's real files and stays unchanged. The new section says those files predate the behaviour. - An Elixir snippet in the same `HostBoard` names: - the desk: `command_module/0`, `handle/2`, `dispatch/1` through `:evoq_command_handler.dispatch/3`; - the aggregate: `command_handlers/0`, keyed by `HostBoardV1.command_type()` (`:host_board`); `route/3` after the guard. - One line each on validate-before-dispatch and `check_handlers/1`.
FAQ event sourcing: dispatch/3 runs validate/1 only when the command exports one
All checks were successful
corpus guard / shared-clone-commit (pull_request) Successful in 4s
corpus guard / shared-clone-commit (push) Successful in 5s
5787ff09ff
terra manually merged commit 5787ff09ff into main 2026-12-01 07:41:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-corpus!15
No description provided.