Background Jobs: Stop Making Users Wait on Slow Work
A background job is work your app finishes after it has already answered the user. What to move out of the request and how the queue pattern works.
Checklists before real users arrive, staging vs production, rolling back a bad deploy, Git, and payments that work.
A background job is work your app finishes after it has already answered the user. What to move out of the request and how the queue pattern works.
How to export a Bolt project and run it yourself, plus what stays behind: database rows, secrets and server function deploys. Includes a leak test.
Caching means remembering an answer so you do not compute it again. The caches your app already has, the one safety rule, and when a cache pays.
Google grades your landing page with three numbers: LCP, INP, and CLS. What they measure, why AI-built pages fail them, and a runnable test that catches it.
If you committed .env, rotate every key in it first. Deleting the file or rewriting history does not undo the exposure. The fix in order, with a test.
Something worked last week and is broken now. git bisect finds the commit that broke it in a few steps. Includes a runnable demo and a skip path.
Your AI tool's undo button is not version control. Five git commands, tested in a scratch repo, and the safety net for when an agent wrecks your project.
Your app feels slow and every fix is a guess until you measure. The order that works: the slow route, the slow percentile, then the slow step.
Fix a bad deploy by serving the last good build again, not a patch. Rollback steps for Vercel, Netlify, Cloudflare Pages, Railway and Lovable, and the traps.
Staging is a second copy of your app with its own database and keys. Why solo builders need one, what must differ, and setup in Lovable, Supabase and Vercel.
Stripe webhook not working? The customer paid and your app never unlocked. Five causes, how to see which, and nine tests that fail before the fix.
Use a Stripe sandbox and its test keys, run six test-card scenarios, and check that a failed payment never unlocks the paid plan. Includes runnable tests.
How to read logs when your app breaks, add the three fields that make them useful, keep secrets out, and why Vercel's free plan keeps only one hour of them.
A pre-launch checklist for apps built with Cursor, Lovable, Bolt, Replit or Claude Code: secrets, data access, backups, staging, limits and logs.
Six things that go wrong after the demo when an AI-built app meets real users and real traffic, and the engineering habit that stops each one.
I'm guilty of every bad commit message sin in the book. So I built a Claude Code skill that writes them better than I ever did.
Stuck with a vibe-coded app? I'll fix it.
Email me