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:

Before
app/
  api/chat/route.ts      // long AI streams
  api/cron/digest/route.ts // background work
  dashboard/page.tsx     // the hot path

How to fix it

  1. Split the background worker out first. It's the cheapest isolation win and needs a worker-only entry point in the code.
  2. 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

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.