Class: EsAsyncModeWorkflow

Inherits:
PetriFlow::Workflow
  • Object
show all
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:

  1. Response returns immediately to caller (non-blocking)
  2. Background worker processes projection independently