Finding · affects your reliability

Async jobs with no queue behind them

Jobs written as events or queue consumers, with no real queue installed, have no retries, no backpressure and no record when they're lost.

Why it matters

Code can look event-driven (emit an event, handle it elsewhere) while running entirely in memory. Without a durable queue, a restart loses every pending job, failures aren't retried, and a burst has nowhere to wait.

What it looks like

An in-memory event bus standing in for a queue:

Before
emitter.on("document.uploaded", processDocument); // in-process only
emitter.emit("document.uploaded", doc);

How to fix it

  1. Back the job with a durable queue (SQS, a managed queue service) and a dead-letter queue for messages that keep failing.
  2. Publish from the producer and consume in a worker.

How Skeram detects it

Jobs the extraction marks as queue or event-triggered are checked against the queue SDKs actually installed. Jobs with no queue behind them are flagged; jobs invented with no queue SDK in the repo at all are dropped before pricing.

When it starts to hurt: A warning from about 1,000 monthly users, critical from about 10,000.

Every finding cites the file and line it came from, and scanning again after a fix shows it resolved in History. How the analysis works.

Related findings

Find it in your code

Skeram reads your repo, prices every model call from 100 to 100,000 users, and flags these patterns with the file and line.