【正文】
References 1. FLANAGAN D JavaScript: The defi nitive guide [M] Tsinghua University :12~24 Hongxia, Wang Jihong. distributed realtime operating system messages Mechanism Design and Implementation [J] Computer Engineering and Design 2020 (09):31~37 ,Jiang Hao workflow system message mechanism analysis and implementation [J] Computer Engineering and Design 2020 (11):12~23 hong, Zhao Xi Bin.,Yong Jianping. message based heterogeneous system integration solutions [J] Journal of Computer Applications 2020 (08) :36~40 Hao。 4) ponentbased, which could be loaded, and the relative independence Legislation. Across multiple application projects pleted using the message management mechanisms client message management, it shows the application value of the mechanism, can be used as a building block of development tools. The downside is that it does not provide priority treatment, you need to add in the message queue sorted by priority support. The message mechanism for the further development of improved Web application client message management mechanism provides a reference direction. 1)輕量級的實(shí)現(xiàn),不需要客戶端格外安裝任何插件,對傳輸效率不造成大的影響; 2)靈活性,可以由 Web應(yīng)用開發(fā)人員自主定制,滿足各種消息類型以及對消息的處理的不同需求; 3)可回訪,提供的存儲器支持查詢操作,可改變存儲器的讀寫位置; 4)構(gòu)件化,可以任意裝載,相對獨(dú) 立。 結(jié)語 本文介紹的消息管理機(jī)制主要工作于 Web應(yīng)用的客戶端,為了降低消息機(jī)制實(shí)現(xiàn)的代價,并兼容各種瀏覽器,采用 JavaScript實(shí)現(xiàn)該消息管理機(jī)制。 4) Calls the message dispatcher receives the message, the message dispatcher verifying the integrity and validity of the data will be based on the information in the message header to send messages to a messaging server。 消息服務(wù)器的工作流程如下: 1)服務(wù)器接收到消息后辨別消息類型,如果是查詢類型 的消息則直接送往消息存儲器,否則加入消息隊(duì)列; 2)查詢類消息在消息存儲器中找到指定的消息后便銷毀, 而作為 查詢結(jié)果的消息的副本則送往消息隊(duì)列,需要注意的是 作為查詢結(jié)果的副本,不應(yīng)當(dāng)在下一次Copy of the results of a query, the next should not be stored again in the process。 2) Type of message in a message memory query to find the specified message after the destruction, As query results are sent a copy of the message the message queue, to note that 以至少應(yīng)該添加兩個:一是處理用戶管理模塊產(chǎn)生的消息,另一個針對購物管理模塊工作。分派器一方面提供對外的消息接收接 121,一方面在接收到消息后,根據(jù)消息頭的信息把消息分派到指定的“服務(wù)器”。 產(chǎn)生器 主要負(fù)責(zé)消息的產(chǎn)生。s main ponents and interdepend dencies. Basic management Primarily responsible for the