System Patterns
Event sourcing, CQRS, permission validation, and event flow in Synap.
System Patterns
Synap architecture is based on:
- Event sourcing for immutable change history
- CQRS for write/read separation
- Worker-based validation for secure mutation flow
- Projection-first reads for query performance
Canonical mutation flow
*.requestedevent emitted- validation/permission policy checks
- approved/validated event emitted
- executor writes projection state
- realtime and index updates propagate
This keeps writes auditable and reads fast.
Why this matters
- Full audit and rollback capability
- Human-in-the-loop AI governance
- Deterministic replay/debugging
- Scalable background execution
