Jump to
Serverless

Serverless

Develop and deploy highly scalable applications and functions on a fully managed serverless platform. Our serverless computing automatically scales your services up or down, even to zero, depending on traffic, and you pay only for what you use.

Start a free trial and get $300 in free credits.

Key features

Products

Cloud Run

Build applications in your favorite language, dependencies, and tools, and deploy them in seconds. Cloud Run abstracts away all infrastructure management by automatically scaling up and down from zero almost instantaneously—depending on traffic. Cloud Run only charges you for the exact resources you use.

Cloud Run functions

Develop faster by writing and running small code snippets that respond to events. Use Cloud Run functions to connect with Google Cloud or third-party cloud services via triggers to streamline challenging orchestration problems. Run functions across multiple environments (local development environment, on-premises, Cloud Run, and other Knative-based serverless environments) and prevent lock-in. 

Service integration

When integrating services, it's all too easy to introduce tight coupling, which grows brittle, slow, and difficult to debug over time. Let our service integration products take care of the connective tissue, so you can do what you do best: building brilliant applications.

Use cases

Serverless Workloads

Use case
Web services: Websites

Build your website with Cloud Run using your favorite language or framework (Go, Python, Java, Node.js, .NET, and more), access your SQL database on Cloud SQL, and render dynamic HTML pages.

Use case
Integration with third-party services and APIs

Use Cloud Run functions to surface your own microservices via HTTP APIs or integrate with third-party services that offer webhook integrations to quickly extend your application with powerful capabilities, such as sending a confirmation email after a successful Stripe payment or responding to Twilio text message events.

Use case
IT process automation

Automate cloud infrastructure with Eventarc triggers and workflows that control Google Cloud services. For example, schedule a monthly workflow to detect and remediate security compliance issues. Iterating through critical resources and IAM permissions, send required requests for approval renewal using a Cloud Run function. Remove access for any permissions not renewed within 14 days.

Use case
Web services: REST APIs backend

Modern mobile apps commonly rely on RESTful backend APIs to provide current views of application data and separation for frontend and backend development teams. API services running on Cloud Run allow developers to persist data reliably on managed databases, such as Cloud SQL or Firestore (NoSQL). Logging in to Cloud Run grants users access to app‐resource data stored in Cloud Databases.

Use case
Real-time analytics

Run real-time analytics on files streamed from Cloud Storage into BigQuery using Cloud Run functions. Build security threat analysis on incoming logs that draw insights and highlight malicious behavior.

All features

Capabilities

Any runtime

Modern languages or runtimes are usually appropriate for new applications, but many existing applications either can’t be rewritten, or depend on a language that the serverless platform does not support. Cloud Run supports standard Docker images and can run any runtime, or runtime version in a container.

Per-instance concurrency

Many traditional applications underperform when constrained to a single-request model that’s common in FaaS platforms. Cloud Run allows for up to 1,000 concurrent requests on a single instance of an application, providing a far greater level of efficiency.

Background processing

Serverless platforms often "freeze" the function when it's not in use. This makes for a simplified billing model (only pay while it's running), but can make it difficult to run workloads that expect to do work in the background. Cloud Run supports new CPU allocation controls, which allow these background processes to run as expected.

Experiment and test ideas quickly

In just a few clicks, you can perform gradual rollouts and rollbacks, and perform advanced traffic management in Cloud Run. 

No container knowledge necessary

Start with a container or use buildpacks to create container images directly from source code. With a single “gcloud run deploy” command, you can build and deploy your code to Cloud Run. 

Built-in tutorials

Built-in tutorials in Cloud Shell Editor and Cloud Code make it easy to come up to speed on serverless. No more switching between tabs, docs, your terminal, and your code. You can even author your own tutorials, allowing your organization to share best practices and onboard new hires faster. 

Pricing

Pricing

Cloud Run is pay-per-use, with an always-free tier, rounded up to the nearest 100 millisecond. Total cost is the sum of used CPU, Memory, Requests, and Networking.

Use the Google Cloud pricing calculator for an estimate.

Take the next step

Start building on Google Cloud with $300 in free credits and 20+ always free products.

Google Cloud
  • ‪English‬
  • ‪Deutsch‬
  • ‪Español‬
  • ‪Español (Latinoamérica)‬
  • ‪Français‬
  • ‪Indonesia‬
  • ‪Italiano‬
  • ‪Português (Brasil)‬
  • ‪简体中文‬
  • ‪繁體中文‬
  • ‪日本語‬
  • ‪한국어‬
Console
Google Cloud