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

Copy link to headingHistory of serverless for interactive workloads

Copy link to headingThe journey to in-function concurrency

Copy link to headingPart 1: Establishing a streaming connection

Copy link to headingPart 2: Rust-powered functions

Copy link to headingPart 3: Putting it together

Copy 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.

Copy link to headingFulfilling the Node.js dream on serverless

Copy link to headingTrade-offs of the current implementation

Copy link to headingIt’s still serverless

Copy 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

Copy link to headingTry it out today

Copy 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

Ready to deploy?