Cloud Run functions and Firebase

Google Cloud Run functions and Cloud Functions for Firebase togethercomprise an important part of Google's serverless compute solution for creatingevent-driven applications.

ForGoogle Cloud Platform developers,Cloud Runfunctions serve as a connective layerallowing you to weave logic between Google Cloud Platform (GCP) services bylistening for and responding to events.

ForFirebase developers,Cloud Functions for Firebaseprovides a way to extend the behavior of Firebase and integrate Firebasefeatures through the addition of server-side code.

Both solutions provide fast and reliable execution of functions in a fullymanaged environment where there's no need for you to worry about managing anyservers or provisioning any infrastructure.

Cloud Functions for Firebase

You should use Cloud Functions for Firebase if you're a developer building amobile app or mobile web app. Firebase gives mobile developers access to acomplete range of fully managed mobile-centric services including analytics,authentication and Realtime Database. Cloud Functions rounds out the offeringby providing a way to extend and connect the behavior of Firebase featuresthrough the addition of server-side code.

Firebase developers can easily integrate with external services for tasks likeprocessing payments and sending SMS messages. Also, developers can includecustom logic that is either too heavyweight for a mobile device, orwhich needs to be secured on a server.Explore use casesto learn more about typical integrations.For developers that need a more full-featured backend, Cloud Runfunctions provides a gateway to the powerful capabilities inGoogle Cloud Platform.

Cloud Functions for Firebase is optimized for Firebase developers:

  • Firebase SDK to configure your functions through code
  • Integrated with Firebase Console and Firebase CLI
  • The same triggers as Google Cloud Functions, plus Firebase Realtime Database,Firebase Authentication, and Firebase Analytics triggers

Cloud Run functions for Google Cloud Platform

Developers can connect and extend GCP services by writing code in the form of afunction. Cloud Run functions serve as a connective layer allowing you toweave logic between GCP services by listening for and responding to events. Withjust a few lines of code, developers can enrich their use of GCP services tocreate higher level combinations without needing to provision or manage servers. See theGoogle Cloud Run functionsdocumentation for more information.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.