A head-to-head comparison of Vercel and Netlify for apps with a backend: function limits, background work, schedules, databases, pricing and what happens when the backend outgrows functions.

Vercel and Netlify both turn a git push into a deployed frontend with a preview URL for every pull request, and for a marketing site or a dashboard with a few API routes either one works.
The differences show up in the backend, in how long a function may run, where background jobs and schedules go and which database the functions talk to, and this guide compares them for a full-stack app.
Limits are from the Vercel duration docs and the Netlify function configuration docs, and prices from both pricing pages, all checked November 24, 2026.
Vercel runs functions on Fluid compute, where one instance can serve several requests at once, and gives each invocation a default of 300 seconds that Pro teams can raise to 800, with up to 30 minutes as a beta for Node.js, Bun and Python runtimes. Netlify's synchronous functions have a fixed 60-second limit and a 6 MB buffered payload, so a request that calls a slow upstream API or builds a large export has to move to a background function, which runs for up to 15 minutes and returns 202 to the caller straight away.
For an API that answers in a few hundred milliseconds both limits are generous. They matter for report generation, AI calls that stream for minutes, imports and webhooks that fan out to several services, where Vercel gives more headroom inside a single request and Netlify pushes the work into a separate background function earlier.
Vercel splits durable work into Workflows, which run multi-step jobs with retries, and Queues, a beta topic-and-consumer service with at-least-once delivery. Its Cron Jobs are now a legacy feature being replaced by Schedules, and on Hobby a cron job may run at most once a day. Netlify keeps it simpler with background functions and scheduled functions, but a scheduled function stops after 30 seconds, so a nightly job that takes longer has to trigger a background function.
Neither platform runs a process that stays up, so a queue consumer polling continuously or a WebSocket server holding state has to run on compute somewhere else, and an hour-long job on Vercel has to be broken into Workflow steps.
Netlify Database is managed Postgres built into the platform: migrations in netlify/database/migrations are applied before each production deploy is published, and each deploy preview gets its own database branch copied from production, which makes schema changes in pull requests safer to review. Vercel does not run a database itself and provisions Postgres from Marketplace providers such as Neon, which gives a wider choice and one more vendor and bill.
In both cases functions open short-lived connections, so connection pooling matters once traffic grows.
Pick Vercel for Next.js apps that use the newest framework features and for API routes that occasionally need several minutes. Pick Netlify when the site uses another framework, when a built-in Postgres with per-preview branches is attractive, or when a flat team price with unlimited members suits the team. Pick neither for the backend when it needs long-lived processes or has to run in your own cloud account, and Vercel's Bring Your Own Cloud only covers functions, on Enterprise plans.
Encore is a backend framework with built-in infrastructure, and the usual setup is to leave the frontend on Vercel or Netlify and move the backend into your own AWS or GCP account as long-lived services. The database, queues and buckets are declared in the backend code, and Encore provisions RDS, SNS with SQS, and S3 on AWS, or Cloud SQL, Pub/Sub and Cloud Storage on GCP, per the infrastructure docs.

Run in your terminal to get started locally.
An export that would hit a function limit becomes an endpoint that queues the job and a subscriber that builds the file outside the request, in a service that stays running:
// exports/exports.ts
import { api } from "encore.dev/api";
import { getAuthData } from "~encore/auth";
import { SQLDatabase } from "encore.dev/storage/sqldb";
import { Bucket } from "encore.dev/storage/objects";
import { Topic, Subscription } from "encore.dev/pubsub";
const db = new SQLDatabase("exports", { migrations: "./migrations" });
const files = new Bucket("export-files", { versioned: false });
interface ExportRequested {
exportId: number;
accountId: string;
}
const exportRequested = new Topic<ExportRequested>("export-requested", {
deliveryGuarantee: "at-least-once",
});
// Called by the frontend; returns at once instead of building the file in the request.
// The account comes from the signed-in user, never from the request body.
export const requestExport = api(
{ expose: true, auth: true, method: "POST", path: "/exports" },
async (): Promise<{ exportId: number }> => {
const accountId = getAuthData()!.userID;
const row = await db.queryRow<{ id: number }>`
INSERT INTO exports (account_id, status) VALUES (${accountId}, 'queued') RETURNING id`;
await exportRequested.publish({ exportId: row!.id, accountId });
return { exportId: row!.id };
},
);
const _ = new Subscription(exportRequested, "build-export", {
handler: async ({ exportId, accountId }) => {
// A redelivered message for a finished export does nothing.
const claimed = await db.queryRow<{ id: number }>`
UPDATE exports SET status = 'building'
WHERE id = ${exportId} AND status = 'queued' RETURNING id`;
if (!claimed) return;
try {
let csv = "order_id,total_cents,created_at\n";
const rows = db.query<{ id: number; total_cents: number; created_at: Date }>`
SELECT id, total_cents, created_at FROM orders WHERE account_id = ${accountId} ORDER BY id`;
for await (const r of rows) {
csv += `${r.id},${r.total_cents},${r.created_at.toISOString()}\n`;
}
await files.upload(`${exportId}.csv`, Buffer.from(csv), { contentType: "text/csv" });
await db.exec`UPDATE exports SET status = 'ready' WHERE id = ${exportId}`;
} catch (err) {
// Hand the export back to the queue so the retry can claim it again.
await db.exec`UPDATE exports SET status = 'queued' WHERE id = ${exportId} AND status = 'building'`;
throw err;
}
},
retryPolicy: { minBackoff: "10s", maxBackoff: "5m", maxRetries: 5 },
});
// The frontend polls this and gets a short-lived download link when the file is ready.
export const getExport = api(
{ expose: true, auth: true, method: "GET", path: "/exports/:id" },
async ({ id }: { id: number }): Promise<{ status: string; url?: string }> => {
const row = await db.queryRow<{ status: string }>`
SELECT status FROM exports WHERE id = ${id} AND account_id = ${getAuthData()!.userID}`;
if (!row || row.status !== "ready") return { status: row?.status ?? "missing" };
const { url } = await files.signedDownloadUrl(`${id}.csv`, { ttl: 900 });
return { status: row.status, url };
},
);
-- exports/migrations/1_create_exports.up.sql
CREATE TABLE orders (
id BIGSERIAL PRIMARY KEY,
account_id TEXT NOT NULL,
total_cents INTEGER NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE TABLE exports (
id BIGSERIAL PRIMARY KEY,
account_id TEXT NOT NULL,
status TEXT NOT NULL CHECK (status IN ('queued', 'building', 'ready')),
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
encore run starts Postgres, the topic and the bucket locally, so the queue-then-build flow can be tested end to end on a laptop, and the Pub/Sub docs describe the retry policy and the dead-letter queue a failing export lands in. The Next.js or Astro frontend calls these endpoints through a client generated with encore gen client, as described in the client generation docs, and keeps deploying to Vercel or Netlify as before.
To deploy the backend, connect your AWS or GCP account as described in Connect your cloud account and push. With the GitHub integration, each pull request can also get its own backend preview environment, which pairs with the frontend preview deploys both platforms already create.
A coding agent asked to add a second export type edits one service, adds the table in a migration and runs the flow locally, and the queue and bucket it needs are declared in the same diff.
Best fit: Teams that want to keep their frontend host and run the backend, its database and its queues in their own AWS or GCP account.
Choose Vercel for Next.js-first products and API routes that sometimes run for minutes, and Netlify for framework-agnostic sites, a built-in Postgres with preview branches and flat team pricing. When the backend grows past functions, keep the frontend where it is and move the backend to a platform built for long-lived services in your own cloud account.
Vercel builds Next.js and supports new Next.js features first, so it is the lower-risk choice for apps that use the latest App Router and caching features. Netlify runs Next.js through its adapter and covers the common features, and it is a strong choice for sites built with other frameworks.
Vercel Functions default to 300 seconds, and Pro and Enterprise teams can raise that to 800 seconds, with up to 30 minutes as a beta for some runtimes. Netlify synchronous functions stop at 60 seconds, scheduled functions at 30 seconds and background functions at 15 minutes.
Yes. Netlify Database is a managed Postgres database on credit-based plans, with migrations applied on every deploy and a separate database branch for each deploy preview. Vercel offers Postgres through Marketplace integrations with providers such as Neon instead of running its own.
Build the backend with Encore, declaring the endpoints, database, queues and buckets in code, and deploy it to your own AWS or GCP account, where it runs as long-lived services instead of functions. The frontend keeps deploying to Vercel or Netlify and calls the backend through a generated, typed client.
Deploy to your cloud on AWS and Google Cloud
without managing infrastructure
Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.