메시지 전달과 비동기식 통합에 Cloud Tasks 및 Pub/Sub 모두 사용할 수 있으며 둘 다 유사한 방식으로 작동하지만 같지는 않습니다. 이 페이지는 사용 사례에 적합한 제품을 선택하는 데 도움이 됩니다.
주요 차이점
Pub/Sub와 Cloud Tasks의 핵심적인 차이점은 암시적 호출과 명시적 호출에 관한 개념 차이입니다.
Pub/Sub는 이벤트 게시자와 해당 이벤트의 영향을 받는 구독자를 분리합니다. 이는 게시자가 구독자에 대한 정보가 없어도 된다는 뜻입니다. 따라서 Pub/Sub는 메시지 전달 보장을 위한 경우가 아닌 한, 메시지 전달을 제어하는 기능을 게시자에게 제공하지 않습니다. 이러한 방식으로 Pub/Sub는 암시적 호출을 지원합니다. 즉 게시자는 이벤트를 게시하여 구독자의 실행을 암시적으로 유도합니다.
이에 반해 Cloud Tasks는 게시자가 실행에 대한 완전한 제어 기능을 유지하는 명시적 호출을 지향합니다. 특히 게시자는 각 메시지가 전달될 엔드포인트를 지정합니다.
또한 Cloud Tasks는 Pub/Sub 게시자가 이용할 수 없는 다음과 같은 큐 및 태스크 관리 기능을 제공합니다.
[[["이해하기 쉬움","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,["# Choose Cloud Tasks or Pub/Sub\n\nBoth [Cloud Tasks](/tasks/docs/dual-overview) and\n[Pub/Sub](/pubsub/docs/overview) may be used to\nimplement message passing and asynchronous integration, but while they\nfunction in similar ways, they are not identical. This page helps you choose the\nright product for your use case.\n\nKey Differences\n---------------\n\nThe core difference between Pub/Sub and Cloud Tasks is the\nnotion of implicit vs explicit invocation.\n\nPub/Sub aims to decouple publishers of events and subscribers to those\nevents. Publishers do not need to know anything about their subscribers. As a result,\nPub/Sub gives publishers no control over the delivery of the messages save for\nthe guarantee of delivery. In this way, Pub/Sub supports **implicit** invocation:\na publisher implicitly causes the subscribers to execute by publishing an event.\n\nBy contrast, Cloud Tasks is aimed at **explicit** invocation where the publisher\nretains full control of execution. In particular, a publisher specifies an\nendpoint where each message is to be delivered.\n\nIn addition, Cloud Tasks provides tools for queue and\ntask management unavailable to Pub/Sub publishers, including:\n\n- Scheduling specific delivery times\n- Delivery rate controls\n- Configurable retries\n- Access and management of individual tasks in a queue\n- Task/message creation deduplication\n\nDetailed feature comparison\n---------------------------"]]