Skip to content
Dashboard

Serverless servers: Efficient serverless Node.js with in-function concurrency

CTO, Vercel

Building a compute layer that is highly-optimized for interactive workloads, server-rendering, and APIs

Public beta: Enable in-function concurrency today

In-function concurrency, now in public beta, allows a single function instance to handle multiple calls simultaneously. This optimizes efficiency by leveraging idle time, potentially cutting costs by up to 50%.

Enable Now

Link to headingHistory of serverless for interactive workloads

Link to headingThe journey to in-function concurrency

Link to headingPart 1: Establishing a streaming connection

Link to headingPart 2: Rust-powered functions

Link to headingPart 3: Putting it together

Link to headingEfficiency gains

Traditional serverless functions require separate instances for each function call, leaving compute underutilized.Traditional serverless functions require separate instances for each function call, leaving compute underutilized.
Traditional serverless functions require separate instances for each function call, leaving compute underutilized.
With in-function concurrency, a single function instance can utilize already-available compute for new function calls.With in-function concurrency, a single function instance can utilize already-available compute for new function calls.
With in-function concurrency, a single function instance can utilize already-available compute for new function calls.

Link to headingFulfilling the Node.js dream on serverless

Link to headingTrade-offs of the current implementation

Link to headingIt’s still serverless

Link to headingReal-world impact: Verse’s success with in-function concurrency

Many of our API endpoints were lightweight and involved external requests, resulting in idle compute time. By leveraging in-function concurrency, we were able to share compute resources between requests, cutting costs by over 50% with zero code changes.
Aydan Gooneratne Lead Full Stack Developer at Verse

Link to headingTry it out today

Link to headingAcknowledgements

Public beta: Enable in-function concurrency today

In-function concurrency, now in public beta, allows a single function instance to handle multiple calls simultaneously. This optimizes efficiency by leveraging idle time, potentially cutting costs by up to 50%.

Enable Now