Paid Feature - Queue triggers are available on the Hobby and Pro plans. View pricing
queue trigger enables asynchronous message processing. Flows with queue triggers act as message handlers that process work from a queue with automatic retries and backoff policies.
Configuration
Config Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | Yes | - | Queue name (unique per project) |
parallelism | number | No | 1 | Number of concurrent consumers (1 = strict FIFO) |
retries | number | No | 0 | Maximum retry attempts on failure (0 = no retries) |
timeout | string | No | "30s" | Handler execution timeout |
backoff | object | No | - | Retry backoff strategy (only used when retries > 0) |
Queue Names
Queue names must be unique within your project. Choose descriptive names that reflect the purpose:Parallelism
Controls how many messages can be processed concurrently.| Setting | Behavior |
|---|---|
parallelism: 1 | Strict FIFO ordering - one message at a time |
parallelism: 5 | Up to 5 messages processed concurrently |
parallelism: 1 when order matters. Use higher values for independent operations like sending notifications.
Retries
By default, retries are disabled. Setretries to enable automatic retry on failure.
Backoff Strategies
Only applicable whenretries > 0. Configure how long to wait between retry attempts.
Exponential Backoff
Delays grow exponentially: 1s, 2s, 4s, 8s, 16s… capped at max.Linear Backoff
Delays grow linearly: 5s, 10s, 15s, 20s… capped at max.Fixed Backoff
Constant delay between retries. Useful for rate-limited APIs.Duration Format
Durations can be specified as strings or milliseconds: String format:| Format | Example | Description |
|---|---|---|
Xs | "30s" | Seconds |
Xm | "5m" | Minutes |
Xh | "1h" | Hours |
| Example | Equivalent |
|---|---|
2000 | 2 seconds |
60000 | 1 minute |
3600000 | 1 hour |
Runtime Context
When your handler flow executes, the context includes message information:Context References
| Reference | Description |
|---|---|
{{trigger.config.name}} | Queue name |
{{trigger.message.id}} | Unique message ID |
{{trigger.message.retried}} | Number of retry attempts (0 on first try) |
{{trigger.body}} | Message payload |
{{trigger.body.order_id}} | Access message fields directly |
Example: Check Retry Count
Failure Handling
| Scenario | Behavior |
|---|---|
retries = 0 | Message fails immediately and moves to Dead Letter Queue (DLQ) |
retries > 0 | Message is retried with configured backoff until success or retries exhausted |
| Retries exhausted | Message moves to Dead Letter Queue (DLQ) |
Complete Example
A queue handler that processes orders:Sending Messages to Queues
Use the enqueue node to send messages to queue handlers:Use Cases
Order Processing
Process orders asynchronously to return fast API responses:- HTTP endpoint receives order
- Validates and accepts order immediately (returns 202)
- Enqueues order for background processing
- Queue handler processes payment, updates inventory, sends confirmation
Webhook Processing
Handle incoming webhooks reliably:- Webhook arrives at HTTP endpoint
- Enqueue webhook payload for processing
- Return 200 immediately
- Queue handler processes webhook with retries
Batch Operations
Process large datasets item by item:- Upload triggers batch job
- Each item is enqueued separately
- Queue handler processes items with parallelism
- Failed items retry automatically
Email Notifications
Send emails without blocking API responses:- User action triggers notification
- Email data is enqueued
- Queue handler sends email via email service
- Retries handle temporary failures
Plan Availability
Queue triggers are available on Hobby and Pro plans.Related
- Enqueue Node - Send messages to queue handlers
- HTTP Trigger - Create REST endpoints
- Cron Trigger - Schedule flows