diff --git a/apps/blog/content/blog/prisma-postgres-the-future-of-serverless-databases/index.mdx b/apps/blog/content/blog/prisma-postgres-the-future-of-serverless-databases/index.mdx index 55f186b9b6..803aea984c 100644 --- a/apps/blog/content/blog/prisma-postgres-the-future-of-serverless-databases/index.mdx +++ b/apps/blog/content/blog/prisma-postgres-the-future-of-serverless-databases/index.mdx @@ -2,6 +2,7 @@ title: "Prisma Postgres: The Future of Serverless Databases" slug: "prisma-postgres-the-future-of-serverless-databases" date: "2025-02-03" +updatedAt: "2026-07-06" authors: - "Nikolas Burk" metaTitle: "Prisma Postgres: The Future of Serverless Databases" @@ -12,10 +13,10 @@ tags: - "announcement" --- -Prisma Postgres is _the_ database for developers—and it’s finally ready for production! Built on Cloudflare, unikernels, and bare metal infrastructure, it enables a unique set of benefits like zero cold starts, global caching, connection pooling, and a lot more! +Prisma Postgres is _the_ database for developers, and it's ready for production! Built on Cloudflare, unikernels, and bare metal infrastructure, it enables a unique set of benefits like zero cold starts, global caching, connection pooling, and a lot more! -:::note[Database limits have been updated since this post] -The **Free** plan now includes **50 databases**, and **paid plans** include **1,000 databases**. See the [pricing page](https://www.prisma.io/pricing) for the latest details. +:::note[Updated in July 2026] +This post originally announced the General Availability of Prisma Postgres in February 2025. We've refreshed the plan limits, feature availability, links, and code samples so they reflect the current product. For the latest limits, see the [pricing page](https://www.prisma.io/pricing). ::: ## Prisma Postgres is ready for production 🎉 @@ -23,11 +24,11 @@ The **Free** plan now includes **50 databases**, and **paid plans** include **1, Prisma Postgres is built on a unique technology stack, based on unikernels and Cloudflare infrastructure. Here are the main features and benefits this enables: - **Zero cold starts**: Instant access to your database without delays. -- **Generous free tier**: 100k operations, 1GiB storage per month & 10 databases. +- **Generous free tier**: 100k operations, 500 MB storage per month & 50 databases. - **Global caching layer**: Query responses are easily cached at the edge. - **Built-in connection pool**: Scale your app without worrying about TCP connections. -- **Performance tips**: AI-powered recommendations for speeding up your queries. -- **Simple pay-as-you-go pricing**: Predictable costs based on operations & storage. +- **Query Insights**: Understand slow queries with AI-generated analysis and suggested fixes. +- **Simple usage-based pricing**: Predictable costs based on operations & storage. Try it now by following the [**Quickstart**](https://pris.ly/ppg-quickstart) or simply run this command in your terminal: @@ -47,7 +48,7 @@ Serverless databases are awesome because of their pay-as-as-you go pricing model Prisma Postgres is the [first serverless database without cold starts](https://www.prisma.io/blog/announcing-prisma-postgres-early-access#why-are-there-no-cold-starts-with-prisma-postgres) thanks to its innovative architecture and milli-second cloud stack running on bare metal machines. -### For free: 100k operations, 1GiB storage & 10 databases +### For free: 100k operations, 500 MB storage & 50 databases Experimenting with a new technology, building prototypes, or working on hobby projects shouldn't cost you any money! Prisma Postgres provides a generous free tier that lets you kick off any project without worrying about costs. @@ -55,17 +56,17 @@ This is possible because Prisma Postgres is [based on unikernels](https://www.pr ![](/prisma-postgres-the-future-of-serverless-databases/imgs/90776da4721482b7372b74a8ace42afe009d86d2-1610x886.png) -As a user, this means you can create an up to ten databases per workspace for free to play around and build small projects with. You also get 100k operations and 1GiB storage that you can use to hack around without worrying about cost. +As a user, this means you can create up to 50 databases per workspace for free to play around and build small projects with. You also get 100k operations per month and 500 MB storage that you can use to hack around without worrying about cost. ### Simple & predictable: Pricing anyone can understand -[Pricing](https://www.prisma.io/pricing?utm_campaign=ppg-ga&utm_source=blog&utm_medium=ga-announcement) for Prisma Postgres is different than for other database providers. Unlike traditional pricing models, it charges for **number of database operations** and **GiB storage**, _not_ for upfront resource allocation, compute hours or egress. +[Pricing](https://www.prisma.io/pricing?utm_campaign=ppg-ga&utm_source=blog&utm_medium=ga-announcement) for Prisma Postgres is different than for other database providers. It charges for **number of database operations** and **GiB storage** rather than upfront resource allocation, compute hours, or egress. Paid plans start at $10 per month with 1M operations, 10 GB storage, and 1,000 databases included. > An **operation** is counted each time you do a create, read, update or delete with Prisma ORM against your Prisma Postgres instance. -With this kind of pricing model, one of the first concerns developers typically have is: How to prevent an enormous, _surprise_ bill in case there's a lot of unforeseen traffic"? Short answer: You can put _spend limits_ in place in order to control your budget and avoid excessive costs. +With this kind of pricing model, one of the first concerns developers typically have is: How to prevent an enormous, _surprise_ bill in case there's a lot of unforeseen traffic"? Short answer: On paid plans, you can put _spend limits_ in place in order to control your budget and avoid excessive costs. On the Free plan, you never get billed at all. -![](/prisma-postgres-the-future-of-serverless-databases/imgs/171f49afc3bcf478194356709a65fee196225381-2314x1220.png) +![Prisma Postgres pricing plans: Free, Starter at $10 per month, Pro at $49 per month, and Business at $129 per month, each listing included operations, storage, and databases](/prisma-postgres-the-future-of-serverless-databases/imgs/51ade72d0549e0f568f79fbbc831cfbc70bb0c2f-3156x1906.png) Our goal is to make pricing substantially more simple than other providers. This pricing model lets you predict your usage and reason about cost more easily based on the _actual_ traffic your application will see. With traditional pricing, the burden of scaling is on you: If you have low-traffic periods, and high-traffic periods (like most production apps) then you either under-provision and risk having downtime in busy periods, or you over-provision and pay a lot more for your database. @@ -73,12 +74,12 @@ With Prisma Postgres' usage-based pricing, you truly pay only for what you need! ### Serve data from a global cache close to your users -One major benefit of Prisma Postgres is that you can configure database caching on a _per-query_ level. Database results are then cached at the edge and will be served to your application from a close, physical location. +One major benefit of Prisma Postgres is that you can configure database caching on a _per-query_ level. Database results are then cached at the edge and will be served to your application from a close, physical location. Caching is enabled by extending Prisma Client with the [`@prisma/extension-accelerate`](https://www.npmjs.com/package/@prisma/extension-accelerate) extension. Here's how easy it is to configure a cache strategy, just add the `cacheStrategy` option with `ttl` and/or `swr` options: ```ts -const users = await prisma.post.findMany({ +const posts = await prisma.post.findMany({ where: { published: true }, cacheStrategy: { ttl: 60, @@ -86,9 +87,9 @@ const users = await prisma.post.findMany({ } }) ``` -The `ttl` ([Time-To-Live](https://www.prisma.io/docs/accelerate/caching#time-to-live-ttl)) and `swr` ([Stale-While-Revalidate](https://www.prisma.io/docs/accelerate/caching#stale-while-revalidate-swr)) options indicate to Prisma Postgres how long the currently cached data should be considered _fresh_ and whether an update of the cache should happen in the background. Prisma Postgres' cache also supports advanced use cases like [on-demand cache invalidation](https://www.prisma.io/docs/accelerate/caching#on-demand-cache-invalidation). +The `ttl` (Time-To-Live) and `swr` (Stale-While-Revalidate) options indicate to Prisma Postgres how long the currently cached data should be considered _fresh_ and whether an update of the cache should happen in the background. Prisma Postgres' cache also supports advanced use cases like [on-demand cache invalidation](https://www.prisma.io/docs/accelerate/reference/api-reference#accelerateinvalidate) via cache tags. -You can learn more about different [caching strategies and their use cases](https://www.prisma.io/docs/accelerate/caching#selecting-a-cache-strategy) in our docs. +You can learn more about the [`cacheStrategy` options](https://www.prisma.io/docs/accelerate/reference/api-reference#cachestrategy) in our docs. ### Scale effortlessly with built-in connection pooling @@ -158,13 +159,12 @@ const user = await prisma.user.create({ ``` ```ts const posts = await prisma.post.findMany({ - include: { + where: { author: { - where: { - email: { endsWith: "prisma.io" } - } + email: { endsWith: "prisma.io" } } - } + }, + include: { author: true } }) ``` ```ts @@ -175,16 +175,16 @@ const posts = await prisma.post.updateMany({ ``` -> Prisma Postgres is designed to work seamlessly with Prisma ORM, leveraging its tightly integrated connection pool for optimal performance and scalability. While direct TCP connections for other ORMs aren't currently available, we're actively working on expanding compatibility in the future. -> If you want to use query editors or other tooling, you can use our [local TCP tunnel](https://prisma.io/docs/postgres/tcp-tunnel) to interact with Prisma Postgres outside of the ORM. +> Prisma Postgres is designed to work seamlessly with Prisma ORM, leveraging its tightly integrated connection pool for optimal performance and scalability. Since October 2025, [direct TCP connections are Generally Available](https://www.prisma.io/blog/orm-v6-17-0-new-usage-metrics-and-direct-connections-in-ga-for-prisma-postgres) as well: you can connect with Drizzle, Kysely, TypeORM, `psql`, or any other Postgres-compatible library and database GUI. +> Learn more about [connecting to your database](https://www.prisma.io/docs/postgres/database/connecting-to-your-database) in our docs. -### Netlify, Vercel & IDX: Try one of our integrations +### Netlify, Vercel & Firebase Studio: Try one of our integrations -Prisma Postgres is available via a [Netlify extension](https://pris.ly/ppg-netlify-ext) which allows you to easily connect your Prisma Postgres instance with a Netlify site. If you're curious, you can follow our [tutorial to deploy a Next.js site](https://www.prisma.io/docs/postgres/integrations/netlify#example-deploy-a-nextjs-template-with-prisma-postgres) with Prisma Postgres to Netlify. +Prisma Postgres is available via a [Netlify extension](https://pris.ly/ppg-netlify-ext) which allows you to easily connect your Prisma Postgres instance with a Netlify site. If you're curious, you can follow our [guide to deploy a Next.js site](https://www.prisma.io/docs/guides/postgres/netlify) with Prisma Postgres to Netlify. -An integration for Vercel Marketplace is coming soon. In the meantime, you can check out our official [Next.js 15 with Prisma Postgres example](https://github.com/prisma/nextjs-prisma-postgres-demo). +Prisma Postgres is also available on the [Vercel Marketplace](https://www.prisma.io/blog/connect-your-apps-to-prisma-postgres-via-vercel-marketplace-integration), so you can provision a database directly from your Vercel dashboard. See the [Vercel guide](https://www.prisma.io/docs/guides/postgres/vercel) for the full setup, or check out our official [Next.js with Prisma Postgres example](https://github.com/prisma/nextjs-prisma-postgres-demo). -We've also collaborated with the folks from Google's [Project IDX](https://idx.google.com/), an amazing online IDE, and created a template so you can try Prisma Postgres without leaving your browser. It'll be live very soon! +We've also collaborated with the folks from Google's [Firebase Studio](https://studio.firebase.google.com/) (formerly Project IDX), an amazing online IDE, and created a [template](https://pris.ly/idx-starter) so you can try Prisma Postgres without leaving your browser. ## Built on next-generation infrastructure @@ -200,7 +200,7 @@ Unikernels have been around for a while and we have observed them as an emerging > Unikernels are famous for providing excellent performance in terms of boot times, throughput and memory consumption, to name a few metrics. > -> [Unikraft: Fast, Specialized Unikernels the Easy Way](https://dl.acm.org/doi/abs/10.1145/3447786.3456248) (Research paper, EuroSys 21)Announcing: Prisma Postgres Integration for Vercel Marketplace +> [Unikraft: Fast, Specialized Unikernels the Easy Way](https://dl.acm.org/doi/abs/10.1145/3447786.3456248) (Research paper, EuroSys 21) Together with Unikraft, we were able to reduce the Prisma Postgres binary image to [less than 20%](https://www.prisma.io/blog/announcing-prisma-postgres-early-access#the-prisma-postgres-unikernel-binary-is-5-times-smaller-than-the-original-postgresql-image) of the size of the original PostgreSQL image, making the Prisma Postgres architecture even more efficient. @@ -214,15 +214,15 @@ The cache is implemented via Cloudflare Workers (so it caches data at the edge) > If you're curious about the details of the Prisma Postgres technology stack and how it works under the hood, check out this technical deep dive: [**Cloudflare, Unikernels & Bare Metal: Life of a Prisma Postgres Query**](https://www.prisma.io/blog/cloudflare-unikernels-and-bare-metal-life-of-a-prisma-postgres-query). -## We're just getting started! +### Looking ahead: Prisma Next -The official General Availability launch of Prisma Postgres today is a major milestone for us as a company! We are incredibly grateful for the strong support, valuable feedback and overall excitement shared by our community in the past months. Without all of you, we would not have been able to bring Prisma Postgres to this point. Thank you 💚 +Prisma Postgres also pairs with [Prisma Next](https://www.prisma.io/blog/prisma-next-early-access-write-your-contract-prompt-your-agent-ship-your-app), the next generation of Prisma ORM, available in Early Access today and becoming Prisma 8 at GA. In Prisma Next, your schema is a single centralised data contract that both you and your coding agent work against, with type-safe queries expressed in terms of your models. -But we are not stopping here: Get ready for some more exciting announcements in the next weeks. +It's fast, too: in [our published benchmark](https://www.prisma.io/blog/prisma-next-performance-benchmark), a fork of the open-source drizzle-benchmarks suite, Prisma Next reaches roughly 90% of the raw `pg` driver's speed and ships a client of about 148.5 KB gzipped. It works with [Prisma Postgres](https://www.prisma.io/postgres) out of the box. For new projects, especially ones built with AI coding agents, it's the direction to watch. -**Also, this week we'll continue sharing amazing news and resources about Prisma Postgres every day!** +## We're just getting started! -We'd also love to see you during our [livestream](https://www.youtube.com/live/JYLSdLrKL1k?feature=shared) on Friday, 10am ET | 4pm CET. We're going to explore what you can build with Prisma Postgres and have an engineer join us for a technical deep dive. +The official General Availability launch of Prisma Postgres in February 2025 was a major milestone for us as a company! We are incredibly grateful for the strong support, valuable feedback and overall excitement shared by our community. Without all of you, we would not have been able to bring Prisma Postgres to this point. Thank you 💚 Let us know what features you'd like to see us add to Prisma Postgres next: Reach out to us on [X](https://pris.ly/x) and [LinkedIn](https://pris.ly/linkedin), subscribe to our [YouTube channel](https://pris.ly/youtube), and join our [Discord](https://pris.ly/discord). diff --git a/apps/blog/public/prisma-postgres-the-future-of-serverless-databases/imgs/171f49afc3bcf478194356709a65fee196225381-2314x1220.png b/apps/blog/public/prisma-postgres-the-future-of-serverless-databases/imgs/171f49afc3bcf478194356709a65fee196225381-2314x1220.png deleted file mode 100644 index 26fa6969b1..0000000000 Binary files a/apps/blog/public/prisma-postgres-the-future-of-serverless-databases/imgs/171f49afc3bcf478194356709a65fee196225381-2314x1220.png and /dev/null differ diff --git a/apps/blog/public/prisma-postgres-the-future-of-serverless-databases/imgs/51ade72d0549e0f568f79fbbc831cfbc70bb0c2f-3156x1906.png b/apps/blog/public/prisma-postgres-the-future-of-serverless-databases/imgs/51ade72d0549e0f568f79fbbc831cfbc70bb0c2f-3156x1906.png new file mode 100644 index 0000000000..a17f4febb6 Binary files /dev/null and b/apps/blog/public/prisma-postgres-the-future-of-serverless-databases/imgs/51ade72d0549e0f568f79fbbc831cfbc70bb0c2f-3156x1906.png differ