Workers are the units that add capability to a iii system.Documentation Index
Fetch the complete documentation index at: https://iii.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Worker types
| Type | Examples | Description |
|---|---|---|
| Built-in workers | iii-http, iii-queue, iii-state, iii-stream, iii-cron, iii-observability | Rust workers shipped with the engine and enabled in config.yaml. |
| External workers | Node.js, Python, Rust, browser workers | SDK processes that connect to the engine and register application functions. |
| Managed workers | Local directories or OCI images added with iii worker add | Workers started and supervised by the iii worker manager. |
Configuration
Built-in and managed workers are configured under theworkers key:
Older docs and configs may use “module” for built-in workers. In current iii, “worker” is the canonical term.
Built-in Workers
| Worker | Provides | Config key |
|---|---|---|
| HTTP | HTTP trigger type, request/response handling | rest_api |
| Queue | Async message processing with retries | queue |
| Cron | Scheduled task execution | cron |
| State | Key-value state storage with atomic updates | state |
| Stream | Real-time data streams with WebSocket push | stream |
| PubSub | Publish/subscribe messaging | pubsub |
| Observability | Structured logging, tracing, and metrics | observability |
| Exec | Shell command execution | exec |
| Bridge | WebSocket bridge for SDK connections | bridge |
How Workers Work
A Worker has two responsibilities:-
Register trigger types: A Worker can introduce new ways to invoke Functions. For example, the HTTP worker registers the
httptrigger type, and the Cron worker registers thecrontrigger type. -
Supply Context: A Worker can add capabilities to the Context object that gets passed to every Function. For example, the State worker adds
state::get,state::set, and other state operations.
config.yaml (the engine default). Use -c iii-config.yaml to specify a custom path:
You can build your own Workers to integrate any service or infrastructure. See Custom Workers for a detailed guide.