#event-sourcing #wasmdome #wascc

wasmdome-domain

Event Sourced Domain Model for the 'Assembly Mechs: Beyond WasmDome' Game

6 releases

0.0.7 Jul 29, 2020
0.0.6 Jul 13, 2020
0.0.3 Mar 17, 2020
0.0.2 Feb 27, 2020

#1319 in WebAssembly


Used in 2 crates

Apache-2.0

78KB
2K SLoC

Assembly Mechs: Beyond WasmDome

This crate contains the common domain logic required to perform the match processing. This logic is expressed through event sourcing, where commands are handled by an aggregate that results in 1 or more events. Those events can then be applied to the aggregate that results in state changes.

This pattern embraces immutability and enables things like replay and incredibly easy testing because everything is deterministic and predictable.

Dependencies

~1.7–2.7MB
~52K SLoC