[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-703159-105":59,"doc-detail-703159-en":130,"doc-similar-703159":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","how-to-subscribe-to-google-pubsub-topic-from-salesforce-using-pull-mechanism-with-apex","How to Subscribe to Google Pub/Sub Topic from Salesforce using Pull Mechanism with Apex","","The article explains how to integrate Google Cloud Pub/Sub with Salesforce using a pull-based approach. It covers creating the Pub/Sub topic and subscription, then building a Salesforce Apex REST service to receive and process messages securely. OAuth 2.0 authentication is used to protect access, while testing, error handling, and scalability practices are emphasized. It also analyzes Salesforce Event Bus limitations and Pub/Sub message design considerations to improve real-time reliability.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/how-to-subscribe-to-google-pubsub-topic-from-salesforce-using-pull-mechanism-with-apex/703159/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/how-to-subscribe-to-google-pubsub-topic-from-salesforce-using-pull-mechanism-with-apex/703159.png","ImageObject",300,407,{"name":92,"@type":93},"hdkawk","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-18","2026-11-13",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What limitations of Salesforce Event Bus are discussed in the article?","Question",{"text":112,"@type":113},"The article lists issues such as no guaranteed order, at-least-once delivery with duplicates, limited retention and replay windows, payload size limits, publishing and processing limits, and monitoring/debugging challenges.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Which components are required to set up the Google Pub/Sub side?",{"text":117,"@type":113},"It outlines establishing a Pub/Sub topic and subscription, then configuring the flow so Salesforce can retrieve messages using the pull mechanism.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the article secure message delivery into Salesforce?",{"text":121,"@type":113},"It describes implementing OAuth 2.0 authentication for the Salesforce Apex REST service that receives incoming Pub/Sub messages, along with guidance on secure handling and best practices.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},703159,1794561733,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":29,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},3985747859855,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Journal of Scientific and Engineering Research, 2020, 7(3):318-323  \nResearch Article  \nISSN: 2394-2630 CODEN(USA): JSERBR  \n| How to Subscribe to Google Pub/Sub Topic from Salesforce using Pull Mechanism with Apex\u003Cbr>Chirag Amrutlal Pethad\u003Cbr>[PetSmart.com](PetSmart.com), LLC, Stores and Services, Phoenix, Arizona, USA,\u003Cbr>[ChiragPethad@live.com](ChiragPethad@live.com), [ChiragPethad@gmail.com](ChiragPethad@gmail.com), [Cpethad@petsmart.com](Cpethad@petsmart.com) |\n| --- |\n| Abstract: The document outlines the integration of Google Cloud Pub/Sub with Salesforce using a push mechanism. Key steps include setting up a Pub-Sub topic and subscription, creating an Apex REST service in Salesforce to handle incoming messages, and implementing OAuth 2.0 for secure authentication. It emphasizes security considerations, testing, and best practices for error handling and scalability, ultimately enhancing Salesforce applications' responsiveness and reliability through real-time messaging.\u003Cbr>Keywords: Event Bus, Event Driven Architecture, Google PUB-SUB, Integration, Push vs Pull, REST API, Limits, Scalability, Event Replay |\n\nIntroduction  \nSalesforce Event Bus, also known as the Platform Events framework, is a powerful tool for enabling eventdriven architectures within Salesforce. However, there are several limitations to consider when using Salesforce Event Bus. The integration of Google Cloud Pub/Sub with Salesforce enables businesses to harness the power of real-time data processing and avoid the limitations associated with Salesforce Event Bus. This white paper provides a step-by-step guide to setting up and subscribing to Google Pub/Sub in Salesforce using Pull mechanism leveraging the capabilities of both platforms for improved operational efficiency, seamless and efficient flow of information.  \nLimitations Of Salesforce Event Bus  \nSalesforce Event Bus, also known as the Platform Events framework, is a powerful tool for enabling eventdriven architectures within Salesforce and integrating with external systems. However, there are several limitations to consider when using Salesforce Event Bus:  \nA. Event Delivery  \n• No Guaranteed Order: While Salesforce attempts to deliver events in order, it does not guarantee the order of event delivery.  \n• At-Least-Once Delivery: Events may be delivered more than once. Consumers must handle potential duplicate events.  \nB. Event Retention and Replay  \n• Retention Period: Platform events are retained for 72 hours. If consumers are offline for longer than this period, they may miss events.  \n• Limited Replay Options: Replay of events is limited to the last 24 hours. For events older than 24 hours but within the 72-hour retention period, consumers must handle gaps manually.  \nC. Event Size and Volume  \n• Payload Size: The maximum size of a platform event message is 1 MB. This includes the payload and metadata.  \n• Volume Limits: There are limits on the number of events that can be published and delivered within a 24-hour period, depending on the Salesforce edition and licensing:  \nO There are limits on the number of events that can be published and delivered within a 24-hour period, depending on the Salesforce edition and licensing.  \nO Standard Volume Platform Events: 50,000 events per 24-hour period.  \nD. Event Publishing Limits  \nThere are limits on the number of events that can be published per transaction and per hour. Exceeding these limits will result in errors:  \n• Per Transaction: 1,000 events  \n• Per Hour: Limits vary by Salesforce edition and license count.  \nIdentify applicable funding agency here. If none, delete this text box.  \nE. Event Processing Limits  \n• Subscriber Limits: Each event can have a maximum of 50 subscribers (including Apex triggers, flows, and external systems) .  \n• Concurrency Limits: Salesforce imposes limits on the number of concurrent long-running Apex transactions, which can impact event processing performance.  \nF. Platform Events and Triggers  \n• Governor","cbCainDKssDxuc0l","https://ap.wps.com/l/cbCainDKssDxuc0l","pdf",230343,"English","# Introduction\n# Limitations Of Salesforce Event Bus\n# Understanding Google Cloud Pub Sub\n# Overview Of Salesforce Apex","[{\"question\":\"What limitations of Salesforce Event Bus are discussed in the article?\",\"answer\":\"The article lists issues such as no guaranteed order, at-least-once delivery with duplicates, limited retention and replay windows, payload size limits, publishing and processing limits, and monitoring/debugging challenges.\"},{\"question\":\"Which components are required to set up the Google Pub/Sub side?\",\"answer\":\"It outlines establishing a Pub/Sub topic and subscription, then configuring the flow so Salesforce can retrieve messages using the pull mechanism.\"},{\"question\":\"How does the article secure message delivery into Salesforce?\",\"answer\":\"It describes implementing OAuth 2.0 authentication for the Salesforce Apex REST service that receives incoming Pub/Sub messages, along with guidance on secure handling and best practices.\"}]","How to Subscribe to Google Pub/Sub Topic from Salesforce using Pull Mechanism with Apex | PDF",15,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/325866c12e5602fe3bc71b4ff04a6577.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/ab340f89216532ce171f509aa2feb11d.webp",982,1388,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/bb376021062de1872c1fb8b68ba6801d.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/9c3972ac9f3b0aa6774297ec7b9bffb7.webp",980,1385,{"list":162,"token":66},[163,169,175,181,187,193,199,206,212,218],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":34,"category_name":30,"create_tm":168},681827,"Platform Events Developer Guide - Version 68 - Developer guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999226531/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=0wwac3FYePtais5jGOqTnw69UqM%3D","platform-events-developer-guide-version-68-developer-guide",1793954888,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":19,"category_name":30,"create_tm":174},703158,"Salesforce Apex Design Patterns - Architecting Salesforce solutions with Apex design patterns","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013421203/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=TecguXfYUfJCRcGOWLlQuoii60U%3D","salesforce-apex-design-patterns-architecting-salesforce-solutions-with-apex-design-patterns",1794561732,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":19,"category_name":30,"create_tm":180},686702,"ServiceNow CSM Integration with Salesforce - Reference Implementation - New York release Sep 2019","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001081378/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=tBuE5ndOsDOPbUb4pjb1By0xmdA%3D","servicenow-csm-integration-with-salesforce-reference-implementation-new-york-release-sep-2019",1794060894,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":24,"category_name":30,"create_tm":186},703176,"NetSuite Integration - Building a Customer Portal with OAuth2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012255756/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=WCTSI%2FS6GKvFjVFjKzkznDo9aDc%3D","netsuite-integration-building-a-customer-portal-with-oauth2",1794561996,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":19,"category_name":30,"create_tm":192},686292,"IBM Guardium Discover and Classify - How to Connect to Salesforce - Version 4.3.3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000692027/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=iORKcnqk5OcDk1YuZxHwa1h8xW0%3D","ibm-guardium-discover-and-classify-how-to-connect-to-salesforce-version-433",1794035060,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":24,"category_name":30,"create_tm":198},703157,"Connect REST API Developer Guide - Version 68.0 - Last updated November 6, 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013421166/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=2GuUvY6KBuFNHA7cJQCQJ1yUWow%3D","connect-rest-api-developer-guide-version-680-last-updated-november-6-2026",1794561731,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":30,"create_tm":205},656406,"Apex Developer Guide - Version 68.0 - Winter ’27","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975308709/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=PYBMRSUg6MUFixKfCmVcw3JqjY4%3D","apex-developer-guide-version-680-winter-27",22,1792968277,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":24,"category_name":30,"create_tm":211},686290,"CRM Sync-Salesforce Technical Guide - Technical Implementation and Security","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000691975/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=nYFmyQXtSMOOm%2Fe%2B0WP64uB83xA%3D","crm-sync-salesforce-technical-guide-technical-implementation-and-security",1794035057,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":81,"category_name":30,"create_tm":217},703155,"Salesforce Knowledge Developer Guide - Chapter 1 Developing with Salesforce Knowledge","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013421037/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=ZhrqGn8vBekbGTS5aFWUmvoDfnk%3D","salesforce-knowledge-developer-guide-chapter-1-developing-with-salesforce-knowledge",1794561727,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":30,"create_tm":224},657022,"Salesforce Feedback Management Developer Guide - Version 68.0 - Winter ’27","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974810294/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=99JmpSTflNSiuvI3oQhr4Tbh2WI%3D","salesforce-feedback-management-developer-guide-version-680-winter-27",16,1792972612]