Redis queue

Queueredis-queue

Redis list or stream used as a job queue by Sidekiq, Bull, RQ or Celery; loses popped jobs on worker crash.

Provider
default
Kind
Queue
Category
Messaging
Properties · 5 set by this component
propertytypevaluesrequiredkind defaultthis component
backoffenumnone | fixed | exponential | exponential-jitterno—inherited
deadLetterQueueboolean—nofalse▸ false
deliveryenumat-most-once | at-least-once | exactly-onceyes—▸ at-most-once
implementation · component propertyenumlist | streamnolistinherited
instancesinteger—no—inherited
managedboolean—nofalseinherited
maxAttemptsinteger—no—inherited
orderingenumnone | per-key | globalnonone▸ global
persistenceboolean—notrue▸ false
replayboolean—nofalse▸ false
retentionDaysinteger—no—inherited
roleenumwork | dlq | retry | offline-mailbox | frontiernoworkinherited
Rules that apply · 3

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

queue-missing-dlq

A queue that receives asynchronous traffic and has no dead-letter queue either drops poison messages or retries them forever. Neither outcome leaves anything for a human to investigate.

  • — all of these hold:
  • — the node's `deadLetterQueue` is false
  • — the node has at least one asynchronous incoming edge
retry-queue-without-dlq

A retry queue is where poison messages end up. With no dead-letter queue they are retried forever or dropped in silence, and nobody ever looks at the failed payment.

  • — all of these hold:
  • — the node's `role` is "retry"
  • — the node's `deadLetterQueue` is false
retry-without-backoff

Retrying a transient failure at full speed turns one slow dependency into a retry storm. A retry queue backs off, preferably exponentially and with jitter.

  • — all of these hold:
  • — the node's `role` is "retry"
  • — any of these hold:
  • — the node's `backoff` has no value
  • — the node's `backoff` is "none"
Use it in a design
nodes:
  - { id: "redis-queue", component: "redis-queue" }
Other Queue products · 23
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Redis used as a queue (LPUSH/BRPOP list, or a Stream via Sidekiq, Bull, RQ, Celery).
# A popped list entry is gone if the worker dies, so delivery is at-most-once and nothing is persisted by default.
schemaVersion: "1"
type: "component"
id: "redis-queue"
kind: "queue"
provider: "default"
docs: "https://redis.io/docs/latest/develop/data-types/lists/"
defaults:
  delivery: "at-most-once"
  ordering: "global"
  deadLetterQueue: false
  replay: false
  persistence: false
properties:
  implementation:
    type: "enum"
    values: ["list", "stream"]
    default: "list"

The same page as markdown, for an agent: /catalogue/components/redis-queue.md