Message processing method, device and system based on memory mapping and storage medium
A memory mapping and message processing technology, applied in the field of data processing, can solve problems such as large jitter in load balancing consumption, unavailability of cluster nodes, and many storage partitions, so as to improve message interaction processing, reduce message processing performance degradation, and improve processing efficiency. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] figure 1 It is a flow chart of a message processing method based on memory mapping provided by Embodiment 1 of the present invention. This embodiment of the present invention is applicable to the situation of fast processing of messages in a distributed cluster. The method can be implemented by a message processing device based on memory mapping Execution, the device can be implemented in hardware and / or software, and is generally applied to the master node in a distributed cluster, see figure 1 , the method provided by the embodiment of the present invention generally includes the following steps:
[0037] Step 101. Store the message in a storage master file, where the storage master file is unique.
[0038] Wherein, the message is the data to be stored in the distributed cluster, which can be received by the master node in the distributed cluster. The master node is the execution node determined according to the Raft or LibraBFT consensus protocol in the distributed...
Embodiment 2
[0047] Embodiment two figure 2 It is a flow chart of a message processing method based on memory mapping provided by Embodiment 2 of the present invention. The embodiment of the present invention is based on the above-mentioned embodiments. The read and write operations of the storage master file are accelerated by establishing a partition index, and based on Preset length restores storage unit from disk to storage master file, see figure 2 , the message processing method based on memory mapping in the embodiment of the present invention includes the following steps:
[0048] Step 201: Store the message in the storage master file according to the received storage request.
[0049] Wherein, the storage request is a request for storing messages, and specifically, the Store thread may independently accept the storage request.
[0050] Specifically, the Store thread monitors the storage request. When the storage request is received, the message is stored in the storage master fi...
Embodiment 3
[0082] Figure 5 It is a flow chart of a message processing method based on memory mapping provided by Embodiment 3 of the present invention. This embodiment of the present invention is applicable to the case of fast processing of messages in a distributed cluster. The method can be implemented by a message processing device based on memory mapping Execution, the device can be implemented in hardware and / or software, and is generally applied to slave nodes in distributed clusters, see Figure 5 , the method provided by the embodiment of the present invention generally includes the following steps:
[0083] Step 301. Obtain the message sent by the master node, and store the message in a storage master file.
[0084] Among them, the master node is the execution node of the distributed cluster, the master node and the current slave node are located in the same group, and the master node is the execution node determined according to the Raft or LibraBFT consensus protocol in the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com