This document specifies the business logic for the Automatafl game platform backend. It follows a Command Query Responsibility Segregation (CQRS) and Event Sourcing architecture.
- Commands: Represent an intent to change the system's state. They are handled by Aggregates.
- Events: Represent an immutable fact that has occurred in the system. They are the single source of truth for all state.
- Aggregates: Encapsulate the business logic and state for a domain entity (e.g., a
GameorPlayer). They process Commands and produce Events. - Processes & Sagas: Coordinate complex workflows by listening to Events and issuing new Commands.