Skip to content

Commit

Permalink
make notes about pulse/accelarete on ppg page
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Nov 4, 2024
1 parent 58366c9 commit 4f3ab4d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions content/200-orm/050-overview/500-databases/250-prisma-postgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,37 @@ Prisma Postgres uses a unique architecture to deliver unmatched efficiency, safe

Learn more about the architecture in our [announcement article](https://pris.ly/ppg-early-access?utm_source=docs).

## Bundling with Prisma Accelerate and Pulse

During the Early Access period, Prisma Postgres comes bundled with [Prisma Accelerate](/accelerate) and [Prisma Pulse](/pulse).

### Using the Client extension for Prisma Accelerate (required)

Because all traffic to Prisma Postgres is routed through Accelerate's cconnection pool, your project must have the [`@prisma/extension-accelerate`](https://www.npmjs.com/package/@prisma/extension-accelerate) npm package installed and apply it to the `PrismaClient` instance you use to interact with your database:

```ts
import { PrismaClient } from '@prisma/client'
import { withAccelerate } from '@prisma/extension-accelerate'

const prisma = new PrismaClient()
.$extends(withAccelerate())
```

### Using the Client extension for Prisma Pulse (optional)

Pulse is able to deliver real-time events from your Prisma Postgres database to your application. If you want to make use of this functionality, you'll need to install the [`@prisma/extension-pulse`](https://www.npmjs.com/package/@prisma/extension-pulse) npm library in your project and apply it to your `PrismaClient` instanc :

```ts
import { PrismaClient } from '@prisma/client'
import { withAccelerate } from '@prisma/extension-accelerate'
import { withPulse } from '@prisma/extension-pulse'

const prisma = new PrismaClient()
.$extends(withAccelerate())
.$extends(withPulse())
```


## Pricing

Prisma Postgres has a pay-as-you-go pricing model for storage and queries and is billed through Prisma Accelerate and Pulse. More details on our [pricing page](https://www.prisma.io/pricing).
Expand Down

0 comments on commit 4f3ab4d

Please sign in to comment.