Skip to main content
Paid Feature - Queue triggers are available on the Hobby and Pro plans. View pricing
The 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

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. Use parallelism: 1 when order matters. Use higher values for independent operations like sending notifications.

Retries

By default, retries are disabled. Set retries to enable automatic retry on failure.

Backoff Strategies

Only applicable when retries > 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: Milliseconds: Both formats are valid:

Runtime Context

When your handler flow executes, the context includes message information:

Context References

Example: Check Retry Count

Failure Handling

Failed messages in the DLQ can be viewed, retried, or deleted via the API.

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:
  1. HTTP endpoint receives order
  2. Validates and accepts order immediately (returns 202)
  3. Enqueues order for background processing
  4. Queue handler processes payment, updates inventory, sends confirmation

Webhook Processing

Handle incoming webhooks reliably:
  1. Webhook arrives at HTTP endpoint
  2. Enqueue webhook payload for processing
  3. Return 200 immediately
  4. Queue handler processes webhook with retries

Batch Operations

Process large datasets item by item:
  1. Upload triggers batch job
  2. Each item is enqueued separately
  3. Queue handler processes items with parallelism
  4. Failed items retry automatically

Email Notifications

Send emails without blocking API responses:
  1. User action triggers notification
  2. Email data is enqueued
  3. Queue handler sends email via email service
  4. Retries handle temporary failures

Plan Availability

Queue triggers are available on Hobby and Pro plans.