Finding · affects your reliability
One deployment that runs every workload
When web requests, background jobs and long AI streams share one service, a burst in one starves the others and one bad deploy takes all of them down.
Why it matters
Long model streams and background jobs use resources very differently from quick page requests. In one service, they scale together and fail together: a spike of slow AI traffic takes capacity from the routes that pay the bills.
What it looks like
One package, one deploy: routes, jobs and AI streams together:
app/
api/chat/route.ts // long AI streams
api/cron/digest/route.ts // background work
dashboard/page.tsx // the hot pathHow to fix it
- Split the background worker out first. It's the cheapest isolation win and needs a worker-only entry point in the code.
- Split AI routes into their own service when their traffic grows enough to matter.
A real example: Vercel AI Chatbot
Computed by Skeram’s engine from the published teardown of Vercel AI Chatbot, at 100,000 monthly users (critical):
One deployment unit carries every workload. On the single-service deploy shown, 23 routes, 1 background jobs, long-lived LLM streams all scale (and fail) together. A burst of slow LLM/job traffic starves the hot request paths that pay the bills; one bad deploy takes down all of it at once.
Suggested fix: Split the worker out first (cheapest isolation win — the architecture shown runs it as a separate service); split LLM routes when their traffic grows. Needs a worker-only entrypoint in the codebase for the split to actually isolate anything.
Evidence: package.json:39-40, vercel.json, proxy.ts:5-37.
How Skeram detects it
Flagged when the app is a single service that also runs background jobs or model calls.
When it starts to hurt: A warning from about 10,000 monthly users, critical around 100,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.