Salesforce Decode
Salesforcedecode
Back to questions
IntegrationAdvancedpub-sub-apigrpcstreaming

Architect Salesforce Pub/Sub API for external subscribers

Real World Scenario

External analytics needs gRPC stream of Change Data Capture events without middleware polling.

Expected Answer

• Pub/Sub API gRPC subscribe to CDC topic • Replay preset earliest after latest for recovery • Auth OAuth token refresh in long-lived subscriber • Flow control credit consumption monitoring • Separate subscriber per consumer group scaling horizontally • Handle schema change event payload evolution • Fallback Bulk API catch-up if stream gap detected

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Main difference: use case and scale. Pub/Sub API gRPC subscribe to CDC topic. Replay preset earliest after latest for recovery. Pick based on your integration pattern and team capability. Pub/Sub API is enterprise streaming egress—architect replay and gap detection before production dependency. Optimize for scale and operational observability.

Architect Perspective

Pub/Sub API is enterprise streaming egress—architect replay and gap detection before production dependency.