Micro front-end message communication method and device based on central message proxy
The invention provides a micro-front-end message communication method and device based on a central message proxy, applied to a main application in a micro-front-end architecture, the main application is registered as a central message proxy component, and the central message proxy component is used...
Gespeichert in:
Hauptverfasser: | , , , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a micro-front-end message communication method and device based on a central message proxy, applied to a main application in a micro-front-end architecture, the main application is registered as a central message proxy component, and the central message proxy component is used for opening a corresponding message communication interface for each sub-application; determining a message subscription request sent by a message communication interface called by the subscriber sub-application, and constructing relation mapping between the subscriber sub-application and a message theme type carried in the message subscription request; in response to a message publishing request sent by the message communication interface called by the message publisher sub-application, receiving a target theme message corresponding to the message publishing request; and broadcasting the target theme message to the corresponding subscriber sub-application according to the relational mapping. Real-time message tra |
---|