Cloud Run 함수를 사용하면 서버 관리, 소프트웨어 구성, 프레임워크 업데이트, 운영 체제 패치 적용 등을 신경 쓸 필요가 없습니다. 소프트웨어와 인프라가 Google에서 모두 관리되므로, 사용자는 코드만 추가하면 됩니다.
또한 리소스는 요청 또는 이벤트 발생 시 자동으로 프로비저닝됩니다.
즉, Cloud Run 서비스는 별도로 조치하지 않아도 하루 몇 번부터 수백만 번의 호출로 자동 수평 확장됩니다.
확장 동작을 더 세부적으로 제어해야 하는 경우 수동 확장을 선택적으로 사용할 수 있습니다.
Cloud Run에 함수, 소스 코드 또는 컨테이너 이미지를 배포하면 컨테이너 런타임 계약에 설명된 모든 이점을 누릴 수 있습니다.
함수 배포 사용 사례
이벤트에 바인딩된 함수를 직접 배포하여 비동기 워크로드(예: 경량형 ETL) 또는 클라우드 자동화(예: 애플리케이션 빌드 트리거)를 구현할 수 있습니다.
또한 HTTPS 엔드포인트를 자동으로 프로비저닝하므로 함수가 웹훅에 매우 적합해집니다.
Cloud Run에 함수를 배포하는 일반적인 사용 사례를 추가로 확인하려면 다음 표를 참조하세요.
사용 사례
설명
스트리밍 데이터 처리/ETL
파일 생성, 변경 또는 삭제 시와 같이 Cloud Storage 이벤트를 리슨하고 응답합니다. Cloud Run을 사용하면 이미지 처리, 동영상 트랜스코딩, 데이터 검증 및 변환, 인터넷 서비스 호출이 가능합니다.
웹훅
HTTP 트리거를 통해 GitHub, Slack, Stripe와 같은 서드 파티 시스템 또는 HTTP 요청을 보낼 수 있는 모든 곳에서 발생한 이벤트에 응답합니다.
모바일 백엔드
Google의 앱 개발자용 모바일 플랫폼인 Firebase를 사용하여 Cloud Run Functions에서 모바일 백엔드를 작성하세요. Firebase 애널리틱스, 실시간 데이터베이스, 인증, 저장소에서 수신된 이벤트를 수신 대기 및 응답합니다.
IoT
무수히 많은 기기에서 Pub/Sub로 데이터를 스트리밍하여 Cloud Run 함수를 실행하고 데이터를 처리, 변환, 저장한다고 상상해 보세요. Cloud Run 함수에서는 완전한 서버리스 방식으로 작업할 수 있습니다.
Cloud Run Functions는 클라우드 서비스를 연결하고 확장하는 코드를 작성할 수 있도록 로직의 연결 레이어를 제공합니다. Cloud Storage로의 파일 업로드, 로그 변경 또는 Pub/Sub 주제의 수신 메시지를 리슨 및 응답할 수 있습니다. Cloud Run Functions를 사용하면 기존의 클라우드 서비스를 확대하고 임의의 프로그래밍 로직으로 증가하는 사용 사례를 처리할 수 있습니다.
Cloud Run Functions는 Google 서비스 계정 사용자 인증 정보에 액세스할 수 있으므로 Cloud Vision 등과 같은 대부분의 Google Cloud 서비스를 통해 원활하게 인증됩니다. 또한 Cloud Run 함수는 수많은 Cloud 클라이언트 라이브러리의 지원을 받으며 이로 인해 통합이 더욱 간편합니다.
기존 함수가 있고 하위 호환성을 위해 gcloud functions deploy 명령어, Cloud Functions v2 API 또는 google_cloudfunctions2_function Terraform 구성을 사용해야 하는 경우 gcloud functions 명령어로 함수를 배포할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# When should I deploy a function to Cloud Run?\n\n| **Note:** Cloud Functions has been renamed to Cloud Run functions. For more information, see the [Cloud Run functions blog post](https://cloud.google.com/blog/products/serverless/google-cloud-functions-is-now-cloud-run-functions).\n\nCloud Run removes the work of managing servers, configuring\nsoftware, updating frameworks, and patching operating systems. The software and\ninfrastructure are fully managed by Google so that you just add code.\nFurthermore, provisioning of resources happens automatically in response to\nrequests or events.\nThis means that a Cloud Run service automatically scales out from a few\ninvocations a day to many millions of invocations without any work from you.\nYou can optionally use [manual scaling](/run/docs/configuring/services/manual-scaling)\nif you need more control over your scaling behavior.\n\nWhen you deploy a function, source code or a container image to\nCloud Run, you receive all of the benefits described in the\n[Container runtime contract](/run/docs/container-contract).\n\nUse cases for deploying functions\n---------------------------------\n\nYou can directly deploy a function bound to events in order to implement\nasynchronous workloads (such as lightweight [ETL](/learn/what-is-etl)) or cloud\nautomations (such as triggering application builds).\nIn addition, the automatic provisioning of an HTTPS endpoint makes functions a\nperfect candidate for webhooks.\n\nSee the following table for additional common use cases for deploying a function\nto Cloud Run:\n\nConnect and extend cloud services\n---------------------------------\n\nCloud Run functions provides a connective layer of logic that lets you write\ncode to connect and extend cloud services. Listen and respond to a file upload\nto Cloud Storage, a log change, or an incoming message on a Pub/Sub\ntopic. Cloud Run functions augments existing cloud services and lets you\naddress an increasing number of use cases with arbitrary programming logic.\nCloud Run functions have access to the Google Service Account credential and\nare thus seamlessly authenticated with the majority of Google Cloud services,\nincluding Cloud Vision, as well as many others. In addition,\nCloud Run functions are supported by numerous\n[Cloud Client Libraries](/apis/docs/cloud-client-libraries), which\nfurther simplify these integrations.\n\nWhat's next\n-----------\n\n- Try the [getting started guide for deploying a function](/run/docs/quickstarts/functions/deploy-functions-console).\n- If you have existing functions and need to use the `gcloud functions deploy` command, the Cloud Functions v2 API, or the `google_cloudfunctions2_function` Terraform configuration for backward compatibility, you can [deploy functions with the `gcloud functions` command](/functions/docs/deploy)."]]