Data is an integral part of the web. As JavaScript and TypeScript frameworks make it easier than ever to server-render just-in-time data, it’s time to make databases a first-class part of Vercel’s frontend cloud.
Today, we’re excited to announce a suite of serverless storage solutions now available on Vercel, powered by some of the best infrastructure providers in the industry.
- Vercel KV: A serverless Redis solution that’s easy and durable, powered by Upstash
- Vercel Postgres: A serverless SQL database built for the frontend, powered by Neon
- Vercel Blob: A solution to upload and serve files at the edge, powered by Cloudflare R2
Why now?
Driven by the need for both performance and personalization, frameworks are becoming server-first and edge-first. This shift is exemplified by React Server Components and the introduction of streaming infrastructure into our runtimes. These capabilities make it easier than ever to fetch data from a database or other data sources, within the server component itself.
Simultaneously, as the world moves away from monolithic architectures to composable ones, there’s no shortage of options for backends and databases. But for new projects, the choice can still be paralyzing.
In the spirit of being the end-to-end solution for building on the web, we are introducing solutions that are open, easy to use, and scale as efficiently as our frontends.
Vercel KV: A durable Redis database
A key-value store like Redis is one of the most common tools developers reach for when managing things like rate-limiting, session management, or application state.
Today, we’re introducing Vercel KV, a serverless, Redis-compatible, easy-to-use, and highly durable database. Vercel KV enables you to create Redis-compatible databases that can be written to and read from Vercel’s Edge Network in regions you specify, with little configuration needed.
import kv from '@vercel/kv';
export async function getPrefs() {
const prefs = await kv.get('prefs');
export async function updatePrefs(prefs: Record<string, string>) {
return kv.set('prefs', prefs);
We’ve partnered with Upstash to deliver tooling designed to embrace serverless, that persists in memory and on disk by default. This means it can be used to persist state, without risk of losing your data when a server crashes.
Vercel Postgres: Complex data made easy
PostgreSQL is the preferred way of handling relational data for many developers. We’ve partnered with Neon to introduce Vercel Postgres, the first serverless SQL database built for the frontend cloud.
import { sql } from '@vercel/postgres';
import { redirect } from 'next/navigation';
async function create(formData: FormData) {
const { rows } = await sql`
INSERT INTO products (name)
VALUES (${formData.get('name')})
redirect(`/product/${rows[0].slug}`);
export default function Page() {
<input type="text" name="name" />
<button type="submit">Submitbutton>
With Vercel Postgres, you get a fully managed, highly scalable, fault-tolerant database that delivers high performance and low latency for your web applications. Vercel Postgres is designed to work seamlessly with the Next.js App Router and Server Components and other frameworks like Nuxt and SvelteKit, making it easy to fetch data from your Postgres database to render dynamic content on the server at the speed of static.
You can use Vercel Postgres to query, insert, update, or delete data directly inside your React Server Components, providing you with powerful server-first data mutations and less client-side JavaScript.
Vercel Blob: Easy file storage at the edge
Vercel Blob is a fast, easy, and efficient solution for storing files in the cloud. It provides an effortless yet powerful storage API built entirely on top of web standards without the n