Google Cloud Run 함수와 Firebase용 Cloud Functions는 이벤트 기반 애플리케이션을 만들기 위한 Google의 서버리스 컴퓨팅 솔루션에서 중요한 부분을 함께 구성합니다.
Google Cloud Platform 개발자의 경우 Cloud Run 함수가 연결 레이어 역할을 수행하므로, 수신 대기 후 이벤트에 응답하여 Google Cloud Platform(GCP) 서비스 간에 로직을 연결할 수 있습니다.
Firebase 개발자의 경우 Firebase용 Cloud Functions를 사용하면 서버 측 코드 추가를 통해 Firebase의 동작을 확장하고 Firebase 기능을 통합할 수 있습니다.
두 솔루션 모두 완전 관리형 환경에서 빠르고 안정적으로 함수를 실행할 수 있도록 지원하며 서버 관리나 인프라 프로비저닝이 불필요합니다.
Firebase용 Cloud Functions
모바일 앱 또는 모바일 웹 앱을 제작하는 개발자인 경우 Firebase용 Cloud Functions를 사용해야 합니다. 모바일 개발자는 Firebase를 통해 분석, 인증, 실시간 데이터베이스 등 모바일에 중점을 둔 완전 관리형 서비스를 모두 이용할 수 있습니다. Cloud Functions는 서버 측 코드의 추가를 통해 Firebase 기능의 동작을 확장하고 연결할 수 있는 방법을 제공하므로 더욱 풍부한 기능을 이용할 수 있습니다.
Firebase 개발자는 결제 처리 및 SMS 메시지 전송과 같은 작업을 위해 간단하게 외부 서비스와 통합할 수 있습니다. 또한 휴대기기에 포함하기에는 너무 과하거나 서버의 보안이 필요한 커스텀 로직을 포함할 수 있습니다. 사용 사례를 살펴보고 일반적인 통합에 대해 자세히 알아보세요. 더 많은 기능을 갖춘 백엔드가 필요한 개발자의 경우 Cloud Run 함수에서 Google Cloud Platform의 강력한 기능에 연결되는 게이트웨이를 제공합니다.
Firebase용 Cloud Functions는 Firebase 개발자를 위해 최적화되었습니다.
코드를 통해 함수를 구성할 수 있는 Firebase SDK
Firebase Console 및 Firebase CLI와 통합
Google Cloud Functions와 동일한 트리거 및 Firebase 실시간 데이터베이스, Firebase 인증, Firebase 애널리틱스 트리거
Google Cloud Platform용 Cloud Run 함수
개발자는 함수 형식으로 코드를 작성하여 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-08-17(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."]]