1.1 KiB
1.1 KiB
Architectural Constraints
Main constraints
Workeris the primary runtime abstraction.ApplicationModuleassembles the application and registers workers.- Business behavior should live outside worker lifecycle code.
- The platform should avoid queue-centric abstractions as first-class architecture.
- Utility components are allowed only when they remain optional and transparent.
Worker constraints
Worker should own:
- thread/process lifecycle
- execution strategy
- graceful stop
- runtime state
- health state
Worker should not own:
- large business workflows
- domain rules
- parsing plus persistence plus integration logic in one class
Business-code constraints
Business routines and services should own:
- business decisions
- external integration calls
- persistence
- domain validation
They should not own:
- platform lifecycle
- worker supervision
- runtime status management
API constraints
Public API should stay small and clear.
Prefer:
ApplicationModuleWorker- runtime services
- utility queue
Avoid:
- legacy abstractions preserved only for compatibility
- specialized platform roles without strong need