WJb Docs - Basic
Start here with installation, quick starts, and core concepts.
π Start Here
β¨ First Steps
β Next Steps
π‘ What is WJb?
WJb is an explicit background job framework for .NET.
Instead of hiding workflow transitions behind pipelines, middleware and framework magic, WJb keeps everything visible in code.
The Core Idea
Most systems eventually become:
Job
β
Pipeline
β
Middleware
β
Retry
β
Magic
WJb intentionally stays simple:
Action
β
Result
β
Next Action
If you can read the code, you can understand the workflow.
Building Blocks
Action
An Action is a unit of work.
Examples:
- Send an email
- Generate a report
- Import a file
- Call an external API
Result
Every Action returns a Result.
The Result tells WJb what should happen next.
Examples:
- Complete the workflow
- Continue to another Action
- Create multiple jobs
Job
A Job represents a scheduled execution of an Action.
Jobs are stored until a Worker executes them.
Worker
A Worker executes jobs.
Workers:
- Load jobs from the store
- Execute actions
- Save results
- Schedule next jobs
Example Workflow
GenerateReportAction
β
SendEmailAction
The first Action generates a report. The second Action sends the report by email.
The workflow is completely visible in code.
Why WJb?
- β Explicit workflows
- β No hidden pipelines
- β Easy debugging
- β Easy testing
- β Provider-neutral design
- β Works from simple console apps to WASM
Philosophy
WJb follows a simple principle:
Every workflow should be understandable by reading the code.
No hidden transitions. No magic execution flow. No surprises.