Skip to main content
Orchestration

Queues

Serialize agent work with durable queues for backpressure and rate limiting.

  • Serial execution ensures agents process one task at a time
  • Durable messages survive sleep and restart
  • Completable messages for request/response patterns with agents
  • Backpressure absorbs bursts and prevents overload

Queue agent commands

Use actor queues to serialize work that an agent processes one task at a time.

Request/response with completable messages

Use completable messages when the caller needs to wait for the agent to finish.

Ingesting from external systems

Accept tasks from webhooks, APIs, or other services and queue them for agent processing.

Recommendations

  • Use queues when you need guaranteed serial execution. Agents process one message at a time, preventing race conditions.
  • Use completable messages when the caller needs the result. Set a generous timeout since agent work can take minutes.
  • Queues survive actor sleep. Messages are persisted and processed when the actor wakes up.
  • See Queues & Run Loops for the full queue API reference.