function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Artur Kolasa 7Artur Kolasa 7 

Difference between lightning events and aura:method

Please advise me which one solution is better for communicating across components. Because for me they are similar to each other.
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Artur,
  • Application events are really expensive.As a best practice, it's recommended to avoid them unless you need them badly. It's reserved for something that's needed across the application.
  • aura: method is a great alternative.It keeps code readable and maintainable and there is less code needed.
please refer the below link for reference. hope it helps.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar
 
Artur Kolasa 7Artur Kolasa 7
Thank's Rahul 
I have seen this before but there isn't information about component events...
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Artur, Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar
Artur Kolasa 7Artur Kolasa 7
Ok, so in the face of component event which one is better to use components event or aura:method ? and what about performance difference?