Backends on Vercel

Backends on Vercel

Backends deployed to Vercel receive the benefits of Vercel's infrastructure, including:

Zero-configuration backends

Deploy the following backends to Vercel with zero-configuration.

Elysia

Ergonomic framework for humans

Deploy

Express

Fast, unopinionated, minimalist web framework for Node.js

Deploy View Demo

FastAPI

FastAPI framework, high performance, easy to learn, fast to code, ready for production

Deploy View Demo

Fastify

Fast and low overhead web framework, for Node.js

Deploy

Flask

The Python micro web framework

Deploy

H3

Universal, Tiny, and Fast Servers

Deploy

Hono

Web framework built on Web Standards

Deploy View Demo

Koa

Expressive middleware for Node.js using ES2017 async functions

Deploy

NestJS

Framework for building efficient, scalable Node.js server-side applications

Deploy

Nitro

Nitro is a next generation server toolkit.

Deploy View Demo

To process background tasks with Python, you can deploy Celery or Dramatiq workers as queue-triggered Vercel Functions.

Adapting to Serverless and Fluid compute

If you are transitioning from a fully managed server or containerized environment to Vercel’s serverless architecture, you may need to rethink a few concepts in your application since there is no longer a server always running in the background.

The following are generally applicable to serverless, and therefore Vercel Functions (running with or without Fluid compute).

WebSockets

Vercel Functions can serve WebSocket connections when Fluid compute is enabled. WebSocket connections follow Vercel Function limits, including maximum duration, so clients should handle reconnects when a connection closes.

Store persistent state, rooms, presence, and pub/sub coordination in an external data store instead of relying on in-memory state. Learn more in the WebSockets documentation.

Database Connections

To manage database connections efficiently, use the attachDatabasePool function from @vercel/functions.