CN110245028A - Message storage method, device, computer equipment and the storage medium of IoT-MQ - Google Patents
Message storage method, device, computer equipment and the storage medium of IoT-MQ Download PDFInfo
- Publication number
- CN110245028A CN110245028A CN201910394580.XA CN201910394580A CN110245028A CN 110245028 A CN110245028 A CN 110245028A CN 201910394580 A CN201910394580 A CN 201910394580A CN 110245028 A CN110245028 A CN 110245028A
- Authority
- CN
- China
- Prior art keywords
- message
- hashcode
- iot
- request
- label
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2291—User-Defined Types; Storage management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
Abstract
This application involves Message Queuing's technical field, in particular to a kind of message storage method, device, computer equipment and the storage medium of Internet of Things message queue IoT-MQ.The described method includes: establishing hashCode mapping table, is stored in the hashCode mapping table and calculate resulting hashCode and the corresponding relationship for the determining hashCode in message library storage location by presetting hash algorithm;Label is added to the message of each IoT-MQ, obtains multiple first labels;Each first label in the multiple first label is input in default hash algorithm and is calculated as key, corresponding first hashCode of each described first label is calculated;Twoth hashCode corresponding with the first hashCode described in each is searched in message library, the message library is distributed message library;The message of the IoT-MQ of corresponding different first hashCode is respectively stored into the hash slot of twoth hashCode corresponding with each first hashCode.It solves to store a large amount of message, the problem of message storage performance difference using relevant database.
Description
Technical field
This application involves Message Queuing's technical field, in particular to the message of a kind of Internet of Things message queue IoT-MQ stores
Method, apparatus, computer equipment and storage medium.
Background technique
IoT-MQ (Internet of Things Message Queue, Chinese is Internet of Things message queue) is mainly solved
Certainly the problem of internet carries out message transmission, the message feature of internet of things equipment mainly has internet of things equipment: 1. type of messages
It is more, than if any household electrical appliances information, temperature information, Weather information etc..2. number of devices is more, size of message is big, in general internet of things equipment
All refer to the equipment of millions or more, size of message is usually hundred million grades of message, the major function of IoT-MQ be exactly to equipment this
A little message are acquired, and message distribution and message store, and generally require satisfaction for such a large amount of message storage: 1. message are deposited
Storage is reliable, and the storage of 2. message is smaller on the influence of the performance of whole IoT MQ, and the message of 3. storages facilitate subsequent acquisition to carry out
Secondary treatment.The solution of existing market substantially has: it is stored using traditional relational database, such as with Mysql, pg etc., for
Relevant database when data volume is very big, such as needs to handle a point library again for the storage etc. of more than one hundred million data and divides table
Deng, and for inquiry, it can be very bad when data volume is very big, and relevant database is internal storage data mostly
Library causes unsatisfactory in the performance that message stores and message obtains.
Apply for content
In view of the shortcomings of the prior art, the application proposes the message storage method of Internet of Things message queue IoT-MQ a kind of, dress
It sets, computer equipment and storage medium, it is intended to solve to store a large amount of message using relevant database, message storage performance is poor
The problem of.
The technical solution that the application proposes is:
A kind of message storage method of Internet of Things message queue IoT-MQ, which comprises
HashCode mapping table is established, storage is by presetting hash algorithm meter in the hashCode mapping table
Calculate resulting hashCode and the corresponding relationship for the determining hashCode in message library storage location;
Label is added to the message of each IoT-MQ, obtains multiple first labels;
Each first label in the multiple first label is input in default hash algorithm as key and is calculated, is counted
Calculate corresponding first hashCode of each described first label;
According to the hashCode mapping table, searched in message library corresponding with the first hashCode described in each
The 2nd hashCode, the message library be distributed message library;
The message of the IoT-MQ of corresponding different first hashCode is respectively stored into and each described first
The hash slot of corresponding 2nd hashCode of hashCode.
Further, label is added according to the message to each IoT-MQ described, obtains multiple first labels
The step of before, comprising:
Identify equipment belonging to the message of each IoT-MQ;
According to equipment belonging to the message for identifying each IoT-MQ, set belonging to the message for obtaining each IoT-MQ
Standby corresponding device id;
Accordingly, label is added according to the message to each IoT-MQ described, obtains multiple first labels
In step, comprising:
Using the corresponding device id of equipment belonging to the message of each IoT-MQ as label;
Corresponding label is added to the message of each IoT-MQ, obtains multiple first labels.
Further, it is described will corresponding different first hashCode IoT-MQ message be respectively stored into respectively
In the step of hash slot of corresponding 2nd hashCode of first hashCode, comprising:
The messaging list message of the IoT-MQ being stored in by storage time sequencing in corresponding hash slot.
Further, it is described will corresponding different first hashCode IoT-MQ message be respectively stored into respectively
After the step of hash slot of corresponding 2nd hashCode of first hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the target hashCode
HashCode obtains first object hashCode;
The hash slot for obtaining the first object hashCode obtains first object hash slot;
Entire message in the first object hash slot is returned to the initiator of the request.
Further, it is described will corresponding different first hashCode IoT-MQ message be respectively stored into respectively
After the step of hash slot of corresponding 2nd hashCode of first hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key and timestamp;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains the second target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the second target hashCode
HashCode obtains third target hashCode;
The hash slot for obtaining the third target hashCode, obtains target hash slot;
Judge whether the timestamp is null value;
If the timestamp is null value, the entire message in the target hash slot is returned to the initiation of the request
Side;
If the timestamp is not null value, the message corresponding with the timestamp in the target hash slot is returned
To the initiator of the request.
Further, if not being null value in the timestamp, by the target hash slot with the time
It stabs in the step of corresponding message returns to the initiator of the request, comprising:
If the timestamp is not null value, begun looking for from the head of the messaging list in the target hash slot and institute
State the corresponding storage time of timestamp;
When finding storage time corresponding with the timestamp, the corresponding message of the storage time found is obtained;
It will acquire the initiator that corresponding message returns to the request.
Further, it is described will corresponding different first hashCode IoT-MQ message be respectively stored into respectively
After the step of hash slot of corresponding 2nd hashCode of first hashCode, comprising:
Receive effective storage time of user's input;
Obtain the storage time of each message of every hash slot;
Judge the storage time of each message whether in effective storage time;
If judging, there are storage times not in effective storage time in each message, obtains storage time not
Message in effective storage time obtains target message;
The target message is deleted from corresponding hash slot.
The application also provides the message storage devices of Internet of Things message queue IoT-MQ a kind of, and described device includes:
Opening relationships table module is deposited in the hashCode mapping table for establishing hashCode mapping table
Storage calculates resulting hashCode and pair for the determining hashCode in message library storage location by presetting hash algorithm
It should be related to;
Mark module adds label for the message to each IoT-MQ, obtains multiple first labels;
Computing module, for each first label in the multiple first label to be input to default hash as key
It is calculated in algorithm, calculates corresponding first hashCode of each described first label;
Searching module, for according to the hashCode mapping table, searched in message library with each described the
Corresponding 2nd hashCode of one hashCode, the message library are distributed message library;
Memory module, for the message for corresponding to the IoT-MQ of different first hashCode to be respectively stored into and each institute
State the hash slot of corresponding 2nd hashCode of the first hashCode.
The application also provides a kind of computer equipment, including memory and processor, and the memory is stored with computer
The step of program, the processor realizes method described in any of the above embodiments when executing the computer program.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey
The step of method described in any of the above embodiments is realized when sequence is executed by processor.
According to above-mentioned technical solution, the application is the utility model has the advantages that the message to IoT-MQ marks, by the first label conduct
Key is calculated by default hash algorithm, is obtained the corresponding hashCode of multiple first labels, is searched in message library corresponding
The message of each IoT-MQ is respectively stored into the hash slot of the corresponding hashCode in message library, using message by hashCode
Library storage, message library are that distribution is highly reliable, guarantee the reliability of a large amount of message storages, it is intended to solve to use relational data
Library stores a large amount of message, the problem of message storage performance difference.
Detailed description of the invention
Fig. 1 is the process using the message storage method of Internet of Things message queue IoT-MQ provided by the embodiments of the present application
Figure;
Fig. 2 is the function mould using the message storage devices of Internet of Things message queue IoT-MQ provided by the embodiments of the present application
Block figure;
Fig. 3 is the structural schematic block diagram using computer equipment provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
As shown in Figure 1, the embodiment of the present application proposes the message storage method of Internet of Things message queue IoT-MQ a kind of, it is described
Method the following steps are included:
Step S101, hashCode mapping table is established, storage passes through default in the hashCode mapping table
Hash algorithm calculates resulting hashCode and the corresponding relationship for the determining hashCode in message library storage location.
The corresponding relationship of a hashCode and another hashCode are stored in hashCode mapping table, wherein
One hashCode is to calculate resulting hashCode by default hash algorithm, another hashCode is in message library
HashCode, for storing the message of IoT-MQ.
Step S102, label is added to the message of each IoT-MQ, obtains multiple first labels.
When IoT-MQ receives message, label is added to the message of each IoT-MQ, after completing label, is obtained
Multiple first labels.
In the present embodiment, before step S102, comprising:
Whether detection IoT-MQ receives message;
If detecting, IoT-MQ receives message, triggers the signal to the message addition label of IoT-MQ.
In the present embodiment, first it is labeled as category label, such as Topic, identifies which category message is the message belong to.
In some embodiments, first it is labeled as device flag, such as device id, identifies which equipment is the message belong to.
In some embodiments, before step S102, comprising:
Identify equipment belonging to the message of each IoT-MQ;
According to equipment belonging to the message for identifying each IoT-MQ, set belonging to the message for obtaining each IoT-MQ
Standby corresponding device id.
The message of each IoT-MQ is identified, equipment belonging to the message of each IoT-MQ is identified, is identifying
Out after equipment belonging to the message of each IoT-MQ, according to equipment belonging to the message for identifying each IoT-MQ, obtain
Take the corresponding device id of equipment belonging to the message of each IoT-MQ.
Accordingly, in step s 102, comprising:
Using the corresponding device id of equipment belonging to the message of each IoT-MQ as label;
Corresponding label is added to the message of each IoT-MQ, obtains multiple first labels.
After the corresponding device id of equipment belonging to the message for obtaining each IoT-MQ, disappear to each IoT-MQ
Breath adds corresponding device id, using device id as label, obtains multiple first labels.
Step S103, each first label in the multiple first label is input to default hash algorithm as key
Middle calculating calculates corresponding first hashCode of each described first label.
After obtaining multiple first labels, it is as key, key by each first label in multiple first labels
A parameter in hash algorithm is calculated by default hash algorithm, is calculated the corresponding hashCode of multiple first labels, is obtained
To the first hashCode.
Step S104, according to the hashCode mapping table, searched in message library with each described first
Corresponding 2nd hashCode of hashCode, the message library are distributed message library.
It is corresponding according to multiple first labels after calculating the corresponding hashCode of multiple first labels
HashCode searches corresponding hashCode in message library, be in message library search it is corresponding with multiple first labels
The identical hashCode of hashCode.
In the present embodiment, message library is RocketMQ.
Step S105, the message of the IoT-MQ of corresponding different first hashCode is respectively stored into and each described the
The hash slot of corresponding 2nd hashCode of one hashCode.
Corresponding hashCode is found in message library, according to the corresponding hashCode of multiple first labels and in message
The corresponding relationship of hashCode in library obtains the hash slot of corresponding hashCode in message library, by disappearing for each IoT-MQ
Breath is respectively stored into the hash slot of the corresponding hashCode in message library.
In the present embodiment, in step s105, comprising:
The messaging list message of the IoT-MQ being stored in by storage time sequencing in corresponding hash slot.
Messaging list is configured in hash slot, messaging list is used to store the message of IoT-MQ, when the message of IoT-MQ is deposited
When storing up the hash slot of the corresponding hashCode in message library, by the message of IoT-MQ by the deposit pair of storage time sequencing
The messaging list in hash slot answered guarantees that the head of entire message team table is latest news in this way, and tail portion is oldest message.
In the present embodiment, after step S105, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the target hashCode
HashCode obtains first object hashCode;
The hash slot for obtaining the first object hashCode obtains first object hash slot;
Entire message in the first object hash slot is returned to the initiator of the request.
The request for obtaining the message of IoT-MQ is received, request includes that key is obtained from request after the requests have been received
Key in request, in the present embodiment, can also from request acquisition request initiator.Get request in key it
Afterwards, it is calculated by default hash algorithm, calculates the corresponding hashCode of key in request, obtain target hashCode, according to
Target hashCode searches hashCode corresponding with target hashCode in message library, corresponding according to finding
HashCode obtains the hash slot for finding corresponding hashCode, first object hash slot is obtained, by first object hash slot
In entire message return to the initiator of request.Wherein, hash algorithm can be MD5 or SHA-1.
In the hash slot for obtaining the first object hashCode, after the step of obtaining first object hash slot,
Include:
Judge the first object hash slot with the presence or absence of message.
Accordingly, return to the initiator's of the request in the entire message by the first object hash slot
In step, comprising:
If it is determined that the first object hash slot is that there are message, then by the entire message in the first object hash slot
Return to the initiator of the request.
After the step of judgement first object hash slot whether there is message, comprising:
If it is determined that the first object hash slot is that there is no message, then by there is no disappear in the first object hash slot
The information of breath returns to the initiator of the request.
Determining, the first object hash slot is to need this situation to be notified to the initiation of request there is no when message
Side, then the information that message is not present in first object hash slot to be returned to the initiator of request.
In some embodiments, after step S105, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key and timestamp;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains the second target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the second target hashCode
HashCode obtains third target hashCode;
The hash slot for obtaining the third target hashCode, obtains target hash slot;
Judge whether the timestamp is null value;
If the timestamp is null value, the entire message in the target hash slot is returned to the initiation of the request
Side;
If the timestamp is not null value, the message corresponding with the timestamp in the target hash slot is returned
To the initiator of the request.
The request for obtaining the message of IoT-MQ is received, wherein request includes key and timestamp, after the requests have been received,
From the key in request in acquisition request, in the present embodiment, can also from request acquisition request initiator.It is getting
After key in request, is calculated by default hash algorithm, calculate the corresponding hashCode of key in request, obtain second
Target hashCode is searched corresponding with the second target hashCode according to the second target hashCode in message library
HashCode obtains the hash slot for finding corresponding hashCode, obtains target according to corresponding hashCode is found
Hash slot, acquisition time is stabbed from request, judges timestamp judge whether timestamp is null value, if timestamp is sky
Entire message in target hash slot, then is returned to the initiator of request, if timestamp is not null value, by target hash by value
Message corresponding with timestamp in slot returns to the initiator of request.
If not being null value in the timestamp, corresponding with the timestamp in the target hash slot is disappeared
In the step of breath returns to the initiator of the request, comprising:
If the timestamp is not null value, begun looking for from the head of the messaging list in the target hash slot and institute
State the corresponding storage time of timestamp;
When finding storage time corresponding with the timestamp, the corresponding message of the storage time found is obtained;
It will acquire the initiator that corresponding message returns to the request.
If timestamp is not null value, begun looking for from the head of the messaging list in target hash slot, search and when
Between stab corresponding storage time, always look for the tail portion of messaging list, terminate to search, when finding deposit corresponding with timestamp
When storing up the time, the corresponding message of the storage time found is obtained, will acquire the initiator that corresponding message returns to request.
It is also possible that begun looking for if timestamp is not null value from the head of the messaging list in target hash slot, search and when
Between stab corresponding storage time, after finding storage time corresponding with timestamp, continue to search, when find not with when
Between when stabbing corresponding storage time, terminate to search, when finding storage time corresponding with timestamp, obtain depositing of finding
Time corresponding message is stored up, will acquire the initiator that corresponding message returns to request.
In the present embodiment, after step S105, comprising:
Receive effective storage time of user's input;
Obtain the storage time of each message of every hash slot;
Judge the storage time of each message whether in effective storage time;
If judging, there are storage times not in effective storage time in each message, obtains storage time not
Message in effective storage time obtains target message;
The target message is deleted from corresponding hash slot.
In conclusion the message to IoT-MQ marks, the first label is calculated as key by default hash algorithm, is obtained
To the corresponding hashCode of multiple first labels, corresponding hashCode is searched in message library, by the message of each IoT-MQ point
It Cun Chu not be stored to the hash slot of hashCode corresponding in message library using message library, message library is distributed highly reliable
, guarantee the reliability of a large amount of message storages, it is intended to solve to store a large amount of message, message storage using relevant database
The problem of energy difference.
As shown in Fig. 2, the embodiment of the present application proposes the message storage devices 1 of Internet of Things message queue IoT-MQ a kind of, dress
Setting 1 includes opening relationships table module 11, mark module 12, computing module 13, searching module 14 and memory module 15.
Opening relationships table module 11, for establishing hashCode mapping table, in the hashCode mapping table
Storage calculates resulting hashCode and for the determining hashCode's in message library storage location by presetting hash algorithm
Corresponding relationship.
Mark module 12 adds label for the message to each IoT-MQ, obtains multiple first labels.
When IoT-MQ receives message, label is added to the message of each IoT-MQ, after the label of completion first,
Obtain multiple first labels.
In the present embodiment, device 1 includes:
First detection module, for detecting whether IoT-MQ receives message;
First trigger module, if triggering for detecting that IoT-MQ receives message and adding mark to the message of IoT-MQ
The signal of note.
In the present embodiment, first it is labeled as category label, such as Topic, identifies which kind of message is the message belong to.
In some embodiments, first it is labeled as device flag, such as device id, identifies which equipment is the message belong to.
In some embodiments, device 1 includes:
First identification module, for identification equipment belonging to the message of each IoT-MQ;
First obtains module, for the equipment according to belonging to the message for identifying each IoT-MQ, obtains each
The corresponding device id of equipment belonging to the message of IoT-MQ.
The message of each IoT-MQ is identified, equipment belonging to the message of each IoT-MQ is identified, is identifying
Out after equipment belonging to the message of each IoT-MQ, according to equipment belonging to the message for identifying each IoT-MQ, obtain
Take the corresponding device id of equipment belonging to the message of each IoT-MQ.
Accordingly, mark module 12 includes:
Device id mark module, for using the corresponding device id of equipment belonging to the message of each IoT-MQ as mark
Note;
First sub- mark module adds corresponding label for the message to each IoT-MQ, obtains multiple first marks
Note.
After the corresponding device id of equipment belonging to the message for obtaining each IoT-MQ, disappear to each IoT-MQ
Breath adds corresponding device id, using device id as label, obtains multiple first labels.
Computing module 13, it is default for each first label in the multiple first label to be input to as key
It is calculated in hash algorithm, calculates corresponding first hashCode of each described first label.
After obtaining multiple first labels, it is as key, key by each first label in multiple first labels
A parameter in hash algorithm is calculated by default hash algorithm, is calculated the corresponding hashCode of multiple first labels, is obtained
To the first hashCode.
Searching module 14, for according to the hashCode mapping table, searched in message library with described in each
Corresponding 2nd hashCode of first hashCode, the message library are distributed message library.
It is corresponding according to multiple first labels after calculating the corresponding hashCode of multiple first labels
HashCode searches corresponding hashCode in message library, be in message library search it is corresponding with multiple first labels
The identical hashCode of hashCode.
In the present embodiment, message library is RocketMQ.
Memory module 15, for the message for corresponding to the IoT-MQ of different first hashCode to be respectively stored into and respectively
The hash slot of corresponding 2nd hashCode of first hashCode.
Corresponding hashCode is found in message library, according to the corresponding hashCode of multiple first labels and in message
The corresponding relationship of hashCode in library obtains the hash slot of corresponding hashCode in message library, by disappearing for each IoT-MQ
Breath is respectively stored into the hash slot of the corresponding hashCode in message library.
In the present embodiment, memory module 15 includes:
First sub- memory module, for the message of the IoT-MQ to be stored in corresponding hash by storage time sequencing
Messaging list in slot.
Messaging list is configured in hash slot, messaging list is used to store the message of IoT-MQ, when the message of IoT-MQ is deposited
When storing up the hash slot of the corresponding hashCode in message library, by the message of IoT-MQ by the deposit pair of storage time sequencing
The messaging list in hash slot answered guarantees that the head of entire message team table is latest news in this way, and tail portion is oldest message.
In the present embodiment, device 1 includes:
First receiving module, for receiving the request for obtaining the message of IoT-MQ, wherein the request packet includes key;
First computing module is calculated for the key in the request to be input in the default hash algorithm, is calculated
The corresponding hashCode of key in the request obtains target hashCode;
First searching module, for being searched and the target in message library according to the hashCode mapping table
The corresponding hashCode of hashCode obtains first object hashCode;
First acquisition module obtains first object hash slot for obtaining the hash slot of the first object hashCode;
First return module, for the entire message in the first object hash slot to be returned to the initiation of the request
Side.
The request for obtaining the message of IoT-MQ is received, request includes that key is obtained from request after the requests have been received
Key in request, in the present embodiment, can also from request acquisition request initiator.Get request in key it
Afterwards, it is calculated by default hash algorithm, calculates the corresponding hashCode of key in request, obtain target hashCode, according to
Target hashCode searches hashCode corresponding with target hashCode in message library, corresponding according to finding
HashCode obtains the hash slot for finding corresponding hashCode, first object hash slot is obtained, by first object hash slot
In entire message return to the initiator of request.Wherein, hash algorithm can be MD5 or SHA-1.
Device 1 includes:
First judgment module, for judging the first object hash slot with the presence or absence of message.
Accordingly, the first return module includes:
First sub- return module, for if it is determined that the first object hash slot is that there are message, then by first mesh
Entire message in mark hash slot returns to the initiator of the request.
Device 1 includes:
First return module, for if it is determined that the first object hash slot is that there is no message, then by first mesh
There is no the initiators that the information of message returns to the request in mark hash slot.
Determining, the first object hash slot is to need this situation to be notified to the initiation of request there is no when message
Side, then the information that message is not present in first object hash slot to be returned to the initiator of request.
In some embodiments, device 1 includes:
Second receiving module, for receiving the request for obtaining the message of IoT-MQ, wherein the request packet includes key and time
Stamp;
Third obtains module, is used for
Third computing module is calculated for the key in the request to be input in the default hash algorithm, is calculated
The corresponding hashCode of key in the request obtains the second target hashCode;
Third searching module, for searching hashCode corresponding with the second target hashCode in message library,
Obtain third target hashCode;
Second acquisition module obtains target hash slot for obtaining the hash slot of the third target hashCode;
4th obtains module, is used for
Second judgment module, for judging whether the timestamp is null value;
Third return module returns the entire message in the target hash slot if being null value for the timestamp
Back to the initiator of the request;
4th return module, if be not null value for the timestamp, by the target hash slot with it is described when
Between stab the initiator that corresponding message returns to the request.
The request for obtaining the message of IoT-MQ is received, wherein request includes key and timestamp, after the requests have been received,
From the key in request in acquisition request, in the present embodiment, can also from request acquisition request initiator.It is getting
After key in request, is calculated by default hash algorithm, calculate the corresponding hashCode of key in request, obtain second
Target hashCode is searched corresponding with the second target hashCode according to the second target hashCode in message library
HashCode obtains the hash slot for finding corresponding hashCode, obtains target according to corresponding hashCode is found
Hash slot, acquisition time is stabbed from request, judges timestamp judge whether timestamp is null value, if timestamp is sky
Entire message in target hash slot, then is returned to the initiator of request, if timestamp is not null value, by target hash by value
Message corresponding with timestamp in slot returns to the initiator of request.
4th return module includes:
First sub- searching module, if not being null value for the timestamp, the message column from the target hash slot
The head of table begins looking for storage time corresponding with the timestamp;
First sub-acquisition module is found for obtaining when finding storage time corresponding with the timestamp
The corresponding message of storage time;
First sub- return module, the initiator of the request is returned to for will acquire corresponding message.
If timestamp is not null value, begun looking for from the head of the messaging list in target hash slot, search and when
Between stab corresponding storage time, always look for the tail portion of messaging list, terminate to search, when finding deposit corresponding with timestamp
When storing up the time, the corresponding message of the storage time found is obtained, will acquire the initiator that corresponding message returns to request.
It is also possible that begun looking for if timestamp is not null value from the head of the messaging list in target hash slot, search and when
Between stab corresponding storage time, after finding storage time corresponding with timestamp, continue to search, when find not with when
Between when stabbing corresponding storage time, terminate to search, when finding storage time corresponding with timestamp, obtain depositing of finding
Time corresponding message is stored up, will acquire the initiator that corresponding message returns to request.
In the present embodiment, device 1 includes:
4th receiving module, for receiving effective storage time of user's input;
5th obtains module, the storage time of each message for obtaining every hash slot;
Third judgment module, for judging the storage time of each message whether in effective storage time;
6th obtains module, if for judging that there are storage times not in effective storage time in each message
It is interior, then message of the storage time not in effective storage time is obtained, target message is obtained;
First removing module, for deleting the target message from corresponding hash slot.
In conclusion the message to IoT-MQ marks, the first label is calculated as key by default hash algorithm, is obtained
To the corresponding hashCode of multiple first labels, corresponding hashCode is searched in message library, by the message of each IoT-MQ point
It Cun Chu not be stored to the hash slot of hashCode corresponding in message library using message library, message library is distributed highly reliable
, guarantee the reliability of a large amount of message storages, it is intended to solve to store a large amount of message, message storage using relevant database
The problem of energy difference.
As shown in figure 3, also providing a kind of computer equipment in the embodiment of the present application, which can be service
Device, internal structure can be as shown in Figure 3.The computer equipment includes processor, the memory, net connected by system bus
Network interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment
Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer journey
Sequence and database.The internal memory provides environment for the operation of operating system and computer program in non-volatile memory medium.
The database of the computer equipment is for storing the data such as the model of message storage method of Internet of Things message queue IoT-MQ.It should
The network interface of computer equipment is used to communicate with external terminal by network connection.The computer program is executed by processor
When to realize the message storage method of Internet of Things message queue IoT-MQ a kind of.
Above-mentioned processor executes the step of message storage method of above-mentioned Internet of Things message queue IoT-MQ: establishing
HashCode mapping table, storage is calculated resulting by default hash algorithm in the hashCode mapping table
HashCode and the corresponding relationship for the determining hashCode in message library storage location;The message of each IoT-MQ is added
It labels, obtains multiple first labels;It is used as key to be input to each first label in the multiple first label default
It is calculated in hash algorithm, calculates corresponding first hashCode of each described first label;According to described hashCode pairs
Relation table is answered, twoth hashCode corresponding with the first hashCode described in each, the message library are searched in message library
For distributed message library;The message of the IoT-MQ of corresponding different first hashCode is respectively stored into and each described the
The hash slot of corresponding 2nd hashCode of one hashCode.
In one embodiment, above-mentioned that label is added according to the message to each IoT-MQ, obtain multiple first
Before the step of label, comprising:
Identify equipment belonging to the message of each IoT-MQ;
According to equipment belonging to the message for identifying each IoT-MQ, set belonging to the message for obtaining each IoT-MQ
Standby corresponding device id;
Accordingly, label is added according to the message to each IoT-MQ described, obtains multiple first labels
In step, comprising:
Using the corresponding device id of equipment belonging to the message of each IoT-MQ as label;
Corresponding label is added to the message of each IoT-MQ, it is described to obtain multiple first labels.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
In the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
The messaging list message of the IoT-MQ being stored in by storage time sequencing in corresponding hash slot.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
After the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the target hashCode
HashCode obtains first object hashCode;
The hash slot for obtaining the first object hashCode obtains first object hash slot;
Entire message in the first object hash slot is returned to the initiator of the request.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
After the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key and timestamp;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains the second target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the second target hashCode
HashCode obtains third target hashCode;
The hash slot for obtaining the third target hashCode, obtains target hash slot;
Judge whether the timestamp is null value;
If the timestamp is null value, the entire message in the target hash slot is returned to the initiation of the request
Side;
If the timestamp is not null value, the message corresponding with the timestamp in the target hash slot is returned
To the initiator of the request.
In one embodiment, if the above-mentioned timestamp is not null value, by the target hash slot with it is described
In the step of corresponding message of timestamp returns to the initiator of the request, comprising:
If the timestamp is not null value, begun looking for from the head of the messaging list in the target hash slot and institute
State the corresponding storage time of timestamp;
When finding storage time corresponding with the timestamp, the corresponding message of the storage time found is obtained;
It will acquire the initiator that corresponding message returns to the request.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
After the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
Receive effective storage time of user's input;
Obtain the storage time of each message of every hash slot;
Judge the storage time of each message whether in effective storage time;
If judging, there are storage times not in effective storage time in each message, obtains storage time not
Message in effective storage time obtains target message;
The target message is deleted from corresponding hash slot.
It will be understood by those skilled in the art that structure shown in Fig. 3, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
The computer equipment of the embodiment of the present application marks the message of IoT-MQ, by the first label as key by presetting
Hash algorithm calculates, and obtains the corresponding hashCode of multiple first labels, corresponding hashCode is searched in message library, will be each
The message of IoT-MQ is respectively stored into the hash slot of the corresponding hashCode in message library, is stored using message library, message library
It is that distribution is highly reliable, guarantees the reliability of a large amount of message storages, it is intended to solve using relevant database storage largely
Message, the problem of message storage performance difference.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates
Machine program realizes the message storage method of Internet of Things message queue IoT-MQ a kind of when being executed by processor, specifically: it establishes
HashCode mapping table, storage is calculated resulting by default hash algorithm in the hashCode mapping table
HashCode and the corresponding relationship for the determining hashCode in message library storage location;The message of each IoT-MQ is added
It labels, obtains multiple first labels;It is used as key to be input to each first label in the multiple first label default
It is calculated in hash algorithm, calculates corresponding first hashCode of each described first label;It is searched in message library and every
Corresponding 2nd hashCode of one the first hashCode, the message library are distributed message library;It will be corresponding different
The message of the IoT-MQ of first hashCode is respectively stored into and each first hashCode corresponding second
The hash slot of hashCode.
In one embodiment, above-mentioned that label is added according to the message to each IoT-MQ, obtain multiple first
Before the step of label, comprising:
Identify equipment belonging to the message of each IoT-MQ;
According to equipment belonging to the message for identifying each IoT-MQ, set belonging to the message for obtaining each IoT-MQ
Standby corresponding device id;
Accordingly, label is added according to the message to each IoT-MQ described, obtains multiple first labels
In step, comprising:
Using the corresponding device id of equipment belonging to the message of each IoT-MQ as label;
Corresponding label is added to the message of each IoT-MQ, obtains multiple first labels.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
In the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
The messaging list message of the IoT-MQ being stored in by storage time sequencing in corresponding hash slot.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
After the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the target hashCode
HashCode obtains first object hashCode;
The hash slot for obtaining the first object hashCode obtains first object hash slot;
Entire message in the first object hash slot is returned to the initiator of the request.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
After the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key and timestamp;
Key in the request is input in the default hash algorithm and is calculated, key pairs in the request is calculated
The hashCode answered obtains the second target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the second target hashCode
HashCode obtains third target hashCode;
The hash slot for obtaining the third target hashCode, obtains target hash slot;
Judge whether the timestamp is null value;
If the timestamp is null value, the entire message in the target hash slot is returned to the initiation of the request
Side;
If the timestamp is not null value, the message corresponding with the timestamp in the target hash slot is returned
To the initiator of the request.
In one embodiment, if the above-mentioned timestamp is not null value, by the target hash slot with it is described
In the step of corresponding message of timestamp returns to the initiator of the request, comprising:
If the timestamp is not null value, begun looking for from the head of the messaging list in the target hash slot and institute
State the corresponding storage time of timestamp;
When finding storage time corresponding with the timestamp, the corresponding message of the storage time found is obtained;
It will acquire the initiator that corresponding message returns to the request.
In one embodiment, the message of the above-mentioned IoT-MQ by corresponding different first hashCode is respectively stored into
After the step of hash slot of the 2nd hashCode corresponding with each first hashCode, comprising:
Receive effective storage time of user's input;
Obtain the storage time of each message of every hash slot;
Judge the storage time of each message whether in effective storage time;
If judging, there are storage times not in effective storage time in each message, obtains storage time not
Message in effective storage time obtains target message;
The target message is deleted from corresponding hash slot.
The storage medium of the embodiment of the present application marks the message of IoT-MQ, by the first label as key by presetting
Hash algorithm calculates, and obtains the corresponding hashCode of multiple first labels, corresponding hashCode is searched in message library, will be each
The message of IoT-MQ is respectively stored into the hash slot of the corresponding hashCode in message library, is stored using message library, message library
It is that distribution is highly reliable, guarantees the reliability of a large amount of message storages, it is intended to solve using relevant database storage largely
Message, the problem of message storage performance difference.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
Any reference used in provided herein and embodiment to memory, storage, database or other media,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Made any modifications, equivalent replacements, and improvements etc. within mind and principle should all include within the scope of protection of this application.
Claims (10)
1. a kind of message storage method of Internet of Things message queue IoT-MQ, which is characterized in that the described method includes:
HashCode mapping table is established, storage calculates institute by default hash algorithm in the hashCode mapping table
The hashCode obtained and the corresponding relationship for the determining hashCode in message library storage location;
Label is added to the message of each IoT-MQ, obtains multiple first labels;
Each first label in the multiple first label is input in the default hash algorithm as key and is calculated, is counted
Calculate corresponding first hashCode of each described first label;
According to the hashCode mapping table, corresponding with the first hashCode described in each the is searched in message library
Two hashCode, the message library are distributed message library;
The message of the IoT-MQ of corresponding different first hashCode is respectively stored into and each described first hashCode pairs
The hash slot of the 2nd hashCode answered.
2. the message storage method of Internet of Things message queue IoT-MQ according to claim 1, which is characterized in that described
Before the step of adding label according to the message to each IoT-MQ, obtain the multiple first label, comprising:
Identify equipment belonging to the message of each IoT-MQ;
According to equipment belonging to the message for identifying each IoT-MQ, equipment pair belonging to the message of each IoT-MQ is obtained
The device id answered;
In described the step of adding label according to the message to each IoT-MQ, obtain the multiple first label, comprising:
Using the corresponding device id of equipment belonging to the message of each IoT-MQ as label;
Corresponding label is added to the message of each IoT-MQ, obtains multiple first labels.
3. the message storage method of Internet of Things message queue IoT-MQ according to claim 1, which is characterized in that described
The message of the IoT-MQ of corresponding different first hashCode is respectively stored into corresponding with each first hashCode
In the step of hash slot of 2nd hashCode, comprising:
The messaging list message of the IoT-MQ being stored in by storage time sequencing in corresponding hash slot.
4. the message storage method of Internet of Things message queue IoT-MQ according to claim 1, which is characterized in that described
The message of the IoT-MQ of corresponding different first hashCode is respectively stored into corresponding with each first hashCode
After the step of hash slot of 2nd hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key;
Key in the request is input in the default hash algorithm and is calculated, the key calculated in the request is corresponding
HashCode obtains target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the target hashCode
HashCode obtains first object hashCode;
The hash slot for obtaining the first object hashCode obtains first object hash slot;
Entire message in the first object hash slot is returned to the initiator of the request.
5. the message storage method of Internet of Things message queue IoT-MQ according to claim 1, which is characterized in that described
The message of the IoT-MQ of corresponding different first hashCode is respectively stored into corresponding with each first hashCode
After the step of hash slot of 2nd hashCode, comprising:
The request for obtaining the message of IoT-MQ is received, wherein the request packet includes key and timestamp;
Key in the request is input in the default hash algorithm and is calculated, the key calculated in the request is corresponding
HashCode obtains the second target hashCode;
According to the hashCode mapping table, searched in message library corresponding with the second target hashCode
HashCode obtains third target hashCode;
The hash slot for obtaining the third target hashCode, obtains target hash slot;
Judge whether the timestamp is null value;
If the timestamp is null value, the entire message in the target hash slot is returned to the initiator of the request;
If the timestamp is not null value, the message corresponding with the timestamp in the target hash slot is returned into institute
State the initiator of request.
6. the message storage method of Internet of Things message queue IoT-MQ according to claim 5, which is characterized in that described
If the timestamp is not null value, the message corresponding with the timestamp in the target hash slot is returned into described ask
In the step of initiator asked, comprising:
If the timestamp is not null value, from the head of the messaging list in the target hash slot begin looking for it is described when
Between stab corresponding storage time;
When finding storage time corresponding with the timestamp, the corresponding message of the storage time found is obtained;
It will acquire the initiator that corresponding message returns to the request.
7. the message storage method of Internet of Things message queue IoT-MQ according to claim 1, which is characterized in that described
The message of the IoT-MQ of corresponding different first hashCode is respectively stored into corresponding with each first hashCode
After the step of hash slot of 2nd hashCode, comprising:
Receive effective storage time of user's input;
Obtain the storage time of each message of every hash slot;
Judge the storage time of each message whether in effective storage time;
If judging, there are storage times not in effective storage time in each message, obtains storage time not in institute
The message in effective storage time is stated, target message is obtained;
The target message is deleted from corresponding hash slot.
8. a kind of message storage devices of Internet of Things message queue IoT-MQ, which is characterized in that described device includes:
Opening relationships table module, for establishing hashCode mapping table, storage is logical in the hashCode mapping table
It crosses default hash algorithm and calculates resulting hashCode and the corresponding pass for being used for the determining hashCode in message library storage location
System;
Mark module adds label for the message to each IoT-MQ, obtains multiple first labels;
Computing module, for each first label in the multiple first label to be input to default hash algorithm as key
Middle calculating calculates corresponding first hashCode of each described first label;
Searching module, for according to the hashCode mapping table, searched in message library with each described first
Corresponding 2nd hashCode of hashCode, the message library are distributed message library;
Memory module, for the message for corresponding to the IoT-MQ of different first hashCode to be respectively stored into and each described the
The hash slot of corresponding 2nd hashCode of one hashCode.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the processor realizes method described in any one of claims 1 to 7 when executing computer program the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910394580.XA CN110245028B (en) | 2019-05-13 | 2019-05-13 | Message storage method, device, computer equipment and storage medium of IoT-MQ |
PCT/CN2019/118172 WO2020228287A1 (en) | 2019-05-13 | 2019-11-13 | Iot-mq message storage method, device, computer apparatus and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910394580.XA CN110245028B (en) | 2019-05-13 | 2019-05-13 | Message storage method, device, computer equipment and storage medium of IoT-MQ |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110245028A true CN110245028A (en) | 2019-09-17 |
CN110245028B CN110245028B (en) | 2023-08-25 |
Family
ID=67884275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910394580.XA Active CN110245028B (en) | 2019-05-13 | 2019-05-13 | Message storage method, device, computer equipment and storage medium of IoT-MQ |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110245028B (en) |
WO (1) | WO2020228287A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110928609A (en) * | 2020-01-20 | 2020-03-27 | 武汉斗鱼鱼乐网络科技有限公司 | Method, device and medium for marking equipment and computer equipment |
WO2020228287A1 (en) * | 2019-05-13 | 2020-11-19 | 平安科技(深圳)有限公司 | Iot-mq message storage method, device, computer apparatus and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112769924B (en) * | 2020-12-31 | 2022-04-15 | 平安科技(深圳)有限公司 | Distributed deployment method, device, equipment and medium of RocktMQ |
CN115065647B (en) * | 2022-06-20 | 2024-04-16 | 中银金融科技有限公司 | Data calculation method and device and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120110343A1 (en) * | 2010-10-29 | 2012-05-03 | Bandic Zvonimir Z | Trustworthy timestamps on data storage devices |
CN103503388A (en) * | 2011-09-01 | 2014-01-08 | 华为技术有限公司 | Distributed queue message reading method, device and system |
CN103761141A (en) * | 2013-12-13 | 2014-04-30 | 北京奇虎科技有限公司 | Method and device for realizing message queue |
US20140181119A1 (en) * | 2012-12-26 | 2014-06-26 | Industrial Technology Research Institute | Method and system for accessing files on a storage system |
CN105516367A (en) * | 2016-02-02 | 2016-04-20 | 北京百度网讯科技有限公司 | Distributed data storage system, method and device |
CN106055630A (en) * | 2016-05-27 | 2016-10-26 | 北京小米移动软件有限公司 | Log storage method and device |
US20170171143A1 (en) * | 2015-12-14 | 2017-06-15 | International Business Machines Corporation | Method and apparatus for unified message adaptation |
CN109739930A (en) * | 2018-12-19 | 2019-05-10 | 平安普惠企业管理有限公司 | Date storage method, device based on distributed cache system, computer equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9652310B1 (en) * | 2013-09-30 | 2017-05-16 | EMC IP Holding Company LLC | Method and apparatus for using consistent-hashing to ensure proper sequencing of message processing in a scale-out environment |
CN104536958B (en) * | 2014-09-26 | 2018-03-16 | 杭州华为数字技术有限公司 | A kind of composite index method and device |
CN108833438B (en) * | 2018-07-18 | 2020-04-14 | 电子科技大学 | Block chain-based industrial Internet of things information secure storage method |
CN109274730B (en) * | 2018-09-04 | 2021-07-23 | 上海联寓智能科技有限公司 | Internet of things system, MQTT message transmission optimization method and device |
CN110245028B (en) * | 2019-05-13 | 2023-08-25 | 平安科技(深圳)有限公司 | Message storage method, device, computer equipment and storage medium of IoT-MQ |
-
2019
- 2019-05-13 CN CN201910394580.XA patent/CN110245028B/en active Active
- 2019-11-13 WO PCT/CN2019/118172 patent/WO2020228287A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120110343A1 (en) * | 2010-10-29 | 2012-05-03 | Bandic Zvonimir Z | Trustworthy timestamps on data storage devices |
CN103503388A (en) * | 2011-09-01 | 2014-01-08 | 华为技术有限公司 | Distributed queue message reading method, device and system |
US20140181119A1 (en) * | 2012-12-26 | 2014-06-26 | Industrial Technology Research Institute | Method and system for accessing files on a storage system |
CN103761141A (en) * | 2013-12-13 | 2014-04-30 | 北京奇虎科技有限公司 | Method and device for realizing message queue |
US20170171143A1 (en) * | 2015-12-14 | 2017-06-15 | International Business Machines Corporation | Method and apparatus for unified message adaptation |
CN105516367A (en) * | 2016-02-02 | 2016-04-20 | 北京百度网讯科技有限公司 | Distributed data storage system, method and device |
CN106055630A (en) * | 2016-05-27 | 2016-10-26 | 北京小米移动软件有限公司 | Log storage method and device |
CN109739930A (en) * | 2018-12-19 | 2019-05-10 | 平安普惠企业管理有限公司 | Date storage method, device based on distributed cache system, computer equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020228287A1 (en) * | 2019-05-13 | 2020-11-19 | 平安科技(深圳)有限公司 | Iot-mq message storage method, device, computer apparatus and storage medium |
CN110928609A (en) * | 2020-01-20 | 2020-03-27 | 武汉斗鱼鱼乐网络科技有限公司 | Method, device and medium for marking equipment and computer equipment |
CN110928609B (en) * | 2020-01-20 | 2020-06-16 | 武汉斗鱼鱼乐网络科技有限公司 | Method, device and medium for marking equipment and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020228287A1 (en) | 2020-11-19 |
CN110245028B (en) | 2023-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110245028A (en) | Message storage method, device, computer equipment and the storage medium of IoT-MQ | |
CN105426408B (en) | A kind of data processing method and device of more indexes | |
CN106407430B (en) | A kind of intelligent contract state synchronization method of complexity based on stage bucket | |
CN108647357A (en) | The method and device of data query | |
CN108306864A (en) | Network data detection method, device, computer equipment and storage medium | |
CN110213357A (en) | Business datum backing method, device, computer equipment and storage medium | |
CN102308296A (en) | Hash calculating and processing method and device | |
CN114647698A (en) | Data synchronization method and device and computer storage medium | |
CN104834719B (en) | Applied to the Database Systems under real-time big data scene | |
US20160299834A1 (en) | State storage and restoration device, state storage and restoration method, and storage medium | |
CN109471729A (en) | Based on recursive resource method for cleaning and device | |
CN109120579A (en) | Detection method, device and the computer readable storage medium of malice domain name | |
CN107590233A (en) | A kind of file management method and device | |
CN106034108A (en) | Channel detecting method and channel detecting device | |
CN106993027A (en) | Remote data storage position verification method | |
CN109471852A (en) | Medical data base method for building up, device, computer equipment and storage medium | |
CN109271383B (en) | Dynamic label processing method and device, computer equipment and storage medium | |
CN114238507A (en) | Data synchronization method and device based on multiple databases | |
CN109165305A (en) | A kind of storage of characteristic value, search method and device | |
CN113868216A (en) | Block chain monitoring method and device | |
CN107040564A (en) | Method of data synchronization, data synchronization server and the cloud storage system of cloud storage | |
CN105245565A (en) | Cloud system, management node and data obtaining method | |
CN105574106A (en) | Network information analyzing and processing method of big data platform | |
CN108694219B (en) | Data processing method and device | |
CN109445718A (en) | Data writing method and system based on data migration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |