QuestionQ24

VerifiedSalesforce Integration Patterns

A company is developing a Lightning Web Component (LWC) that displays transactions aggregated from multiple sources. Its current system landscape is as follows:

  1. Transactions can be created at any time by various on-premises and cloud-based systems.
  2. All required transactions are replicated to a custom Transaction object in Salesforce. It is updated periodically, so it contains only a subset of the required transactions between updates.
  3. Middleware supports publish-subscribe interactions and provides RESTful Enterprise APIs that retrieve transactions from on-premises and cloud-based systems.

The company wants to resolve a usability concern about incomplete data shown in the LWC component.

What should the integration architect specify so that the LWC can display all required transactions?

Explanation

Apex Continuations make asynchronous, long-running callouts to external web services and process the response in a callback method. Calling the middleware’s REST APIs through a Continuation retrieves current transactions that have not yet been replicated to the Salesforce custom object, so the LWC can render the complete aggregated result.

Learn more

Community Discussion

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