Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for realizing efficient and migratable MQTT Broker subscription tree

An implementation method and efficient technology, applied in the direction of electrical components, transmission systems, etc., can solve the problems of large space occupation, difficult migration, low efficiency of subscription tree, etc., and achieve the effect of solving large space occupation and solving concurrency difficulties

Active Publication Date: 2021-02-19
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem solved by the present invention: the present invention provides an efficient and portable MQTT Broker subscription tree implementation method to solve the problems of low efficiency, large space occupation and difficult migration of the subscription tree under the MQTT protocol

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
  • Method for realizing efficient and migratable MQTT Broker subscription tree
  • Method for realizing efficient and migratable MQTT Broker subscription tree
  • Method for realizing efficient and migratable MQTT Broker subscription tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031]As attachedfigure 1 As shown, the server receives the subscription topic information, splits the topic according to the agreed separator, obtains the ID of the TOKEN array, and then searches the database for the idn corresponding to the element IDn of the ID. If it is not found, it applies for a new id and obtains The array KEY composed of idn, the next step is to store the corresponding relationship between KEY and client Cientid, the next step is to determine whether the KEY contains a wildcard, if the KEY does not contain a wildcard, the corresponding client set is found through the KEY, if the KEY contains With wildcards, a secondary buffer is established to store the set of KEYs containing wildcards, and then the client set corresponding to the set S is found through the KEY.

[0032]Specifically, the server receives the subscription topic information sent by the client, splits the subscription topic information according to the agreed delimiter " / ", obtains the split topic ...

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 relates to an MQTT server subscription tree implementation technology, in particular to a method for realizing an efficient and migratable MQTT Broker subscription tree, which comprisesthe following steps that: a server searches a database for an array KEY corresponding to a theme through persistently storing a corresponding relationship between the KEY and a client Cientid in the database; and obtains a client set through the stored corresponding relationship between the KEY and the client Cientid. The method realizes subscription, subscription canceling and publishing under anMQTT protocol, solves the problem of migration difficulty under the MQTT protocol by using a database, solves the problems of large occupied space and concurrency difficulty by using a correspondingrelationship between an array KEY and a theme, and is applied to the MQTT.

Description

Technical field[0001]The present invention relates to an MQTT service end subscription tree implementation technology, in particular to an efficient and transferable MQTTBroker subscription tree implementation method.Background technique[0002]The MQTT protocol stipulates that the terminal performs message delivery through a publish-subscribe mode, and the terminal that publishes and subscribes is limited by the topic. The message sent by the client includes the topic information and the client Cientid, and the topic message includes the subscription topic information and the unsubscribe topic message. , Publish and subscribe news. The node of the subscription tree stores the terminal information subscribing to the path node. In the existing mode, based on the memory structure and directly using strings as node storage, it takes up a lot of space; a topic can include multiple clients, and when multiple clients operate, it needs to be locked, and you need to wait for client 1 to compl...

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
IPC IPC(8): H04L29/08
CPCH04L67/562H04L67/55
Inventor 赖俊良
Owner SICHUAN CHANGHONG ELECTRIC CO LTD