Deploying a DBOS App on Google Cloud Run
This guide covers deploying a DBOS application to Google Cloud Run with a Cloud SQL for PostgreSQL database. It includes best practices for security, availability, and scalability. This guide assumes DBOS Conductor is hosted separately.
Choosing a Cloud Run Execution Mode
Cloud Run offers three execution modes, each mapping differently to DBOS workloads:
- Service handles HTTP requests and auto-scales based on traffic and CPU usage. Best for synchronous workflows.
- Worker Pool runs always-on instances with no HTTP listener. Best for queue-heavy applications that need all DBOS background services online at all times.
- Job runs a container to completion and exits. Useful for periodic batch work with no always-on requirement.