Goal
Configure iii functionality through its config file to enable modules, functionality, set up adapters, and customize behavior.Overview
The config file controls:- Engine settings - WebSocket port for SDK connections
- Modules - Features like HTTP endpoints, queues, state, cron, observability
- Adapters - Storage backends (file, memory, Redis, RabbitMQ, etc.)
Specifying the config file
Configs can be specified to iii at startup with either the-c or --config flag:
Environment Variables
Configuration values can use environment variables with optional defaults:${VAR_NAME:default_value} or ${VAR_NAME} (required).
Common Configurations
Development
When doing development it is common to use built-in adapters with persistentfile_based storage,
and non-persistent in_memory storage.
iii-config.yaml
Production
While iii’s built-infile_based adapters can be used in production it’s common to swap them out for other
adapters that are built for purpose such as Redis, or RabbitMQ.
iii-config.yaml
Configuration Reference
List of modules to enable. Each entry requires a
class identifier and an optional config object.Modules
REST API Module
REST API Module
Class:
modules::api::RestApiModuleExposes HTTP endpoints for triggers and the core API surface. Functions with HTTP triggers are served through this module.Network interface to bind. Use
0.0.0.0 for all interfaces, 127.0.0.1 for localhost only.Stream Module
Stream Module
Class:
modules::stream::StreamModuleReal-time WebSocket pub/sub for live data streaming to clients. Clients connect via WebSocket to receive pushed updates on subscribed channels.Network interface to bind. Use
0.0.0.0 for all interfaces, 127.0.0.1 for localhost only.Function that validates stream connection/subscription requests (e.g., auth checks). Set to
null or omit to allow all connections.State Module
State Module
Queue Module
Queue Module
PubSub Module
PubSub Module
Cron Module
Cron Module
Observability Module
Observability Module
Class:
modules::observability::OtelModuleOpenTelemetry tracing, metrics, logs, and alerting. Provides visibility into function execution, performance, and errors.Service name in traces/metrics/logs. Used for filtering in observability backends.
Service version tag. Useful for correlating deployments with telemetry changes.
Trace export destination. Options:
memory (queryable via API), otlp (send to collector), both.OTLP collector endpoint. Required when exporter is
otlp or both. Common endpoints: Jaeger (4317), Grafana Tempo (4317), Honeycomb, Datadog.Base sampling ratio (0.0–1.0).
1.0 = sample all traces, 0.1 = sample 10%. Overridden by advanced sampling rules when configured.Maximum spans to retain in memory (when exporter is
memory or both). Higher = more history for local debugging, more memory usage.Metrics storage. Options:
memory (queryable via API), otlp (send to collector).Log export destination. Options:
memory (queryable via API), otlp (send to collector), both.Batch size for OTLP log export. Larger batches = fewer network calls, higher latency.
Engine console log level. Options:
trace, debug, info, warn, error. trace = most verbose, error = only errors.HTTP Functions Module
HTTP Functions Module
Class:
modules::http_functions::HttpFunctionsModuleEnables HTTP-invoked functions (outbound HTTP calls from the engine). Required for functions registered with HttpInvocationConfig. The engine makes the HTTP request on behalf of the function and enforces URL security policies.For local development, you can relax security by setting
block_private_ips: false and require_https: false to allow localhost targets.Exec Module
Exec Module
Class:
modules::shell::ExecModuleSpawns external processes (SDK workers) and watches for file changes. Useful for setups where workers need to run alongside the engine on the same host.Bridge Client Module
Bridge Client Module
Class:
modules::bridge_client::BridgeClientModuleConnects this engine to a remote iii instance for cross-instance function invocation. Enables distributed architectures and function federation.Telemetry Module
Telemetry Module
Class:
modules::telemetry::TelemetryModuleAnonymous product usage analytics for iii development. Helps the team understand usage patterns and prioritize features.