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:
emitter.on("document.uploaded", processDocument); // in-process only
emitter.emit("document.uploaded", doc);How to fix it
- Back the job with a durable queue (SQS, a managed queue service) and a dead-letter queue for messages that keep failing.
- 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
- Unauthenticated routes that use your users' stored API keys: If users save their own model API keys in your app, a route that uses them without checking who's calling lets strangers spend your users' money.
- Background jobs that run inside requests: Work fired off from a request handler without a queue dies on deploys and crashes, never retries, and competes with live requests for the same server.
- Webhooks processed synchronously: A webhook handler that does its work before responding makes the sender retry under load, which doubles the traffic on an already slow handler.
- Database connection pools on serverless: On serverless hosting every concurrent function instance opens its own pool, so the total quickly exceeds what the database allows.
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.