A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be
displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.
How should a developer implement the callouts?
Using Continuation for both callouts is the optimal solution when you have long-running callouts in a Visualforce page, as it allows the page to wait for a long-running process without tying up server resources. The Continuation pattern is specifically designed for scenarios where the request-response cycle could exceed the timeout limits. Reference: Visualforce Developer Guide -- Continuations
Kanisha
9 days agoHeidy
10 days ago