Salesforce Decode
Salesforcedecode
Back to questions
IntegrationIntermediatecallbackasyncwebhook

Design asynchronous callback pattern for long external processes

Real World Scenario

Credit check external service takes 30 seconds; Salesforce Flow cannot wait synchronously.

Expected Answer

• Submit request returns jobId immediately • External system callbacks webhook on completion • Staging object tracks Pending Complete Failed • Platform Event notifies user or updates record on callback • Timeout job marks Failed if no callback in SLA • Secure callback HMAC verification • UI polling fallback if webhook fails

Follow-Up Questions & Answers

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

Main difference: use case and scale. Submit request returns jobId immediately. External system callbacks webhook on completion. Pick based on your integration pattern and team capability. Long external processes always callback or poll async—design staging record as state machine. Balance speed of delivery with maintainability.

Architect Perspective

Long external processes always callback or poll async—design staging record as state machine.