~/talk

Serverless Prisma 2 with GCP Cloud Run

Talkat Prisma Day 2020 · 2020-06-25..06-26· [cloud-infrastructure, serverless]
links:none on file
slides:none on file

Step-by-step recipe for running Prisma 2 in production: package a GraphQL Nexus API with a multistage Docker build that caches package.json, installs production deps before dev deps and nohoists common packages, shrinking images from ~1.2 GB to 200–300 MB. Deploy the image to Cloud Run + Cloud SQL, create a service account with secret and Cloud SQL permissions, inject secrets at startup into a .env, run migrations in CI using the same container, and expect ~6s cold starts and a recommended instance concurrency of ~5 (DB limits ≈33).

AI-written summary · about

  1. 0:00Introduction
  2. 1:15CLI
  3. 1:48Deployment
  4. 2:37Containers
  5. 3:28Dockerfile
  6. 5:34Multistage build
  7. 9:40Source code
  8. 11:08Drop privileges
  9. 11:47Why Cloud Run
  10. 12:56Database
  11. 14:36Postgres Database
  12. 15:15GCP Admin API
  13. 15:55New Database
  14. 16:08Migration
  15. 17:23Secrets
  16. 18:30Secret Manager
  17. 18:53Custom Script
  18. 19:36API Package
  19. 20:05Create Service Account
  20. 20:44Create Service in GCP
  21. 22:50Drawbacks
  22. 24:29Code
  23. 24:59Conclusion
  24. 25:22QA
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.