Stay organized with collections Save and categorize content based on your preferences.
Cloud Functions for Firebase
Run backend code without managing servers
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 Scheduler jobs.
Create functions that are triggered by Firebase products, such as changes to data in the Realtime Database, new user sign-ups via Auth, and conversion events in Google Analytics. Are you a Google Cloud developer? See Google Cloud Functions.
Run your mobile backend code without managing servers
Cloud Functions are single-purpose JavaScript and Python functions that are executed in a secure, managed serverless environment. They are only executed when a specific event being watched is emitted.
Low maintenance
Deploying your code to our servers requires just one command. After that, Cloud Functions automatically scales up computing resources to match the usage patterns of your app. You never have to worry about SSH credentials, server configuration, provisioning new servers, or decommissioning old ones.
Keeps your logic private and secure
In many cases, application logic is best controlled on the server to avoid tampering on the client side. Cloud Functions is fully insulated from the client, so you can be sure its functions are private and secure and can't be reverse engineered.
Case Studies
Learn how Cloud Functions helps teams across the world improve app quality
STAGE uses Firebase and Flutter to cut release time in half
STAGE paired Flutter's front-end tools with Firebase's back-end services to build a multi-platform app, with infrastructure that securely stores and delivers content to almost 2 million users in real time for a smooth viewing experience - helping them stand out in India's competitive streaming market.
Acintyo uses Firebase to streamline and speed up app development by 25%
With millions of users across 175 countries, the Galarm team used Firebase's fully-managed, scalable infrastructure to accelerate app development, automate tasks, and free up engineering time so they could focus on bringing their ideas to life.
[[["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"]],[],[],[],null,["Cloud Functions for Firebase\n\nRun backend code without managing servers\n\nA serverless framework that lets you automatically run backend code in response to events triggered by background events, HTTPS requests, the Admin SDK, or Cloud Scheduler jobs. \n[Get started](https://console.firebase.google.com/project/_/functions/list/) [View docs\n*arrow_forward*](/docs/functions) \n\nDevelop a backend without servers \nCreate functions that are triggered by Firebase products, such as changes to data in the Realtime Database, new user sign-ups via Auth, and conversion events in Google Analytics. Are you a Google Cloud developer? See [Google Cloud Functions](https://cloud.google.com/functions/). \n*plat_ios* *plat_android* *plat_web* *plat_cpp* *plat_unity* \n\nRun your mobile backend code without managing servers \nCloud Functions are single-purpose JavaScript and Python functions that are executed in a secure, managed serverless environment. They are only executed when a specific event being watched is emitted. \n\nLow maintenance \nDeploying your code to our servers requires just one command. After that, Cloud Functions automatically scales up computing resources to match the usage patterns of your app. You never have to worry about SSH credentials, server configuration, provisioning new servers, or decommissioning old ones. \n\nKeeps your logic private and secure \nIn many cases, application logic is best controlled on the server to avoid tampering on the client side. Cloud Functions is fully insulated from the client, so you can be sure its functions are private and secure and can't be reverse engineered. \nCase Studies\n\nLearn how Cloud Functions helps teams across the world improve app quality\n-\n\n STAGE uses Firebase and Flutter to cut release time in half\n\n\n STAGE paired Flutter's front-end tools with Firebase's back-end services to build a multi-platform app, with infrastructure that securely stores and delivers content to almost 2 million users in real time for a smooth viewing experience - helping them stand out in India's competitive streaming market.\n [Read more\n *arrow_forward*](/case-studies/stage-app)\n-\n\n Acintyo uses Firebase to streamline and speed up app development by 25%\n\n\n With millions of users across 175 countries, the Galarm team used Firebase's fully-managed, scalable infrastructure to accelerate app development, automate tasks, and free up engineering time so they could focus on bringing their ideas to life.\n [Read more\n *arrow_forward*](/case-studies/acintyo-galarm-app)\n-\n\n Le Figaro leverages Firebase to increase paid subscriptions across mobile and web apps\n\n\n Le Figaro used a number of Firebase products to retain existing users, increase paid subscriptions and decrease development time.\n [Read more\n*arrow_forward*](/case-studies/le-figaro) \n\nDocumentation \nLearn more about Cloud Functions through our documentation. \n[View docs](/docs/functions) \n\nView pricing \nNo-Cost quota amounts, then Google Cloud pricing. \n[Pricing Page](/pricing) \nTry Firebase today\n\n\nIntegrating it into your app is easy.\n[Get started](https://console.firebase.google.com/) \n\nAll Firebase products \n\nBuild\n\n- [App Check](/products/app-check)\n- [App Hosting](/products/app-hosting)\n- [Authentication](/products/auth)\n- [Cloud Functions](/products/functions)\n- [Cloud Storage](/products/storage)\n- [Data Connect](/products/data-connect)\n- [Extensions](/products/extensions)\n- [Firestore](/products/firestore)\n- [Firebase ML](/products/ml)\n- [Genkit](https://genkit.dev/)\n- [Hosting](/products/hosting)\n- [Realtime Database](/products/realtime-database)\n- [Firebase AI Logic client SDKs](/products/firebase-ai-logic)\n\n[Generative AI](/products/generative-ai) \n\nRun\n\n- [A/B Testing](/products/ab-testing)\n- [App Distribution](/products/app-distribution)\n- [Cloud Messaging](/products/cloud-messaging)\n- [Crashlytics](/products/crashlytics)\n- [Google Analytics](/products/analytics)\n- [In-App Messaging](/products/in-app-messaging)\n- [Performance Monitoring](/products/performance)\n- [Remote Config](/products/remote-config)\n- [Test Lab](/products/test-lab)"]]