Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Clustering method and device for MQTT protocol consumers and storage medium

A consumer and cluster technology, applied in the field of Internet of Things, can solve the problem that consumers cannot consume and process producer messages, and achieve the effect of avoiding server downtime and message loss

Pending Publication Date: 2021-04-27
GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a clustering method for MQTT protocol consumers, which can solve the problem in the prior art that a single consumer cannot quickly and timely consume and process a large number of messages generated by the producer

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Clustering method and device for MQTT protocol consumers and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0025] The present invention provides a kind of grouping method of MQTT agreement consumer, comprises the following steps:

[0026] Step 1, the group management service sets the terminal grouping strategy according to the processing capability of the MQTT server;

[0027] For example, when there is only one consumer, if it is found that the consumer is lagging behind in processing messages or the messages are piled up, it is necessary to increase the consumer group...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a clustering method and device for MQTT protocol consumers and a storage medium. The method comprises the steps that a grouping management service sets a terminal grouping strategy according to the processing capacity of an MQTT server; a terminal receives the grouping strategy of the grouping management service and sets a grouping number of the terminal; the terminals send messages in groups, and group numbers are added in the sent topics; and the server consumer consumes the message in groups according to the corresponding terminal, and adds a group number in the theme of the consumer. Terminal devices are grouped into terminals GROUP-1 to terminals GROUP-N by utilizing a grouping management service, and then messages grouped by the terminals are sent to an MQTT server, so that a server consumer receives the messages grouped correspondingly, and cluster consumption of the messages by the server consumer is realized. The problem that a single consumer cannot consume a large number of terminal device producer messages in time is solved.

Description

technical field [0001] The invention relates to the technical field of the Internet of Things, in particular to a clustering method, device and storage medium of MQTT protocol consumers. Background technique [0002] The MQTT3.1.1 (Message Queue Telemetry Transmission) protocol is a widely used Internet of Things protocol, but under this protocol, it does not support cluster consumption of message consumers, that is, when the Many-To-One mode (a large number of terminal devices When a message producer corresponds to a server consumer), the server consumer cannot consume messages in a cluster, which will result in that when a large number of producers generate a large number of messages, a single consumer cannot consume and process these messages quickly and in a timely manner. Make the message lost, and even cause the server to go down. Contents of the invention [0003] The purpose of the present invention is to provide a method for clustering MQTT protocol consumers, wh...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L29/08
CPCH04L41/0893H04L67/1097H04L67/56
Inventor 邓嘉俊罗文罗益峰
Owner GUANGZHOU LANGO ELECTRONICS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products