A head-to-head comparison for backends: Netlify Functions against AWS services, execution and payload limits, scheduled and background work, databases, and what changes when the app outgrows a frontend platform.

Netlify is where many frontend projects start, and its functions cover a surprising amount of backend work. AWS is where those projects often end up, once the backend needs more than a function can give it.
This guide compares them for a backend with an API, file uploads, a queue and scheduled jobs, with the numbers that decide when a Netlify site should move its backend.
Netlify limits are from its function configuration docs and AWS's from the Lambda quotas, both checked on November 23, 2026.
Per the configuration docs, a Netlify function has 1024 MB of memory by default, a synchronous execution limit of 60 seconds, a scheduled execution limit of 30 seconds and a background limit of 15 minutes, and none of the three time limits is configurable. Buffered request and response payloads are capped at 6 MB, and streamed responses at 20 MB.
The pressure shows up in three places: report generation or imports that run past 60 seconds, scheduled jobs that need more than 30, and uploads or exports beyond 6 MB. Background functions handle the first two to a point, since they return a 202 right away and run for up to 15 minutes, but they have no queue in front of them, so a burst of calls turns into a burst of invocations with no backpressure.
AWS gives you each building block as a service. SQS and SNS handle queues and fan-out, with retries and dead-letter queues. RDS runs Postgres in your own VPC, S3 stores files with signed URLs, Secrets Manager holds credentials and ECS with Fargate runs containers that stay up as long as you want. The synchronous Lambda payload is also 6 MB each way, per the quotas page, so large files go to S3 on AWS as well.
The price of that range is setup. A VPC, subnets, security groups, IAM roles, a database, a queue and a deploy pipeline each need configuring, and a small team ends up either maintaining Terraform or accepting clicks in the console. Netlify's advantage is that none of it exists, and the project is deployed by the push that builds the site.
Stay on Netlify when the backend is a handful of short endpoints in front of a frontend, with a database from an integration and no queue. Move to AWS when the backend needs work to survive a failed attempt, runs for longer than a function allows, or has to sit in the same private network as its database. A common middle path keeps the frontend on Netlify and moves only the backend, which keeps the deploy previews that frontend teams like.
Encore brings infrastructure from code, so the endpoints, the bucket, the queue and the schedule are declared in the application, and each deploy creates the matching resources in your own AWS account. Per the AWS infrastructure docs, that means Fargate or EKS for compute, S3 for object storage, SNS and SQS for Pub/Sub and RDS for Postgres, and the Netlify frontend can keep calling the API.

Run in your terminal to get started locally.
An upload path that avoids the 6 MB payload limit, with the processing moved to a queue:
// imports/imports.ts
import { api, APIError } from "encore.dev/api";
import { Bucket } from "encore.dev/storage/objects";
import { Topic, Subscription } from "encore.dev/pubsub";
import log from "encore.dev/log";
const uploads = new Bucket("uploads", { versioned: false });
interface UploadReady {
key: string;
}
const uploaded = new Topic<UploadReady>("upload-ready", { deliveryGuarantee: "at-least-once" });
// Step 1: the client asks for a URL and uploads directly, so the file never passes through the API.
export const createUpload = api(
{ expose: true, method: "POST", path: "/imports" },
async (req: { filename: string }): Promise<{ key: string; url: string }> => {
if (!/^[\w.-]{1,100}$/.test(req.filename)) throw APIError.invalidArgument("invalid filename");
const key = `${crypto.randomUUID()}/${req.filename}`;
const { url } = await uploads.signedUploadUrl(key, { ttl: 900 });
return { key, url };
},
);
// Step 2: the client confirms, and the work goes on a queue with retries.
export const complete = api(
{ expose: true, method: "POST", path: "/imports/complete" },
async (req: { key: string }): Promise<{ queued: boolean }> => {
if (!(await uploads.exists(req.key))) throw APIError.notFound("upload not found");
await uploaded.publish({ key: req.key });
return { queued: true };
},
);
new Subscription(uploaded, "process-import", {
retryPolicy: { minBackoff: "30s", maxBackoff: "10m", maxRetries: 5 },
handler: async ({ key }) => {
const data = await uploads.download(key);
log.info("import received", { key, bytes: data.length });
// Parse and load the file here. Runs as long as the handler needs, with retries on failure.
},
});
The upload goes straight to the bucket through a signed URL, as in the object storage docs, so the 6 MB payload cap on the API does not apply. The queue gives the processing step retries with backoff, which a Netlify background function does not provide on its own, and the same code runs against local equivalents under encore run.
To deploy, connect your AWS account as described in Connect your cloud account and push with git push encore.
A coding agent adding a new import type edits one service file, with the bucket, the topic and the handler in the same change, and runs it locally before anything reaches AWS.
Best fit: Teams that outgrew Netlify Functions and want the backend in their own AWS account without taking on Terraform, while the frontend stays on Netlify.
Choose Netlify for frontend-led sites with short endpoints, AWS when the backend needs queues, longer work and a private database, and a code-defined backend on AWS when you want the second without the infrastructure project.
By default a synchronous function runs for up to 60 seconds, a scheduled function for 30 seconds and a background function for 15 minutes, with 1024 MB of memory and a 6 MB buffered request or response payload. The execution limits are not configurable, according to the Netlify documentation.
No, not for every backend. AWS is better when the backend needs queues, databases, private networking or long-running processes, because it offers each as a service. Netlify is better when the product is a frontend with a few short functions, because the deploy workflow and previews are built in.
Do not send the file through the function. Create a signed upload URL for object storage and have the client upload directly, then process the object afterwards. This avoids the 6 MB buffered payload limit on Netlify Functions and on synchronous Lambda invocations.
With Encore you declare the bucket, the Pub/Sub topic and the endpoints in code, and a deploy provisions S3, SNS and SQS and the compute in your own AWS account, with encore run providing local equivalents.
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.