Back to Templates

A template showing how to run durable background tasks on Vercel using DBOS. Contains a Next.js frontend and a serverless Vercel Functions "backend" that runs durable background workflows.
The Next.js frontend uses a DBOS Client (backed by Postgres) to enqueue workflows and display workflow status.
Periodically, a worker running in a Vercel Function checks if there are any enqueued workflows and executes them. This worker is triggered automatically by a Vercel cron, but can also be triggered through a button in the app.