קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
פונקציות של Google Cloud Run ו-Cloud Functions for Firebase הן חלק חשוב מפתרון המחשוב ללא שרת של Google ליצירת אפליקציות מבוססות-אירועים.
מפתחים ב-Google Cloud Platform יכולים להשתמש בפונקציות של Cloud Run כשכבת קישור שמאפשרת להם לשלב לוגיקה בין שירותי Google Cloud Platform (GCP) על ידי האזנה לאירועים ותגובה להם.
למפתחי Firebase, Cloud Functions for Firebase מספקת דרך להרחיב את ההתנהגות של Firebase ולשלב תכונות של Firebase באמצעות הוספה של קוד בצד השרת.
שני הפתרונות מספקים ביצוע מהיר ואמין של פונקציות בסביבה מנוהלת לחלוטין, שבה לא צריך לדאוג לניהול שרתים או לאספקת תשתית.
Cloud Functions for Firebase
אם אתם מפתחים אפליקציה לנייד או אפליקציית אינטרנט לנייד, כדאי להשתמש ב-Cloud Functions for Firebase. Firebase מעניק למפתחי אפליקציות לנייד גישה למגוון מלא של שירותים מנוהלים שמתמקדים בנייד, כולל ניתוח נתונים, אימות ומסד נתונים בזמן אמת. Cloud Functions משלים את ההצעה בכך שהוא מספק דרך להרחיב ולחבר את ההתנהגות של תכונות Firebase באמצעות הוספה של קוד בצד השרת.
מפתחים ב-Firebase יכולים להשתלב בקלות עם שירותים חיצוניים למשימות כמו עיבוד תשלומים ושליחת הודעות SMS. בנוסף, מפתחים יכולים לכלול לוגיקה מותאמת אישית שהיא כבדה מדי למכשיר נייד, או שצריך לאבטח אותה בשרת.
תרחישים לדוגמה
למידע נוסף על שילובים אופייניים.
למפתחים שזקוקים לחלק האחורי של האתר עם יותר תכונות, פונקציות Cloud Run מספקות שער ליכולות המתקדמות ב-Google Cloud Platform.
Cloud Functions for Firebase מותאם למפתחי Firebase:
Firebase SDK להגדרת הפונקציות באמצעות קוד
משולב עם מסוף Firebase ועם Firebase CLI
אותם טריגרים כמו ב-Google Cloud Functions, בנוסף לטריגרים של Firebase Realtime Database, Firebase Authentication ו-Firebase Analytics
פונקציות Cloud Run ל-Google Cloud Platform
מפתחים יכולים לחבר ולהרחיב את שירותי GCP על ידי כתיבת קוד בצורה של פונקציה. פונקציות Cloud Run משמשות כשכבת קישור שמאפשרת לכם לשלב לוגיקה בין שירותי GCP על ידי הקשבה לאירועים ומענה להם. בעזרת כמה שורות קוד בלבד, מפתחים יכולים לשפר את השימוש שלהם בשירותי GCP כדי ליצור שילובים ברמה גבוהה יותר, בלי צורך להקצות או לנהל שרתים.
מידע נוסף זמין במסמכי התיעוד של פונקציות Google Cloud Run.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-09-03 (שעון UTC)."],[],[],null,["\u003cbr /\u003e\n\nGoogle Cloud Run functions and Cloud Functions for Firebase together\ncomprise an important part of Google's serverless compute solution for creating\nevent-driven applications.\n\nFor **Google Cloud Platform developers** , [Cloud Run\nfunctions](https://cloud.google.com/functions/) serve as a connective layer\nallowing you to weave logic between Google Cloud Platform (GCP) services by\nlistening for and responding to events.\n\nFor **Firebase developers** ,\n[Cloud 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 Functions for Firebase\n\nYou should use Cloud 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 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 easily 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.\n[Explore use cases](https://firebase.google.com/docs/functions/use-cases)\nto learn more about typical integrations.\nFor developers that need a more full-featured backend, Cloud Run\nfunctions provides a gateway to the powerful capabilities in\n[Google Cloud Platform](https://cloud.google.com/docs/).\n\nCloud 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 Google Cloud Functions, plus Firebase Realtime Database, Firebase Authentication, and Firebase Analytics triggers\n\nCloud Run functions for Google Cloud Platform\n\nDevelopers can connect and extend GCP services by writing code in the form of a\nfunction. Cloud Run functions serve as a connective layer allowing you to\nweave logic between GCP services by listening for and responding to events. With\njust a few lines of code, developers can enrich their use of GCP services to\ncreate higher level combinations without needing to provision or manage servers.\nSee the [Google Cloud Run functions\ndocumentation](https://cloud.google.com/functions/docs/) for more information."]]