Skip to content

Article · 8 min read · Oct 31, 2026

How Vercel runs modern frameworks, and when to choose it over AWS or Azure

Vercel suits web front ends and framework applications owned by a small team, because it derives the infrastructure from your code and bills for active compute. AWS or Azure suits work that needs private networking, a specific compliance posture, long-running or GPU workloads, or integration with an existing cloud estate, and many setups use both. This guide is based on Vercel's documentation as of October 2026 and is written for technical and operations leaders choosing where to host a business web application.

Farzan AnsariCofounder and CTO

Key takeaways

  • Vercel reads your framework's build output to decide the routes, functions and caching, so a small team ships without writing infrastructure code.
  • Fluid compute lets one function instance serve many requests at once, and active CPU pricing does not bill CPU time while code waits on a database or an AI model.
  • Vercel documents hard limits, including a 4.5 MB request and response body for functions, 19 compute regions and dedicated private networks (Secure Compute) only on its Enterprise plan.
  • AWS and Azure give more control over networking, long-running work, GPUs and compliance scope, at the price of more design and operating effort.
  • A common split is Vercel for the web front end and AWS or Azure for private data and heavy back-end work.

Hosting a business web application used to mean choosing servers. Today you can choose a platform that works out the infrastructure from your code, or a cloud that hands you each building block. Disclosure: Kastling's own website runs on Vercel, and Kastling's cloud service covers AWS and Azure. Everything below about Vercel comes from its public documentation, read in October 2026.

How does Vercel turn a framework into infrastructure?

Vercel calls its approach framework-defined infrastructure. Its 2023 engineering post describes it as an evolution of infrastructure as code, where the deployment environment automatically provisions what the application needs. Infrastructure as code means writing the servers and networks down in configuration files; here the platform reads your application instead.

The mechanism is the build output. When you deploy, Vercel's build step produces static assets and bundled functions, and the platform routes each request to the right one. Static pages become files on the content delivery network (CDN), a set of servers around the world that cache and serve content near users. A page that needs server rendering becomes a function. Vercel's docs describe the Build Output API as a file-based specification that framework authors implement to use Functions, routing and caching.

For a small team, this means a developer pushes code and no one writes load balancer or scaling rules. The tradeoff is that the platform decides the shape of the infrastructure.

Vercel vs AWS vs Azure: how do they compare?

The table compares Vercel with the AWS and Azure services most often used for the same job. It is a summary of the documentation each vendor publishes, so confirm plan details before you commit.

VercelAWS (Amplify, Lambda, ECS)Azure (Static Web Apps, App Service, Container Apps)
Team effortLowest. A framework is detected and each push buildsAmplify is Git-based and low effort. For Fargate you define CPU, memory, networking and IAM policiesStatic Web Apps and App Service are managed. Container Apps adds scaling rules and environments to configure
ControlBounded: 2 to 4 GB of memory per function, set regions, fixed runtimesHighest: functions, containers or virtual machinesHigh: App Service environments, dedicated workload profiles
Compliance fitSOC 2 Type 2, ISO 27001:2022, PCI DSS support, HIPAA BAAs for eligible plansInherits AWS certifications, so check each service's scopeApp Service lists ISO, SOC and PCI compliance
Private networkingDefault is dynamic IPs. Static IPs on Pro and Enterprise; Secure Compute on EnterpriseNative private networks. Fargate tasks get their own network interfaceApp Service has virtual network integration; Container Apps and Static Web Apps (Standard) offer private endpoints
Billing modelActive CPU, provisioned memory and invocations, plus plan feesLambda: requests and duration. Fargate: sized tasks. Amplify: usage-basedApp Service: plan-based, with reservations. Container Apps: per-second vCPU and memory

What are Fluid compute and active CPU pricing?

Traditional serverless starts a new instance for each concurrent request. Vercel's compute documentation explains that in the traditional model one instance processes one request at a time, so a traffic spike starts many instances that mostly wait on I/O (input and output, such as a database call). Fluid compute starts a new instance only when no running instance has spare capacity, and one instance serves many requests concurrently. Vercel calls this optimized concurrency and says it is available on the Node.js and Python runtimes. Per the docs, Fluid compute has been the default for new projects created on or after April 23, 2025.

Billing follows the same logic. Vercel's pricing page says it bills active CPU only while your code runs, pausing during I/O, while provisioned memory bills for the life of the instance. Its example: a function that spends 100 ms processing and 400 ms waiting on a database is billed 100 ms of CPU. Invocations are billed per request.

This suits workloads that spend most of their time waiting, such as calls to AI models. AWS now describes a similar model for some Lambda functions: its pricing page says web functions are billed for requests, the CPU time code actively uses, and memory, while event functions are billed on duration from start to return. Check which type you would use before comparing prices.

How do caching, streaming and previews work?

Incremental Static Regeneration (ISR) serves a cached page and rebuilds it in the background. Vercel's documentation says it follows a stale-while-revalidate pattern: visitors get the cached copy while the page regenerates on a timer or when you call an API. If regeneration fails, Vercel keeps serving the stale page and retries in 30 seconds. It suits catalogs and content that change on a schedule of minutes to hours, not in real time.

Streaming sends a response in pieces as it is produced, which makes AI answers appear sooner. The streaming documentation covers Node.js and Python functions, and the runtimes page notes that a function has a maximum duration, so it cannot stream indefinitely.

A preview deployment is a temporary copy of the application for a branch or pull request. By default Vercel creates one when you push to a non-production branch or open a pull request, with a branch URL and a per-commit URL. Reviewers click a link instead of running code locally. AWS Amplify Hosting offers pull request previews too, and Azure Static Web Apps provides staging environments.

Can Vercel run Python and other backends?

Yes, within its function model. The runtimes page lists Node.js, Bun, Python, Rust, Go, Ruby, Wasm, Edge and a container runtime. The Python runtime runs ASGI and WSGI applications such as FastAPI, Flask and Django as functions, on Python 3.12 by default with 3.13 and 3.14 available. The backend documentation adds zero-configuration deployment for Express, Hono, NestJS and others, and WebSocket support when Fluid compute is on.

Background work needs a different shape. Vercel documents Celery and Dramatiq workers running as queue-triggered functions, and Vercel Workflows for tasks that must pause and resume over minutes to months. Those are Vercel-specific services to learn, so weigh them against a plain queue and worker on AWS or Azure.

What are Vercel's limits?

The following limits come from Vercel's documentation as of October 2026. Several depend on plan.

  • Body size. The maximum request or response body for a function is 4.5 MB, and larger payloads return a 413 error. Large uploads need to go direct to storage.
  • Size and resources. A function bundle can be 250 MB uncompressed (500 MB for Python), and memory tops out at 4 GB and 2 vCPU on Pro and Enterprise. The page lists CPU and memory sizes and no GPU option.
  • Duration. The default is 300 seconds, the Pro and Enterprise maximum is 800 seconds, and 1,800 seconds is in beta.
  • Regions. Vercel runs 19 compute regions, with functions defaulting to Washington, D.C. Pro teams can set up to five function regions, and Enterprise teams can use all of them. Its compliance page says customers choose where code runs, but Vercel may also transfer data to the United States and elsewhere under its data processing addendum, so check that against any residency rule.
  • Networking. Deployments use dynamic IP addresses by default. Static IPs cover outbound traffic on Pro and Enterprise, and Secure Compute, with private networks, VPC peering and VPN, is an Enterprise feature.
  • Cost at sustained scale. Vercel's own guide says servers work well for highly predictable workloads, with stable costs under steady traffic. A service that runs hot all day pays for CPU and memory all day, so price it against reserved capacity.

Vercel does document ways around some of these. Bring Your Own Cloud runs functions as AWS Lambda functions in your own AWS account, on the Enterprise plan with Node.js and Python only.

When should you choose AWS or Azure instead?

Choose AWS or Azure when one of these applies.

  1. Private networking is a requirement. Databases and ERPs that sit in a private network are simpler to reach from inside the same cloud, and Fargate tasks each get their own elastic network interface.
  2. A compliance posture is specified. If a contract or regulator names a cloud, region or isolation model, host there. Vercel's own BYOC guide notes that the option does not currently satisfy FedRAMP.
  3. The work is long-running or needs GPUs. Azure Container Apps bills GPU-seconds as a meter alongside vCPU and memory.
  4. You already run an estate. Existing identity, logging and networking carry over. Azure App Service highlights savings plans and reserved instances for predictable workloads.

Illustrative example: Consider a 60-person company with a marketing site and a customer portal built in Next.js. The portal reads from a database in a private AWS network. The team hosts the web front end on Vercel, and puts a small authenticated API in AWS next to the database, which the front end calls over HTTPS. The alternatives are Secure Compute on Enterprise or, for an AWS-hosted database, AWS PrivateLink or an IP allowlist through Static IPs, each with its own plan requirements. The split keeps previews and caching on Vercel and the data inside the network the security team already controls.

What is the verdict?

Choose Vercel when the work is a web front end or a framework application, a small team owns it, and the data it touches can be reached over authenticated HTTPS. You get previews, caching and scaling without building them.

Choose AWS or Azure when the work needs private networking, a specific compliance posture, long-running or GPU workloads, or fit with an existing estate. Many setups use both. Put the data and heavy work where your controls are, and the front end where your developers are fastest. Price a realistic month before committing, because billing models differ more than list prices suggest.

How Kastling approaches this

Kastling would start from the application, the data it touches and who will run it, then compare hosting options against the constraints above. Kastling's cloud service covers AWS and Azure, and its own website runs on Vercel, so the comparison is made on fit. The team would connect to existing systems, agree how success is measured and keep a named person in control of consequential decisions. See AI & Cloud Infrastructure for the service. For provider choice, read AWS or Azure for AI, and for production operations, running AI in production on AWS and Azure.

Questions

Is Vercel only for Next.js?

No. Vercel's framework documentation lists SvelteKit, Nuxt, Astro, Remix, TanStack and Vite projects, and its backend documentation lists zero-configuration support for Express, Hono, NestJS, FastAPI and Flask among others. Support for individual features, such as streaming or incremental regeneration, varies by framework, so check the support matrix for yours.

Can Vercel run inside our own AWS account?

In one form, yes. Vercel documents Bring Your Own Cloud, which runs the Functions behind a project as AWS Lambda functions in your own AWS account. It requires the Enterprise plan, supports only the Node.js and Python runtimes, and does not currently satisfy FedRAMP or other government certification requirements.

Are preview deployments safe for work that contains private data?

Only if you protect them. Vercel documents Deployment Protection for preview environments, so confirm it is switched on for the project, and keep previews on test data and staging credentials. Treat each preview as a running copy of the application that someone could find.

How hard is it to move off Vercel later?

It depends on how much you use platform-specific features. A standard framework application can be built and hosted elsewhere, but you would need to replace the caching, routing and preview workflow that the platform supplied. Keep business logic and data in your own code and database, and the move stays a hosting change.

Sources

  1. Vercel Blog: Framework-defined infrastructure
  2. Vercel Docs: Frameworks on Vercel
  3. Vercel Docs: What is Compute?
  4. Vercel Docs: Fluid compute
  5. Vercel Docs: Fluid compute pricing
  6. Vercel Docs: Incremental Static Regeneration
  7. Vercel Docs: Streaming
  8. Vercel Docs: Runtimes
  9. Vercel Docs: Python runtime
  10. Vercel Docs: Backends on Vercel
  11. Vercel Docs: Environments
  12. Vercel Docs: Vercel Functions limits
  13. Vercel Docs: Global network and regions
  14. Vercel Docs: Secure Compute
  15. Vercel Docs: Security and compliance measures
  16. Vercel Knowledge Base: Can I get a fixed IP address for my Vercel deployments?
  17. Vercel Knowledge Base: The Complete Guide to Bring Your Own Cloud
  18. AWS: Lambda pricing
  19. AWS Docs: AWS Fargate for Amazon ECS
  20. AWS Docs: Welcome to AWS Amplify Hosting
  21. Microsoft Learn: Overview of Azure App Service
  22. Microsoft Learn: Billing in Azure Container Apps
  23. Microsoft Learn: Azure Static Web Apps hosting plans

Guide · 16 min read

Running AI in production on AWS and Azure: architecture, security, cost and operationsRunning AI in production on AWS or Azure means giving a model the same controls as any business system: identity, secrets, logging, cost limits, fallbacks and a named owner for every operating task. Managed services such as Amazon Bedrock and Azure OpenAI in Microsoft Foundry host the models, but the architecture, data boundaries and day-to-day operations remain your decisions to make and assign. This guide is for IT and operations leaders at companies of roughly 20 to 200 people.Read

Article · 10 min read

The encryption techniques that matter, and what the industry uses by defaultThe types of encryption that matter in practice are AES-256-GCM for stored data, TLS 1.3 for traffic, envelope encryption with a cloud key service for data at rest, Argon2id hashing for passwords, and hybrid post-quantum key exchange, which browsers already use. This guide is for operations, IT and finance leaders who need to know the current default for each job and the questions to put to a vendor. Never invent your own cryptography.Read

Article · 9 min read

How to build a system that handles hundreds of millions of data pointsA high volume data pipeline works in stages: a durable ingestion buffer, stream processing, raw data kept cheaply in object storage as the source of truth, and pre-aggregated rollups that answer the questions people actually ask. The design choice that matters most is deciding those questions first, because they set what you aggregate and how long you keep detail. This guide is for operations and IT leaders at companies of roughly 20 to 200 people who collect sensor, image or event data at volume.Read

One useful email a month.

New guides, tools and practical notes on putting AI to work. No sales sequences.

See how an idea becomes a working solution.

Explore how we scope, build and hand over AI projects, with clear decisions at each stage.