Deploy to Google Cloud run (serverless/on demand)

** Gemini 2.5 (free) on Cloud run free-tier **
Checked and confirmed by human, 2025.05.24


Google Cloud Run Free Tier for SilverBullet

Cloud Run’s free tier is designed for low-usage applications and offers the following monthly allowances:

  • CPU Usage: First 180,000 vCPU-seconds per month.
  • Memory Usage: First 360,000 GiB-seconds per month.
  • Requests: First 2 million requests per month.
  • Networking (Egress): First 1 GB of outbound data transfer from North America per month.

How this applies to SilverBullet:

  • Pay-per-use: The key advantage of Cloud Run is that when your SilverBullet instance isn’t actively being used (i.e., you’re not accessing it), it scales down to zero instances, and you don’t pay for idle time. This is critical for keeping costs low.
  • CPU and Memory: SilverBullet is a lightweight application, so it likely won’t consume a lot of CPU or memory unless you’re constantly accessing it or performing heavy operations. For typical personal use (a few hours a day, occasional queries), you should easily stay within the free tier limits for CPU and memory.
  • Requests: 2 million requests per month is a huge allowance for a personal knowledge base. Each time you load a page, save a note, or run a query, it counts as a request. Unless you have extremely frequent automated processes or share it with a massive audience, you’ll stay well within this limit.
  • Networking (Egress): This is the data transfer out of Google Cloud. For a personal note-taking app, your egress will mostly be the text and any images you embed. 1 GB is generally sufficient for personal use. If you store many large images or frequently sync a massive local space, you might start to approach this limit.

Potential Cost Factors to Watch Out For:

  • Persistent Storage: SilverBullet stores its data as Markdown files. Cloud Run itself is stateless, meaning any data stored directly on the container instance will be lost when the instance scales down or is redeployed. To persist your notes, you’ll need a separate storage solution.
    • Cloud Storage: This is the most common and cost-effective option for file storage on Google Cloud. The free tier for Cloud Storage offers 5 GB-months of Standard Storage (in US regions), 5,000 Class A operations, and 50,000 Class B operations, and 100 GB of outbound data transfer from North America. This is usually plenty for personal notes. SilverBullet could be configured to use a Google Cloud Storage bucket for its “space” (where the Markdown files live).
    • Cloud SQL (or other databases): While SilverBullet doesn’t use a traditional relational database, if you were to consider other applications in the future that do, Cloud SQL would be a significant cost. The free tier for Cloud SQL is very limited.
  • Continuous Usage: If you were to configure Cloud Run to never scale down to zero (e.g., for very low latency access at all times), you would incur continuous charges for CPU and memory, which would quickly exceed the free tier. For a personal app, this is generally not necessary as SilverBullet’s “Local First PWA” design allows for offline use and synchronization.
  • Tier 2 Regions: Google Cloud regions are divided into pricing tiers. Tier 1 regions (like some in the US and Europe) are generally cheaper. If you deploy to a Tier 2 region (e.g., some in South America or Asia), costs beyond the free tier would be higher.
  • Serverless VPC Access: If you need to connect your Cloud Run service to resources within a Virtual Private Cloud (VPC), there might be additional compute charges for the Serverless VPC Access connector. For a basic SilverBullet setup, this is unlikely to be needed.

Prerequisites for Deployment

  1. Google Cloud Account: If you don’t have one, sign up for a Google Cloud account. New customers often get a $300 free credit, which is a great buffer while you get started.
  2. Enable Billing: Even for free tier services, you need to enable billing on your Google Cloud project. This allows Google to track your usage and apply the free tier credits automatically. You won’t be charged unless you exceed the free tier.