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
Miss
6 months agoLindsey
6 months agoLuisa
6 months agoEarleen
6 months agoAlaine
6 months agoMari
7 months agoDierdre
7 months agoMelita
7 months agoJacquelyne
7 months agoYaeko
7 months agoFausto
8 months agoMariann
8 months agoJulian
8 months agoLeanna
10 months agoWilford
8 months agoWade
9 months agoArlene
10 months agoCarolann
8 months agoJesusa
10 months agoJoanna
10 months agoCasie
11 months agoDick
11 months agoErin
10 months agoWeldon
10 months agoMicah
11 months agoKanisha
11 months agoHeidy
11 months ago