Stay organized with collections Save and categorize content based on your preferences.
Cloud Functions for Firebase
plat_ios plat_android plat_web plat_flutter plat_cpp plat_unity
Cloud Functionsfor Firebase is a serverless framework that lets you automatically run backend code in response to events triggered by background events, HTTPS requests, the
Admin SDK, or
Cloud Schedulerjobs. Your JavaScript, TypeScript or Python code is stored on Google Cloud infrastructure and runs in a managed environment. There's no need to manage and scale your own servers.
Already using Cloud Functions in Google Cloud? Learn more about how Firebase fits into the picture.
Key capabilities Integrates Firebase features and connects Firebase with Google CloudThe functions you write can respond to events generated by various Firebase and Google Cloud features, from Firebase Authentication triggers to Cloud Storage Triggers.
Integrate across Firebase features using the Admin SDK together with Cloud Functions, and integrate with third-party services by writing your own webhooks. Cloud Functions minimizes boilerplate code, making it easier to use Firebase and Google Cloud inside your function. Zero maintenance Deploy your JavaScript, TypeScript, or Python code to our servers with one command from the command line. After that, Firebase automatically scales up computing resources to match the usage patterns of your users. You never worry about credentials, server configuration, provisioning new servers, or decommissioning old ones. Keeps your logic private and secure In many cases, developers prefer to control application logic on the server to avoid tampering on the client side. Also, sometimes it's not desirable to allow that code to be reverse engineered. Cloud Functions is fully insulated from the client, so you can be sure it is private and always does exactly what you want. How does it work?After you write and deploy a function, Google's servers begin to manage the function immediately. You can fire the function directly with an HTTP request, the Admin SDK, or a scheduled job, or, in the case of background functions, Google's servers listen for events and run the function when it is triggered.
As the load increases or decreases, Google responds by rapidly scaling the number of virtual server instances needed to run your function. Each function runs in isolation, in its own environment with its own configuration.
Lifecycle of a background function.zip
archive of the function code, which is then uploaded to a Cloud Storage bucket (prefixed with gcf-sources
) before Cloud Functions creates an Artifact Registry repository (named gcf-artifacts
) in your project.gcf-artifacts
), and your new function is rolled out.In addition to listening for events with a background function, you can call functions directly with an HTTP request or a call from the client. You can also trigger functions on a fixed schedule or enqueue task functions via the Admin SDK.
Implementation path Set up Cloud Functions Install the Firebase CLI and initialize Cloud Functions in your Firebase project. Write functions Write JavaScript code, TypeScript code, or Python code to handle events from Firebase services, Google Cloud services, or other event providers. Test functions Use the local emulator to test your functions. Deploy and monitor Upgrade your project to the pay-as-you-go Blaze pricing plan and deploy your functions using the Firebase CLI. You can then use the Google Cloud console to view and search through your logs. Next stepsExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-08 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3