A head-to-head comparison of Vercel and AWS Amplify for a web app with a backend: hosting and server rendering limits, databases and auth, background work, pricing plans and where the app runs, with an example of a backend that deploys to your own AWS account.

Vercel is the platform behind Next.js, and it runs a frontend with server rendering, functions and preview deployments on its own infrastructure.
AWS Amplify does the same job inside an AWS account, and its current plans add a Postgres database, a data API and sign-in, so the choice often comes down to how much backend the app needs and which account should own it.
Vercel figures come from its pricing page, function limits and Queues docs, and Amplify figures from the Amplify pricing page and the Amplify quotas, checked December 1, 2026.
A Vercel function exists for the length of a request, with a default limit of 300 seconds and longer durations that can be configured, which leaves room for an API route that calls a slow upstream or generates a report. Vercel also ships support for new Next.js releases on the day they land, since the same company builds both.
Amplify runs server-rendered pages and API routes as hosting compute with a 60 second ceiling per invocation, 2,048 MB of memory and a 6 MB request body, while middleware stops at 10 seconds. That is enough for pages and short API calls, and anything longer, such as an import or a batch of emails, has to move to Lambda, a queue or a container service in the same account.
Vercel does not run a database or an auth service of its own. Postgres, Redis and sign-in come from partners in the Vercel Marketplace, each with its own plan, and connections from functions that scale out need a pooler or a serverless driver. Background work and recurring jobs run on Vercel Queues and Schedules, which are both in beta.
Amplify gives each app one backend with a Postgres database, a REST data API and sign-in, sized in Backend Compute Units of about 2 GiB of memory each. The data API returns at most 1,000 rows per read and times out queries from signed-in users after 8 seconds, and backends are available in nine AWS Regions. Schedules, queues and object storage are separate AWS services, so a backend with a nightly job or a worker ends up wiring EventBridge, SQS and IAM next to the Amplify app.
Both start free and charge $20 a month for Pro. Amplify Pro includes 100 vCPU-hours of hosting compute, 300 Backend Compute Unit hours and 10 GB of database storage for the whole account with no seat charges, and when an allowance runs out that part of the app pauses unless overages are turned on. Vercel Pro includes a usage allowance and bills usage above it, so a traffic spike raises the invoice instead of pausing the site.
Encore is a backend framework with built-in infrastructure, and it covers the part of the app that outgrows a request-length function: services with their own database, Pub/Sub topics for background work and cron jobs, deployed to your own AWS account as Fargate services with RDS, SNS and SQS, as the AWS infrastructure docs describe. The frontend stays on Vercel or Amplify and calls the backend through a typed client from encore gen client.

Run in your terminal to get started locally.
In a waitlist with a welcome email, the service stores the signup, publishes an event and sends the email from a subscriber that skips anyone it has already welcomed, so a retried delivery never sends twice. The waitlist folder also needs an encore.service.ts that exports new Service("waitlist"):
// waitlist/waitlist.ts
import { api, APIError } from "encore.dev/api";
import { SQLDatabase } from "encore.dev/storage/sqldb";
import { Topic, Subscription } from "encore.dev/pubsub";
import { CronJob } from "encore.dev/cron";
import log from "encore.dev/log";
const db = new SQLDatabase("waitlist", { migrations: "./migrations" });
interface Joined {
id: number;
}
export const joined = new Topic<Joined>("waitlist-joined", {
deliveryGuarantee: "at-least-once",
});
interface JoinRequest {
email: string;
}
interface JoinResponse {
id: number;
}
export const join = api(
{ expose: true, method: "POST", path: "/waitlist" },
async (req: JoinRequest): Promise<JoinResponse> => {
const email = req.email.trim().toLowerCase();
if (!email.includes("@")) throw APIError.invalidArgument("a valid email is required");
const created = await db.queryRow<{ id: number }>`
INSERT INTO signups (email) VALUES (${email})
ON CONFLICT (email) DO NOTHING
RETURNING id`;
if (created) {
await joined.publish({ id: created.id });
return created;
}
const existing = await db.queryRow<{ id: number }>`SELECT id FROM signups WHERE email = ${email}`;
return { id: existing!.id };
},
);
const _ = new Subscription(joined, "send-welcome", {
handler: async ({ id }) => {
const row = await db.queryRow<{ email: string }>`
UPDATE signups SET welcomed_at = now()
WHERE id = ${id} AND welcomed_at IS NULL
RETURNING email`;
if (!row) return; // already welcomed on an earlier delivery
log.info("sending welcome email", { email: row.email });
},
});
interface Stats {
total: number;
lastDay: number;
}
export const stats = api(
{ expose: false, method: "POST", path: "/waitlist/stats" },
async (): Promise<Stats> => {
const row = await db.queryRow<Stats>`
SELECT count(*)::int AS "total",
(count(*) FILTER (WHERE created_at > now() - interval '1 day'))::int AS "lastDay"
FROM signups`;
log.info("waitlist stats", { total: row!.total, lastDay: row!.lastDay });
return row!;
},
);
const daily = new CronJob("waitlist-stats", {
title: "Log daily waitlist growth",
schedule: "0 8 * * *",
endpoint: stats,
});
-- waitlist/migrations/1_create_signups.up.sql
CREATE TABLE signups (
id BIGSERIAL PRIMARY KEY,
email TEXT NOT NULL UNIQUE,
welcomed_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
encore run starts Postgres locally, applies the migration and runs the subscriber in process. A POST /waitlist is how you exercise that path: the endpoint inserts the signup and publishes the event, and the in-process subscriber sets welcomed_at and logs the welcome email. Cron jobs do not run locally, so the daily stats are checked by calling the endpoint the job points at. The Pub/Sub docs cover retries and dead-letter queues, and the cron docs cover schedules, which the Encore platform manages without extra cloud resources.
To deploy, follow Connect your cloud account and push, and when an AI coding agent adds a referral reward to the waitlist, the new column, the event and the subscriber are one change it can run with encore run before anyone deploys it.
Best fit: Teams that keep the frontend on Vercel or Amplify and want the backend, its database and its background work in their own AWS account, declared next to the code.
Choose Vercel for a Next.js app that wants new framework features first and longer functions, and Amplify for an app that should live in an AWS account with Postgres and sign-in included in one plan. When the backend grows past request-length work, Encore runs it as services in your own AWS account while either platform keeps serving the frontend.
Amplify is the better fit when the app should run inside an AWS account and the built-in Postgres database, data API and sign-in cover the backend. Vercel is the better fit for Next.js projects that want the newest framework features first and functions with a 300 second default and configurable longer durations.
Vercel functions default to 300 seconds, and longer durations are configurable. An Amplify hosting compute invocation, which serves server-rendered pages and API routes, is limited to 60 seconds and 2,048 MB of memory, and Amplify middleware to 10 seconds.
Yes. The entry prices match, with a free plan on both and a $20 a month Pro plan. Amplify Pro covers the whole team with no per-seat charge and pauses a resource at its allowance unless overages are turned on, and other AWS services the app uses are billed at their own rates.
Build the backend with Encore, declaring its database, topics and cron jobs in code, connect your AWS account and push. Encore deploys the services to Fargate with RDS, SNS and SQS in that account, and the frontend calls it through a client generated with encore gen client.
Own your AWS or GCP cloud without giving up PaaS speed
Define databases, Pub/Sub, cron jobs, and object storage directly in TypeScript or Go. Encore provisions everything in your own cloud account with zero Terraform or lock-in.