Database Access on the Edge with Cloudflare Workers & Prisma
summary
Demonstrates that Cloudflare Workers can query a central Postgres/MySQL database over HTTP using Prisma Data Proxy, not raw TCP, by migrating ~500 quotes from a JSON file into a database, seeding them, and deploying a 97 KB app to the edge in about 10 minutes. Uses Prisma Client, the data proxy, and wrangler publish; queries, get-by-id and create operations all succeed in live requests, and connection pooling is handled by the proxy.
AI-written summary · about
chapters (12)
- 0:00Database access on edge
- 1:25What is edge and Workers
- 3:12Edge database challenges
- 4:57Prisma benefits
- 6:23Prisma Data Proxy
- 7:27Demo quotes migration
- 10:20Prisma schema modeling
- 11:46JSON to database migration
- 14:04Prisma Data Platform setup
- 17:48Refactoring with Prisma Client
- 19:34Testing and deploying
- 21:51Recap and resources
related talks
31mInteractive web apps at the Edge with Remix, Neon, and Prisma
28mNext.js and Prisma: Databases in Serverless Made Easy
27mThe world's worst pool party: Connection management with Prisma
29mModernize and Robust Applications with Prisma & Azure SQL Server
31mUsing Databases to pull your applications weight
27mPlanetScale and Prisma: building in the cloud
46mBoost your API Development with GraphQL & Prisma
30mData Rainbows - select * from cloud;
