Prisma Data Platform API logo

Prisma Data Platform API

Prisma Data Platform API

未知免费developer-tools

Prisma Data Platform API 包含 Prisma Accelerate(全球连接池+缓存)和 Prisma Pulse(DB 实时事件流),增强任意 Postgres / MySQL DB。

适合什么时候用

Prisma ORM 生态最大 (TypeScript ORM 第一选择)

先注意什么

Accelerate 加约 50-100ms 延迟(proxy 跳一次)

第一步先查

console.prisma.io 注册 + 启用 Accelerate / Pulse。Prisma schema 加 directUrl + url。生成 client 即可用。

认证
api_key
CORS
?
HTTPS
注册
?
协议
REST
计费
freemium

可用率 · 30 天窗口

日常巡检数据收集后将在此处显示。
01

关于这个 API

Prisma 是 TypeScript / JavaScript 生态最流行的 ORM(GitHub 39k+ stars),让开发者用 type-safe TypeScript 操作数据库。Prisma Data Platform 是其商业 SaaS 服务,加在 ORM 之上提供两个核心产品:(1) Prisma Accelerate——全球分布式 connection pool + query cache。解决 serverless function 连接 DB 的痛点(Lambda / Workers / Vercel Functions 每次 invoke 都要新建 connection,传统 Postgres 单机 100 connections 限制下大流量会 connection exhausted。Accelerate 作为 proxy 让无限 serverless function 都通过它复用 connection);(2) Prisma Pulse——实时事件流。基于 Postgres logical replication / MySQL CDC 把 DB 数据变化(insert / update / delete)以事件形式 push 给应用(不用自己实现 CDC pipeline)。Accelerate 是日常 Prisma 用户最常用的服务;Pulse 适合需要实时 webhook / 数据同步场景。

02

你可以做什么

  • 1serverless function 连接池(避免 connection exhaustion)
  • 2Prisma ORM 应用 + global cache
  • 3DB CDC change-data-capture(用 Pulse 监听数据变化)
  • 4edge function + DB 加速
03

优劣对比

优点

  • Prisma ORM 生态最大 (TypeScript ORM 第一选择)
  • Accelerate 解决 serverless connection pool 痛点
  • Pulse 给任意 DB 加实时事件流(不用自己改 schema)
  • 免费 tier 够开发

注意事项

  • Accelerate 加约 50-100ms 延迟(proxy 跳一次)
  • Pulse 在 GA 但有 logical replication 配置要求
  • 锁定 Prisma 生态
04

示例请求

通用模板 — 实际 endpoint 请查阅文档替换 <endpoint>。
curl https://www.prisma.io/data-platform/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

快速开始

console.prisma.io 注册 + 启用 Accelerate / Pulse。Prisma schema 加 directUrl + url。生成 client 即可用。

06

常见问题

Accelerate 必须用 Prisma 吗?+

是的。Accelerate 通过 Prisma Client 接入。其他 ORM (TypeORM、Drizzle) 不支持。

07

技术细节

CORS: ?HTTPS: Yes注册: ?开源: No
认证方式
api_key
计费
freemium
速率限制
按 plan
协议
REST
SDK
javascript, typescript
08

标签