Continuation Framework allows us to make synchronous callout as async callout ,which allows to get rid of Concurrent Limit platform error.
For making continuation work, all the logic of callout and processing should be moved from Utility classes to Page controller classes.
Isnt this more of code duplication? Or am i missing something?
I have around 10 VF pages that makes callout to an external endpoint, and that callout logic is in a Utility class.
Now making that callout as Async will make me copy paste same logic into controller, thus making me rework whats already done fro 10 pages.
Is there any proper way to do so? Controller/Extension inheritance is best i could come up with. Has anyone faced this architecture issue?