Class: EsAsyncModeWorkflow
- Inherits:
-
PetriFlow::Workflow
- Object
- PetriFlow::Workflow
- EsAsyncModeWorkflow
- Defined in:
- app/workflows/es_async_mode_workflow.rb
Overview
Event Sourcing Async Mode Workflow Full event sourcing with asynchronous (non-blocking) projection
Uses Petri net FORK pattern to model true parallelism: After events are stored, a single fork transition places tokens in BOTH response_returned AND job_processing simultaneously. This correctly models async behavior where:
- Response returns immediately to caller (non-blocking)
- Background worker processes projection independently