Inspired by Peter C Marks' ddd_elixir_stage1_umbrella repo.
I've implemented the cargo event handling workflow using the approach dictated by the Commanded CQRS/ES library for Elixir.
The flow is as follows:
HandlingEventController
web controller constructs aTrackHandling
command struct from given POST params.TrackHandling
command is dispatched using theCommandRouter
, which has configured the command to handler/aggregate mapping.