Typical Workflow
-
A client interacts with a public method on a Worker.
-
The Worker can:
- Execute simple logic internally.
- Delegate to a Job for a specific task.
- Delegate to a Handler for a complex process.
-
If a Handler is used:
- The Handler coordinates the workflow.
- May execute multiple Jobs in sequence.
- May select different Strategies based on context.
- Manages errors and transactions.
-
Strategies allow for varying the implementation of specific steps without changing the Handler’s logic.