Skip to main content

Worker Configuration Patterns

View Markdown

These patterns cover how you set up Workers, route work to them, and give Activities the external dependencies they need — while keeping Workflow code deterministic and testable.

Patterns in this section

Choosing a pattern

A sequence of Activities must run on the same Worker host: use Worker-Specific Task Queues to pin them to one Worker.

Activities depend on external resources: use Activity Dependency Injection to supply them at startup rather than constructing them inside each Activity.