• Divya Gour 10
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi Folks,
 
Recently, we got a requirement of improving the performance of out future methods. There were few future methods which were taking around 22448 ms. 
I have implemented the solution for this below:
 
Whenever future methods are being called, publish a platform event. The platform event is subscribed by a flow which in turn calls that same future method, now converted as InvocableMethod.So, the callout which was occurring in the future method is now happening in the invocable method.
 
Please share your thoughts, if this solution is good and efficient?