Patterns
Collaboration Patterns
Practical patterns for building collaborative systems on shared state. Each pattern addresses specific challenges in multi-user, state-driven architectures.
State Machine Design Pattern
Model state transitions explicitly as a finite state machine, making allowed state changes clear, testable, and auditable. This pattern prevents invalid transitions and provides a clear model for how collaborative state evolves over time.
View pattern →CQRS (Command Query Responsibility Segregation)
A three-stream model: Command Stream for mutations, Query-by-ID Stream for authoritative truth, and Search & Filter Stream for exploration. Includes synchronous projection updates for interactive dashboards.
View pattern →State Reducer Pattern
A state reducer is a pure function that takes an action and current state, then returns either an error or a new state. This pattern provides a deterministic, testable way to handle state transitions in collaborative systems.
View pattern →Policy Engines
A policy engine evaluates rules to determine authorization and data visibility. It separates access control logic from business logic, making permissions explicit, testable, and maintainable.
View pattern →Explore the framework
Patterns are built on top of the State-Based Collaboration Framework. Understanding the framework components will help you apply these patterns effectively.
View the framework