IntegrationIntermediatestreaming-apicometdreal-time
Implement Salesforce Streaming API for real-time operational dashboards
Real World Scenario
NOC dashboard needs live Case escalation count; polling REST every 30 seconds hits API limits with 50 dashboards.
Expected Answer
• Streaming API PushTopic or Platform Event subscription CometD
• Single channel fan-out to dashboard WebSocket clients via middleware
• Emp API for Change Data Capture streaming alternative
• Replay extension recover missed events after disconnect
• Long polling fallback if WebSocket blocked corporate firewall
• Compare Streaming vs Pub/Sub API gRPC for external dashboard
• Limit PushTopic SOQL complexity governor aware
Follow-Up Questions & Answers
Click to expand — each follow-up includes a direct, interview-ready answer
Main difference: use case and scale. Streaming API PushTopic or Platform Event subscription CometD. Single channel fan-out to dashboard WebSocket clients via middleware. Pick based on your integration pattern and team capability. Polling dashboards do not scale—Streaming or CDC subscription for operational visibility. Balance speed of delivery with maintainability.
Architect Perspective
Polling dashboards do not scale—Streaming or CDC subscription for operational visibility.