QuestionQ164

VerifiedEnterprise Integration Architecture Concepts

An enterprise architect has asked the Salesforce integration architect to review the following diagram and description, then provide recommendations after carefully considering all enterprise-system constraints and Salesforce platform limits.

Question Image

  • Approximately 3,000 phone sales agents concurrently use a Salesforce Lightning UI to check whether a customer is eligible for a qualifying offer.
  • Multiple externally hosted eligibility systems provide this service. Their current processing-and-response time can be as long as 90 seconds; discussions to reduce response times are underway, but no commitment has been made.
  • These eligibility systems are available through APIs orchestrated by an ESB (MuleSoft).
  • Every Salesforce request must pass through the customer’s API Gateway layer, which times out requests after 9 seconds.

Which recommendation should the integration architect make?

Explanation

The initial Apex callout must complete or fail within the API Gateway’s 9-second limit, while the downstream eligibility processing can take up to 90 seconds. The integration therefore needs an asynchronous handoff and a polling mechanism to retrieve the completed eligibility result without keeping the Salesforce request open. A Continuation cannot prevent the API Gateway from timing out the upstream HTTP request. A Platform Event plus lightning/empApi design would require one streaming subscriber connection per user session and does not support the stated 3,000 concurrent users under Salesforce’s documented 2,000-concurrent-subscriber limit.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!