How-to guides
Each guide solves one problem in 30–150 lines. Code first, gotchas at the end.
Production setup
Section titled “Production setup”- Configure retries —
attempts,backofftypes, jitter, queue-wide vs per-job. - Idempotent add —
addUnique,XADD ... IDMPAUTO, the at-least-once safety boundary. - Enable result storage — opt in to
storeResultsand poll withwaitForResult.
Reliability
Section titled “Reliability”- Route to the DLQ —
UnrecoverableError, everyDlqReason, when each fires. - Replay the DLQ —
chasqui dlq replayand the shim helper. Idempotency caveats. - Schedule repeatable jobs — cron,
every,MissedFiresPolicy.
Operations
Section titled “Operations”- Observe the engine —
MetricsSink, Prometheus adapter,chasqui events.
Performance
Section titled “Performance”- Tune for throughput — concurrency, batched acks, payload size, the
enableAutoPipelininglesson.
Migration
Section titled “Migration”- Migrate from BullMQ — API mapping, what’s compat, what’s intentionally different.
- Migrate from Sidekiq or Celery — conceptual mapping for ruby / python shops.