+ Start a Discussion
Herish SurendranHerish Surendran 

Lightning Messaging service and Lightning Events sounds kind of similar to me. Can anyone explain what is the difference between and what they are ?

chanchal_:)chanchal_:)
Sounds a little like Aura Application Events but for all UI technologies?
Yes, similar to Aura Application Events, communication happens between components regardless of where they are in the DOM. However, Lightning Message Service takes that communication a step further. LMS is important to the grander Lightning ecosystem for two main reasons:
As Lightning Web Components gain wider adoption, LMS positions itself as the standard publish-subscribe library in the UI, enabling components in any part of the DOM to communicate.
LMS provides a standard means for Lightning Web Components to communicate with Aura Components. The fact that it speaks to Visualforce is a MAJOR plus.


Reference - https://developer.salesforce.com/blogs/2019/10/lightning-message-service-developer-preview.html.