At 10,000 monthly users, Dub would cost about $187 a month in infrastructure, priced as the AWS equivalent, plus $36.50–$730 a month in AI model tokens depending on the model. Skeram forecast this from its code at commit 6e7eb28, read 2026-07-07, with token prices as of 2026-11-12. What breaks first: 8 background jobs run inline in request handlers.
What to fix firstat 10,000 users, ranked by severity and evidence
CriticalCode fix · bites at 10K users
Cache warm + partner enrollment lookup via waitUntil in link redirect handler; Send password-reset confirmation email post-response; Increment workspace aiUsage counter post-response (+5 more). Work fired from a handler without a queue dies with the process on deploys and crashes, fails silently with no retry, and competes with requests for the same instance.
Fix: Move to a queue (SQS + a worker service, as in the architecture shown, sized for this load). The handler has to be rewritten to publish to it instead of firing inline.
WarningCode fix · bites at 100K users
stripe, resend (@dub/email), google/github oauth (next-auth), cloudflare-r2, unsplash… sit in the request path. Any of their p99 spikes becomes your p99 spike; without timeouts and retries with backoff, their outage is your outage.
Fix: Set explicit timeouts on every client, add circuit breaking, and move non-interactive calls (email, analytics) to the worker.
WarningInfra fix · bites at 100K users
Deployed on vercel — every concurrent function instance owns its own pool. ~2 concurrent instances at 10,000 users × pool size quickly exceeds max_connections, even though the code "uses pooling".
Forecast by Skeram from the repository at commit 6e7eb28, analysed 2026-07-07. Infrastructure is priced as the AWS equivalent at AWS list prices, whatever the app deploys to. Token prices from the dated snapshot shown in the report above.
About $132 a month in infrastructure, priced as the AWS equivalent plus $3.65–$73.00 in AI model tokens at 1,000 monthly users, by Skeram's forecast from the code at commit 6e7eb28.
How much does it cost to run Dub at 10,000 users?
About $187 a month in infrastructure, priced as the AWS equivalent plus $36.50–$730 in AI model tokens at 10,000 monthly users, by Skeram's forecast from the code at commit 6e7eb28. What breaks first: 8 background jobs run inline in request handlers.
How much does it cost to run Dub at 100,000 users?
About $745 a month in infrastructure, priced as the AWS equivalent plus $365–$7,300 in AI model tokens at 100,000 monthly users, by Skeram's forecast from the code at commit 6e7eb28. What breaks first: 8 background jobs run inline in request handlers; connection pools on serverless multiply per function instance; 4 webhooks process synchronously; 10 third-party apis are called inline with requests.