Jika Anda membuat fungsi baru, lihat Panduan Memulai Konsol di Cloud Run. Konten di halaman ini hanya berlaku untuk fungsi lama yang sudah ada yang dibuat dengan Cloud Functions v1 API.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Cloud Run Functions dan Firebase
Fungsi Cloud Run adalah solusi komputasi serverless dari Google untuk membuat aplikasi yang dikendalikan oleh peristiwa. Produk ini merupakan hasil kerja sama antara tim Google Cloud dan tim Firebase.
Bagi developerGoogle Cloud , fungsi Cloud Run berfungsi sebagai lapisan penghubung agar Anda dapat membangun logika antara layanan Google Cloud dengan mendeteksi dan merespons peristiwa.
Bagi developer Firebase, fungsi Cloud Run for Firebase memberikan cara untuk memperluas perilaku Firebase dan mengintegrasikan fitur Firebase melalui penambahan kode pada sisi server.
Kedua solusi tersebut menyediakan eksekusi fungsi yang cepat dan andal dalam lingkungan yang terkelola sepenuhnya, sehingga Anda tidak perlu khawatir dengan pengelolaan server atau penyediaan infrastruktur apa pun.
Fungsi Cloud Run untuk Firebase
Anda harus menggunakan fungsi Cloud Run for Firebase jika Anda adalah developer yang membuat aplikasi seluler atau aplikasi web seluler. Dengan Firebase, developer seluler dapat mengakses rangkaian layanan seluler lengkap yang dikelola secara penuh, termasuk analisis, autentikasi, dan Realtime Database. Fungsi Cloud Run melengkapi penawaran tersebut dengan menyediakan cara untuk memperluas dan menghubungkan perilaku fitur Firebase melalui penambahan kode di sisi server.
Developer Firebase dapat mengintegrasikan layanan eksternal untuk menyelesaikan berbagai tugas, seperti memproses pembayaran dan mengirim pesan SMS. Selain itu, developer dapat menyertakan logika khusus yang terlalu berat bagi perangkat seluler, atau yang perlu pengamanan di server. Lihat artikel ini untuk mempelajari lebih lanjut kasus penggunaan integrasi yang umum digunakan.
Bagi developer yang membutuhkan backend berfitur lebih lengkap, fungsi Cloud Run menjadi pintu masuk untuk memanfaatkan berbagai kemampuan andal di Google Cloud.
Fungsi Cloud Run for Firebase telah dioptimalkan untuk developer Firebase:
Gunakan Firebase SDK untuk mengonfigurasi fungsi Anda melalui kode
Terintegrasi dengan Firebase Console dan Firebase CLI
Pemicu yang sama dengan Cloud Run Functions, plus pemicu Firebase Realtime Database, Firebase Authentication, dan Firebase Analytics
Fungsi Cloud Run untuk Google Cloud
Developer dapat menghubungkan dan memperluas layanan Google Cloud dengan menulis kode dalam bentuk fungsi Cloud Run. Fungsi Cloud Run berfungsi sebagai lapisan penghubung agar Anda dapat membangun logika antara layanan Google Cloud dengan mendeteksi dan merespons peristiwa. Cukup dengan beberapa baris kode saja, developer dapat memperluas penggunaan layanan Google Cloud untuk membuat kombinasi dengan tingkat lebih tinggi tanpa perlu menyediakan atau mengelola server.
Lihat dokumentasi fungsi Cloud Run untuk mengetahui informasi selengkapnya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-03 UTC."],[[["\u003cp\u003eCloud Run functions offer a serverless compute solution for creating event-driven applications, jointly developed by Google Cloud and Firebase teams.\u003c/p\u003e\n"],["\u003cp\u003eFor Google Cloud developers, Cloud Run functions act as a connective layer to orchestrate logic between various Google Cloud services by responding to events.\u003c/p\u003e\n"],["\u003cp\u003eFirebase developers can use Cloud Run functions for Firebase to enhance Firebase features by adding server-side code and integrating with external services.\u003c/p\u003e\n"],["\u003cp\u003eBoth Cloud Run solutions offer a fully managed environment for executing functions, eliminating the need for server management or infrastructure provisioning.\u003c/p\u003e\n"],["\u003cp\u003eCloud Run functions for Firebase is specifically tailored for mobile app developers, offering Firebase SDK, console and CLI integration, and triggers for Realtime Database, Authentication, and Analytics.\u003c/p\u003e\n"]]],[],null,["# Cloud Run functions and Firebase\n================================\n\nCloud Run functions is Google's serverless compute solution for creating\nevent-driven applications. It is a joint product between the Google Cloud team\nand the Firebase team.\n\nFor **Google Cloud developers**, Cloud Run functions serve as a connective layer\nallowing you to weave logic between Google Cloud services by\nlistening for and responding to events.\n\nFor **Firebase developers** ,\n[Cloud Run functions for Firebase](https://firebase.google.com/docs/functions/)\nprovides a way to extend the behavior of Firebase and integrate Firebase\nfeatures through the addition of server-side code.\n\nBoth solutions provide fast and reliable execution of functions in a fully\nmanaged environment where there's no need for you to worry about managing any\nservers or provisioning any infrastructure.\n\nCloud Run functions for Firebase\n--------------------------------\n\nYou should use Cloud Run functions for Firebase if you're a developer building a\nmobile app or mobile web app. Firebase gives mobile developers access to a\ncomplete range of fully managed mobile-centric services including analytics,\nauthentication and Realtime Database. Cloud Run functions rounds out the offering\nby providing a way to extend and connect the behavior of Firebase features\nthrough the addition of server-side code.\n\nFirebase developers can integrate with external services for tasks like\nprocessing payments and sending SMS messages. Also, developers can include\ncustom logic that is either too heavyweight for a mobile device, or\nwhich needs to be secured on a server. See\nto learn more about typical integration use cases.\nFor developers that need a more full-featured backend, Cloud Run functions\nprovides a gateway to the powerful capabilities in\n[Google Cloud](https://cloud.google.com/docs/).\n\nCloud Run functions for Firebase is optimized for Firebase developers:\n\n- Firebase SDK to configure your functions through code\n- Integrated with Firebase Console and Firebase CLI\n- The same triggers as Cloud Run functions, plus Firebase Realtime Database, Firebase Authentication, and Firebase Analytics triggers\n\nCloud Run functions for Google Cloud\n------------------------------------\n\nDevelopers can connect and extend Google Cloud services by writing code in the form of a\nCloud Run function. Cloud Run functions serve as a connective layer allowing you to\nweave logic between Google Cloud services by listening for and responding to events. With\njust a few lines of code, developers can enrich their use of Google Cloud services to\ncreate higher level combinations without needing to provision or manage servers.\nSee the [Cloud Run functions\ndocumentation](/functions/1stgendocs) for more information."]]