惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
IT之家
IT之家
Google DeepMind News
Google DeepMind News
D
Docker
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 【当耐特】
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
月光博客
月光博客
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Vercel News

Vercel Open Source Program: Winter 2026 cohort How Notion Workers run untrusted code at scale with Vercel Sandbox How we run Vercel's CDN in front of Discourse From idea to secure checkout in minutes with Stripe Building Slack agents can be easy Scaling redirects to infinity on Vercel Advancing Python typing Gamma builds design-first agents with Vercel How Avalara turns pipe dreams into patent-pending with v0 Keeping community human while scaling with agents How OpenEvidence built a healthcare AI that physicians actually trust Security boundaries in agentic architectures Skills Night: 69,000+ ways agents are getting smarter Video Generation with AI Gateway We Ralph Wiggumed WebStreams to make them 10x faster How Stably ships AI testing agents in hours, not weeks How we built AEO tracking for coding agents Anyone can build agents, but it takes a platform to run them Introducing Geist Pixel The Vercel AI Accelerator is back with $6m in credits Making agent-friendly pages with content negotiation The Vercel OSS Bug Bounty program is now available Introducing the new v0 Run untrusted code with Vercel Sandbox, now generally available How Stripe built a game-changing app in a single flight with v0 How Sensay went from zero to product in six weeks AGENTS.md outperforms skills in our agent evals Agent skills explained: An FAQ Testing if "bash is all you need" AWS databases are now live on the Vercel Marketplace and v0
Understanding Vercel Functions - Vercel – Vercel
Lee Robinson · 2024-07-05 · via Vercel News

4 min read

Vercel Functions run code in response to user traffic without the need to manage your own infrastructure, provision servers, or manage hardware.

This can provide some advantages over traditional infrastructure, including:

Link to headingSecure and always up-to-date environments

With traditional infrastructure, you need to ensure your servers are properly configured, patched, and monitored for vulnerabilities. This can be additional maintenance work (especially for small teams or individual developers) or downtime (to install updates and restart the server).

For example, this is similar to running and managing a WordPress instance versus using a fully managed service.

With Vercel Functions, every workload is isolated to minimize the attack surface area of a malicious actor. The underlying infrastructure like the OS, kernel, and hypervisor layers are patched automatically. Node.js runtime updates are released automatically, including critical security vulnerability patches.

Link to headingVulnerability surface

Vercel ensures your compute is always running on a secure, up-to-date environment, protected against vulnerabilities.

Layer

Vercel

Virtual Private Server (VPS)

OS

Vercel Managed

Customer Managed

Runtime

Vercel Managed

Customer Managed

Hypervisor

Vercel Managed

VPS Managed

User Code

Customer Managed

Customer Managed

Learn more about our shared responsibility model. Enterprise customers can also purchase dedicated, isolated build and compute through Vercel Secure Compute.

Link to headingPredictable performance

With traditional infrastructure, you are responsible for managing and scaling resources to meet demand. Vercel Functions scale automatically based on incoming requests and don't compete for resources. This eliminates the risk of queuing on the event loop, which can affect the latency of your application.

While this scalability is beneficial, it must also be paired with spend controls and observability into usage.

For optimal performance, Vercel Functions are powered by Rust and have advanced bytecode caching. This makes startup times faster and more consistently low-latency.

Link to headingHigh availability

Vercel Functions provide high availability out of the box.

You don't need to worry about server failures or downtime, as functions scale and failover automatically across availability zones (and even regions). Further, features like Instant Rollback and Skew Protection provide more ways to ensure your site is always online.

This level of resilience requires a large investment in infrastructure and monitoring when maintaining your own infrastructure.

Link to headingAutomatic downscaling and deprovisioning

Vercel Function can handle extremely variable traffic patterns, scaling up to 30,000 concurrent requests (or 100,000+ on Enterprise) without any manual intervention. This makes functions a great choice for ecommerce, media sites, or startup launches that are likely to attract lots of attention.

Traditional infrastructure can provide some cost efficiencies, with dedicated servers allowing unlimited data transfer for a fixed price. This does, however, require maintenance and manual management. After reaching the limits of the current infrastructure you have provisioned, you need to purchase (or rent) larger hardware.

Running compute that scales on demand (and back down to zero) allows you to have more granular control over your spend. You only pay for the resources you use during a large traffic event and then return to your baseline spend, without needing to change your underlying hardware setup.

Vercel creates cloud infrastructure based on your framework code. This flexibility, combined with our infinite preview environments, means you can quickly and easily spin up new compute infrastructure to test your next big idea.

And when you're done? Don't worry about leaving compute running forever for an experiment. You can rest assured (with your site behind Deployment Protection) your usage (and cost) scales to zero.

Link to headingReal-time usage and spend controls

Scalability shouldn't come at the risk of "denial of wallet", which is why we provide recursion protection, spend controls, and an advanced Firewall.

While servers offer predictable spend, Vercel provides tools to control costs and avoid unexpected bills, while still enabling your business to handle unexpected traffic surges.

You can control the maximum duration functions run, monitor usage in real time, block traffic patterns, and set both soft and hard limits based on your spend. These alerts can be sent in the Vercel dashboard, through email, or even SMS. This visibility and control allows you to optimize your usage and keep costs under control.

Link to headingOut-of-the-box observability

Infrastructure platforms usually require you to choose your own tools for observability.

While this allows flexibility, it does require more configuration and potentially vendoring solutions to understand runtime performance, errors, and logs.

Vercel Functions integrate with our observability suite for build and runtime logs, advanced traffic monitoring, and the ability to drain logs to external services if you prefer.

Quickly identify the root cause of persistent errors and customer issues with Logs.Quickly identify the root cause of persistent errors and customer issues with Logs.

Quickly identify the root cause of persistent errors and customer issues with Logs.

We have also integrated support for OpenTelemetry (OTEL) tracing. When viewing runtime logs, you can view the status, duration, URL, and even metrics for outgoing requests.

Screenshot of new requests metrics, showing 5 outgoing fetch requests with traces on the sideScreenshot of new requests metrics, showing 5 outgoing fetch requests with traces on the side

Screenshot of new requests metrics, showing 5 outgoing fetch requests with traces on the side

Link to headingSummary

With automatic scaling, high availability, cost efficiency, and built-in security, Vercel Functions abstract away many of the operational complexities associated with managing infrastructure.

This allows developers to focus on building great products without worrying about the underlying infrastructure. With Vercel's framework-defined infrastructure, developers can automatically use our scalable compute as defined by their frontend framework code.

Vercel Functions give you predictable CPU performance, the ability to run dynamic workloads in multiple regions, automatic SSL and encryption, integrated CI/CD into your Git workflow, preview environments, instant rollbacks, and more—and you can get started for free!

Learn more about Vercel Functions or get started building your first site.