CN111212135A - Message subscription method, device, system, electronic equipment and storage medium - Google Patents

Message subscription method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN111212135A
CN111212135A CN201911423839.5A CN201911423839A CN111212135A CN 111212135 A CN111212135 A CN 111212135A CN 201911423839 A CN201911423839 A CN 201911423839A CN 111212135 A CN111212135 A CN 111212135A
Authority
CN
China
Prior art keywords
message
shared file
service device
client
storage device
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.)
Pending
Application number
CN201911423839.5A
Other languages
Chinese (zh)
Inventor
肖江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201911423839.5A priority Critical patent/CN111212135A/en
Publication of CN111212135A publication Critical patent/CN111212135A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]

Abstract

The embodiment of the invention provides a message subscription method, a message subscription device, a message subscription system, electronic equipment and a storage medium. The method comprises the steps that a first slave service device in the MQTT cluster requests to acquire a shared file lock according to a preset time interval, the shared file lock is released when a master service device is abnormal, after the shared file lock is acquired, the shared file lock is used as the master service device to receive a subscription request of a first message sent by a first client, the first message is acquired from a shared file storage device within the preset effective duration of the first message based on the subscription request, and the first message is sent to the first client. Through the technical scheme provided by the embodiment of the invention, once the main service equipment is abnormal in the MQTT cluster, the slave service equipment in the MQTT cluster can timely take the role of the main service equipment to provide the message subscription service for the first client, thereby realizing the cluster management of the main service equipment and the slave service equipment and improving the availability of the MQTT system.

Description

Message subscription method, device, system, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of internet of things, in particular to a message subscription method, a message subscription device, a message subscription system, electronic equipment and a storage medium.
Background
The Message Queue Telemetry Transport (MQTT) protocol is a communication protocol based on a publish/subscribe (publish/subscribe) mode, and is widely applied to the internet of things industry.
Currently, in a Message processing process corresponding to Message publishing and Message subscribing based on an MQTT protocol, the open-source Message agent software used may be mosquitto, RabbitMQ (rabbitmessage queue), event dispatcher (eventemiter), active mq (active Message queue), and the like, where mosquitto is an open-source Message agent software implementing a Message push protocol MQTT v3.1, RabbitMQ is an open-source Message agent software implementing an Advanced Message Queue Protocol (AMQP), and active mq is an open-source code Message middleware developed by the Apache software foundation. Fig. 1 is a schematic structural diagram of a conventional MQTT system. The MQTT system comprises a message publishing client, service equipment and a message subscribing client. The service equipment is electronic equipment provided with open source message agent software. The service equipment receives and stores the message to be subscribed published by the message publishing client. When a subscription request for a message to be subscribed sent by a message subscription client is received, the message to be subscribed can be sent to the message subscription client, and a message processing process is completed.
However, in the MQTT system, since the source-opened message broker software is in the form of a single node for providing the message publishing service or the message subscribing service, once the source-opened message broker software is abnormal, the message publishing and the message subscribing cannot be performed normally, and the MQTT system cannot operate normally, so that the usability of the MQTT system is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a message subscription method, a message subscription device, a message subscription system and electronic equipment, namely a storage medium, so as to improve the usability of an MQTT system. The specific technical scheme is as follows:
the embodiment of the invention provides a message subscription method, which is applied to first slave service equipment in an MQTT cluster, wherein the MQTT cluster comprises main service equipment, at least one slave service equipment and shared file storage equipment, and the method comprises the following steps:
requesting to acquire a shared file lock according to a preset time interval, wherein the shared file lock is released when the main service equipment is abnormal;
after the shared file lock is acquired, the shared file lock is used as main service equipment to receive a subscription request of a first message sent by a first client;
based on the subscription request, obtaining the first message from the shared file storage device within a preset effective duration of the first message;
and sending the first message to the first client.
Optionally, the first message stored in the shared file storage device carries a first receiving time of the first message;
the step of obtaining the first message from the shared file storage device within a preset effective duration of the first message based on the subscription request includes:
and obtaining a first message with a time difference between the current time and the first receiving time smaller than the preset effective duration from the shared file storage device based on the subscription request.
Optionally, the method further includes:
and discarding the first message stored in the shared file storage device when the time difference between the current time and the first receiving time is not less than the preset effective time.
Optionally, after the shared file lock is acquired, the method further includes:
receiving a second message issued by the second client as a main service device;
and according to the second receiving time of the second message, storing the second message carrying the second receiving time as a message to be subscribed in the shared file storage device.
Optionally, the first message is stored in the shared document storage device after the main service device receives information to be subscribed, which is published by a second client; or
The first message is the second message.
Optionally, the step of requesting to acquire a shared file lock according to a preset time interval includes:
and according to a preset time interval, simultaneously requesting to acquire a shared file lock with other slave service equipment in the MQTT cluster.
Optionally, the shared file storage device is: the shared File System is formed by Storage spaces in a main service device and each slave service device of a Storage Area Network (SAN) or a Network File System (NFS).
The embodiment of the invention also provides a message subscription device, which is applied to a first slave service device in an MQTT cluster, wherein the MQTT cluster comprises a master service device, at least one slave service device and a shared file storage device, and the device comprises:
the first acquisition module is used for requesting to acquire a shared file lock according to a preset time interval, wherein the shared file lock is released when the main service equipment is abnormal;
the first receiving module is used for receiving a subscription request of a first message sent by a first client as a main service device after the shared file lock is obtained;
a second obtaining module, configured to obtain, based on the subscription request, the first message from the shared file storage device within a preset effective duration of the first message;
a sending module, configured to send the first message to the first client.
Optionally, the first message stored in the shared file storage device carries a first receiving time of the first message;
the second obtaining module is specifically configured to, based on the subscription request, obtain the first message from the shared file storage device when a time difference between a current time and the first receiving time is smaller than the preset effective time.
Optionally, the apparatus further comprises:
and the discarding module is used for discarding the first message stored in the shared file storage device when the time difference between the current time and the first receiving time is not less than the preset effective time length.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a second message issued by the second client as a main service device after the shared file lock is acquired;
and the storage module is used for storing the second message carrying the second receiving time into the shared file storage device as a message to be subscribed according to the second receiving time of the second message.
Optionally, the first message is stored in the shared document storage device after the main service device receives information to be subscribed, which is published by a second client; or the first message is the second message.
Optionally, the first obtaining module is specifically configured to request to obtain the shared file lock with other slave service devices in the MQTT cluster at the same time according to a preset time interval.
Optionally, the shared file storage device is: the shared file system is formed by storage spaces in a main service device running SAN or NFS and each slave service device.
The embodiment of the invention also provides a message subscription system, which comprises a client and an MQTT cluster, wherein the MQTT cluster comprises the client, a main service device, at least one slave service device and a shared file storage device;
the client is used for sending a subscription request and receiving a message;
the first slave service device in the MQTT cluster is used for requesting to acquire a shared file lock according to a preset time interval, wherein the shared file lock is released when the master service device is abnormal; after the shared file lock is obtained, the shared file lock is used as a main service device to receive a subscription request of a first message sent by a client; based on the subscription request, obtaining the first message from the shared file storage device within a preset effective duration of the first message; and sending the first message to the client.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the message subscription method steps when executing the program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the message subscription method described above are implemented.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the above-mentioned message subscription methods.
The embodiment of the invention has the following beneficial effects:
according to the message subscription method, the message subscription device, the message subscription system, the electronic equipment and the storage medium, when the main service equipment in the MQTT cluster is abnormal, the main service equipment releases the shared file lock. At this point, each slave service device in the MQTT cluster will request to acquire the shared file lock. When the first slave service device acquires the shared file lock, the role of the first slave service device is changed into the master service device in the MQTT cluster, so that a subscription request for a first message in the shared file storage device, which is sent by the first client, is received, and the first message is sent to the first client within the preset effective duration of the first message. In the MQTT cluster, once the main service equipment is abnormal, the slave service equipment in the MQTT cluster can timely take the role of the main service equipment to provide message subscription service for the first client, so that the clustered management of the main service equipment and the slave service equipment is realized, and the availability of the MQTT system is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a conventional MQTT system;
fig. 2 is a schematic structural diagram of an MQTT system according to an embodiment of the present invention;
fig. 3 is a first flowchart of a message subscription method according to an embodiment of the present invention;
fig. 4 is a second flowchart of a message subscription method according to an embodiment of the present invention;
fig. 5 is a third flowchart illustrating a message subscription method according to an embodiment of the present invention;
fig. 6 is a signaling diagram of a message processing procedure according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a message subscription apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a message subscription system according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problem that the availability of an MQTT system is poor in the process of processing messages by single-node open source message agent software, the embodiment of the invention provides a message subscription method. The method can be applied to any electronic equipment provided with the open source message agent software. In the method provided by the embodiment of the invention, a first slave service device in an MQTT cluster requests to acquire a shared file lock according to a preset time interval, the shared file lock is released when a master service device is abnormal, after the shared file lock is acquired, the first slave service device receives a subscription request of a first message sent by a first client as the master service device, acquires the first message from a shared file storage device within a preset effective duration of the first message based on the subscription request, and sends the first message to the first client.
By the method provided by the embodiment of the invention, when the main service equipment in the MQTT cluster is abnormal, the main service equipment releases the shared file lock. At this point, each slave service device in the MQTT cluster will request to acquire the shared file lock. When the first slave service device acquires the shared file lock, the role of the first slave service device is changed into the master service device in the MQTT cluster, so that a subscription request for a first message in the shared file storage device, which is sent by the first client, is received, and the first message is sent to the first client within the preset effective duration of the first message. In the MQTT cluster, once the main service equipment is abnormal, the slave service equipment in the MQTT cluster can timely take the role of the main service equipment to provide message subscription service for the first client, so that the clustered management of the main service equipment and the slave service equipment is realized, and the availability of the MQTT system is improved.
In an embodiment of the present invention, the MQTT system may include a client and an MQTT cluster. The MQTT cluster comprises a plurality of service devices and shared file storage devices. Each service device in the MQTT cluster may access the shared file storage device. In the MQTT system, the clients may include a message publishing client and a message subscribing client. The message publishing client takes on the role of a message Publisher (Publisher), and the message subscribing client takes on the role of a message Subscriber (Subscriber). The service device, i.e. the electronic device installed with the open source message agent software, plays a role of a message agent (Broker).
For convenience of understanding, fig. 2 is an exemplary illustration, and fig. 2 is a schematic structural diagram of an MQTT system according to an embodiment of the present invention.
The main service device can receive the message issued by the message issuing client, and store the received message in the shared file storage device, so as to complete the message issuing process. The main service device can also receive a subscription request sent by the message subscription client, acquire the corresponding message from the shared file storage device, and send the acquired message to the message subscription client to complete the message subscription process. During the normal operation of the master service device, that is, the master service device is normally accessible, the slave service device is not accessible. Only when the master service device is abnormal, the slave service device can take the role of the master service device to assist in completing the message publishing process and the message subscribing process. When the abnormal main service device in the MQTT cluster is recovering to be normal, the role of the main service device is the slave service device.
In the embodiment of the present invention, the master service device and the slave service device in the MQTT cluster do not have a substantial master-slave relationship. The master and slave service devices are only logically distinct. In the embodiment of the invention, the role of the service device storing the shared file lock in the MQTT cluster is determined as the master service device, and the role of the service device not storing the shared file lock is determined as the slave service device.
In this embodiment of the present invention, when the MQTT cluster configuration is completed, the main service device in the MQTT cluster may be a service device that is specified by a user and stores a shared file lock. The main service device in the MQTT cluster may also be a service device that acquires a shared file lock when each service device in the MQTT cluster competes for acquiring the shared file lock.
In an optional embodiment, the shared file storage device may be: the shared file system is formed by storage spaces in a main service device running SAN or NFS and each slave service device.
In another alternative embodiment, the shared file storage device may be: a shared database accessible by the master service device or respective slave service devices.
The following examples illustrate the present invention.
As shown in fig. 3, fig. 3 is a first flowchart of a message subscription method according to an embodiment of the present invention. The method is applied to a first slave service device in the MQTT cluster. The first slave service device may be any slave service device in the MQTT cluster, and does not perform any limiting function. The method comprises the following steps.
Step S301, according to a preset time interval, requesting to acquire a shared file lock, wherein the shared file lock is released when the main service equipment is abnormal.
In this step, each slave service device in the MQTT cluster may request the shared file lock from the public storage space according to a preset time interval.
In the embodiment of the invention, the shared file lock is stored on the main service device in the MQTT cluster. An input/output (I/O) port of the main service device may send a preset message at a certain time interval to verify whether the main service device is abnormal. When the main service equipment in the MQTT cluster is abnormal, for example, a preset message is not sent at a certain time. At this time, when the main service device is abnormal, the shared file lock will be released, which may be specifically expressed as storing the shared file lock in the above-mentioned common storage space accessible to each service device. Each slave service device in the MQTT cluster requests to acquire a shared file lock from the common storage space.
In an embodiment of the present invention, the shared file lock may be a token formed by a preset character string. When the service device acquires the message from the shared file storage device or stores the message to the shared file storage device, the shared file lock is carried in the header file of the sent message. The shared file storage device will only respond to messages carrying shared file locks.
In the embodiment of the invention, after the master service device releases the shared file lock, the master service device takes the role of the slave service device after the exception recovery.
In an optional embodiment, when the first slave service device requests to acquire the shared file lock, the first slave service device may request to acquire the shared file lock simultaneously with other slave service devices in the MQTT cluster according to a preset time interval. That is, each slave service device in the MQTT cluster may request to acquire the shared file lock from the public storage space at the same time according to the preset time interval. Thus, when the shared file lock exists in the common storage space, the shared file lock is contended together.
In another optional embodiment, each service device in the MQTT cluster has a corresponding preset priority. When requesting to acquire the shared file lock, the slave service devices in the MQTT cluster may request to acquire the shared file lock in sequence from high to low according to a preset priority.
The preset priority may be determined according to attributes of each service device, such as data processing capability, data concurrency capability, and the like. Here, the preset priority is not particularly limited.
Step S302, after the shared file lock is obtained, the first client receives, as the main service device, a subscription request of a first message sent by the first client.
In this step, after acquiring the shared file lock, the first slave service device may serve as a master service device, that is, may assume the role of the master service device to receive a subscription request for a first message stored in the shared file storage device, which is sent by the first client. The role of the first client in the MQTT system is a message subscriber, namely the message subscription client. For convenience of description, the first client is described below.
In the embodiment of the present invention, each service device, i.e., the master service device and each slave service device, in the MQTT cluster may receive the subscription request sent by the first client.
In an optional embodiment, other service devices in the MQTT cluster, that is, service devices that do not acquire the shared file lock, may discard the received subscription request, or may respond to the received subscription request, that is, an acquisition request for sending a first message to the shared file storage device, but a header file of the first acquisition request does not include the shared file lock.
In an optional embodiment, the first message may be stored in the shared document storage device by the main service device (without exception) after receiving the information to be subscribed issued by the second client. And the role of the second client in the MQTT system is a message publisher, namely the message publishing client. For convenience of description, the second client is described below.
Step S303, based on the subscription request, obtaining the first message from the shared file storage device within the preset effective duration of the first message.
In this embodiment of the present invention, specifically, the step of the first slave service device acquiring the first message from the shared file storage device may be represented as that the first slave service device sends an acquisition request for the first message to the shared file storage device, where the acquisition request carries the shared file lock, and the shared file storage device sends the first message to the first slave service device after receiving the acquisition request. Therefore, although each service device in the MQTT cluster may receive the subscription request. However, each service device except the first slave service device in the MQTT cluster does not acquire the shared file lock, so that the acquisition request sent by each service device except the first slave service device to the shared file storage device does not carry the shared file lock, and the first message cannot be acquired from the shared file storage device. For the obtaining process of the first message within the preset effective time length, reference may be made to the following description, which is not specifically described herein.
Step S304, a first message is sent to the first client.
By adopting the method shown in fig. 3, when the main service device in the MQTT cluster is abnormal, the main service device releases the shared file lock. At this point, each slave service device in the MQTT cluster will request to acquire the shared file lock. When the first slave service device acquires the shared file lock, the role of the first slave service device is changed into the master service device in the MQTT cluster, so that a subscription request for a first message in the shared file storage device, which is sent by the first client, is received, and the first message is sent to the first client within the preset effective duration of the first message. In the MQTT cluster, once the main service equipment is abnormal, the slave service equipment in the MQTT cluster can timely take the role of the main service equipment to provide message subscription service for the first client, so that the clustered management of the main service equipment and the slave service equipment is realized, and the availability of the MQTT system is improved.
In an optional embodiment, the first message stored in the shared file storage device carries a first receiving time of the first message, and according to the method shown in fig. 3, an embodiment of the present invention further provides a message subscription method. As shown in fig. 4, fig. 4 is a second flowchart of a message subscription method according to an embodiment of the present invention. The method comprises the following steps:
step S401, according to a preset time interval, requesting to acquire a shared file lock, wherein the shared file lock is released when the main service equipment is abnormal.
Step S402, after the shared file lock is obtained, the shared file lock is used as a main service device to receive a subscription request of a first message sent by a first client.
Step S403, based on the subscription request, obtaining a first message from the shared file storage device, where a time difference between the current time and the first receiving time is less than a preset effective duration.
In an alternative embodiment, the first slave service device may retrieve the first message from the shared file storage device based on the received subscription request. After acquiring the first message, the first slave service device may compare a time difference between the current time and the first reception time with a preset effective duration. The first slave service apparatus may determine that the first message is obtained when a time difference between the current time and the first reception time is less than a preset effective time. When the time difference between the current time and the first receiving time is not less than the preset effective time, the first service device may discard the acquired first message, and then determine that the first message is acquired.
In an optional embodiment, the first message stored in the shared file storage device is discarded when the time difference between the current time and the first receiving time is not less than the preset valid time.
For example, when the time difference between the current time and the first receiving time is not less than the preset valid time, the first slave service device may send a discard instruction for the first message to the shared file storage device. The shared file storage device may discard the first message upon receiving the discard instruction.
In another alternative embodiment, the first service device may request to acquire the first message from the shared file storage device based on the received subscription request, that is, an acquisition request for sending the first message to the shared file storage. The shared file storage device may compare a time difference between the current time and the first reception time of the first message to a preset validity period. When the time difference is not less than the preset time length, the shared file storage device may not respond to the received acquisition request, such as discarding the acquisition request. At this time, the first slave service device cannot obtain the first message within the preset effective time length. When the time difference is smaller than the preset time length, the shared file can respond to the received acquisition request. At this time, the first slave service device will obtain the first message within the preset effective duration.
In an alternative embodiment, when the time difference between the current time and the first receiving time of the first message is not less than the preset valid time, the shared file storage device may discard the stored first message, or store the stored first message in another storage space specified by the user, so as to facilitate the user to retrieve the first message. At this time, upon receiving the acquisition request of the first message sent from the first slave service apparatus, the shared file storage apparatus will not be able to respond to the acquisition request. The first slave service device will not be able to obtain the first message within the preset validity duration.
In the embodiment of the present invention, the preset effective duration may be determined according to a time difference that the slave service device takes over the role of the master service device, or may be a preset effective duration for the user. Here, the preset effective time period is not particularly limited.
In the embodiment of the invention, the time difference between the current time and the first receiving time is compared with the preset effective duration, so that whether the storage duration of the first message is within the preset effective duration can be accurately determined, the probability of sending the message which is not within the preset effective duration is reduced, and network resources are saved.
Step S404, sending a first message to the first client.
Step S404 is the same as step S304.
In an optional embodiment, according to the method shown in fig. 3, an embodiment of the present invention further provides a message subscription method. As shown in fig. 5, fig. 5 is a third flowchart illustrating a message subscription method according to an embodiment of the present invention. The method comprises the following steps.
Step S501, according to a preset time interval, requesting to acquire a shared file lock, wherein the shared file lock is released when the main service equipment is abnormal.
Step S502, after the shared file lock is acquired, the primary service device receives a subscription request of a first message sent by a first client.
Step S503, based on the subscription request, obtaining the first message from the shared file storage device within the preset effective duration of the first message.
Step S504, a first message is sent to the first client.
The steps S501 to S504 are the same as the steps S301 to S304.
Step S505, after acquiring the shared file lock, receiving, as the primary service device, a second message issued by the second client.
In this step, after the shared file lock is acquired, the first slave service device will assume the role of the master service device, and at this time, the first slave service device may receive the second message issued by the second client.
In the embodiment of the present invention, the second client may issue the second message to each service device in the MQTT cluster.
In the embodiment of the present invention, the execution sequence of the steps S502 and S505 is not particularly limited.
Step S506, according to the second receiving time of the second message, storing the second message carrying the second receiving time as the message to be subscribed in the shared file storage device.
In this step, the first slave service device may carry the second time as a timestamp in the second message according to the second receiving time of the second message, so as to store the second message carrying the timestamp in the shared file storage device.
In an optional embodiment, the first slave service device may directly store the second message carrying the second receiving time in the shared file storage device.
In another optional embodiment, the first slave service device may send, to the shared file storage device, a storage instruction including a second message carrying a reception time. After receiving the storage instruction, the shared file storage device may store the corresponding relationship between the second message and the carried receiving time.
In an optional embodiment, after receiving the second message, each service device in the MQTT cluster may send a storage instruction including the second message to the shared file storage device. The shared file lock is included in a header file of a storage instruction sent by first slave service equipment, wherein the storage instruction is stored with the shared file lock. Other header files of store instructions sent from the service device that do not have a shared file lock stored therein will not include a shared file lock.
In another alternative embodiment, after each service device in the MQTT cluster receives the second message, only the first slave service device storing the shared file lock may send a storage instruction including the second message to the shared file storage device. Other slave service devices in the MQTT cluster that do not have the shared file lock stored may not send a storage instruction including the second message to the shared file storage device.
In an optional embodiment, the first message is stored in the shared document storage device after the main service device (without exception) receives the information to be subscribed issued by the second client; or the first message is a second message.
With the method shown in fig. 5, the first slave service device may receive the second message sent by the second client, and store the second message carrying the timestamp in the shared file storage device, so that it is convenient to determine whether the message that the first client requests for subscription is within the preset effective duration in the message subscription at the later stage due to the presence of the timestamp.
For ease of understanding, the message publishing and message subscribing processes described above are described in conjunction with fig. 6. Fig. 6 is a signaling diagram of a message processing procedure according to an embodiment of the present invention. The method specifically comprises the following steps.
Step S601, when the primary service device is abnormal, the shared file lock is released.
When the master service device in fig. 6 releases the shared file lock, if the exception is recovered, the master service device does not store the shared file lock, and at this time, the role of the master service device is changed to the slave service device.
Step S602, acquires a shared file lock from the service device.
Each slave service device in the MQTT cluster requests to acquire the shared file lock, and the slave service device in fig. 6 is a slave service device that acquires the shared file lock, that is, the slave service device in fig. 6 is a service device that assumes the function of the master service device after an abnormality occurs to the master service device. The slave service device that did not acquire the shared file lock is not shown in FIG. 6.
In step S603, the first client sends a subscription request of the first message to each service device.
In step S604, when the slave service device that acquires the shared file lock receives the subscription request of the first message, the slave service device requests the shared file storage device to acquire the first message.
Other slave service devices in the MQTT cluster, that is, slave service devices that do not acquire the shared file lock, may also receive the subscription request of the first message. At this point, the other slave service devices may discard the received subscription request. Alternatively, the other slave service device may send an acquisition request for the first message to the shared file storage device without including the shared file lock.
In step S605, the shared file storage device sends a first message to the slave service device that acquired the shared file lock.
And when the time difference between the current time and the first receiving time of the first message is less than the preset effective time, the shared file storage device sends the first message to the slave service device which acquires the shared file lock.
Step S606, the slave service device that acquired the shared file lock sends the first message to the first client.
In step S607, the second client issues a second message to each service device.
In step S608, the slave service device that acquired the shared file lock sends the received second message to the shared file storage device.
When receiving a second message sent by the second watching client, other slave service devices in the MQTT cluster, that is, slave service devices that do not acquire the shared file lock, may discard the second message, that is, do not process the second message.
Step S609, the shared file storage device stores the second message carrying the second receiving time.
In the embodiment of the present invention, the shared file storage device in the MQTT cluster may share a storage space of the message for each service device in the MQTT. When the service device and the shared file storage device are configured, the following commands can be executed to realize that different service devices share the storage space in the shared file storage device. The description will be given taking an example in which the address of the master service device is 192.168.60.17, the address of the slave service device is 192.168.60.18, and the shared file storage device is NFS.
Executing the following commands in the master service device:
and $ service NFS start, for starting the NFS service.
$vi/etc/exports
The/usr/local/apache-activemq-5.8.0/data 192.168.60.18(rw, sync, no _ root _ square) adds/usr/local/apache-activemq-5.8.0/data 192.168.60.18(rw, sync, no _ root _ square) in the master service device's profile/etc/exports for allowing 192.168.60.18 machines to access the native message storage directory.
And $ service NFS restart, which is used to restart the NFS to validate the configuration file.
Executing the following commands on the slave service device:
the message storage directory is mounted to a shared directory of the main service equipment, and the message storage directory is mounted to the shared directory of the main service equipment through the unit of $ -t nfs-o rw 192.168.60.17,/usr/local/apache-activmq-5.8.0/data/usr/local/apache-activmq-5.8.0/data.
In the embodiment of the present invention, the configuration process of the master service device and the slave service device in the MQTT cluster is completed by configuration before the MQTT system runs. That is, only one configuration needs to be performed on the MQTT cluster, so as to realize file sharing among different service devices in the MQTT cluster. When the MQTT system runs, if the main service equipment is abnormal, the slave service equipment does not need to be reconfigured when the slave service equipment takes the role of the main service equipment.
In the above configuration process, the service device is exemplified by ActiveMQ 5.8.0. The configuration process also involves the processes of configuring a hardware environment and a software environment, installing and starting the ActiveMQ 5.8.0, adjusting the NFS storage directory, and testing after the configuration is completed, which are not specifically described herein.
Based on the same inventive concept, according to the message subscription method provided by the embodiment of the invention, the embodiment of the invention also provides a message subscription device. Fig. 7 is a schematic structural diagram of a message subscription apparatus according to an embodiment of the present invention, as shown in fig. 7. The device is applied to a first slave service device in an MQTT cluster, and the MQTT cluster comprises a master service device, at least one slave service device and a shared file storage device. The apparatus includes the following modules.
A first obtaining module 701, configured to request to obtain a shared file lock according to a preset time interval, where the shared file lock is released when the main service device is abnormal;
a first receiving module 702, configured to receive, as a main service device, a subscription request of a first message sent by a first client after obtaining a shared file lock;
a second obtaining module 703, configured to obtain, based on the subscription request, the first message from the shared file storage device within a preset effective duration of the first message;
a sending module 704, configured to send the first message to the first client.
Optionally, the first message stored in the shared file storage device carries a first receiving time of the first message;
the second obtaining module 703 may be specifically configured to, based on the subscription request, obtain the first message from the shared file storage device when a time difference between the current time and the first receiving time is less than a preset effective time.
Optionally, the message subscription apparatus may further include:
and the discarding module is used for discarding the first message stored in the shared file storage device when the time difference between the current time and the first receiving time is not less than the preset effective time.
Optionally, the message subscription apparatus may further include:
the second receiving module is used for receiving a second message issued by a second client as the main service equipment after the shared file lock is acquired;
and the storage module is used for storing the second message carrying the second receiving time into the shared file storage device as the message to be subscribed according to the second receiving time of the second message.
Optionally, the first message is stored in the shared document storage device after the main service device receives the information to be subscribed, which is published by the second client; or the first message is a second message.
Optionally, the shared file storage device is: the shared file system is formed by storage spaces in a main service device running SAN or NFS and each slave service device.
By the device provided by the embodiment of the invention, when the main service equipment in the MQTT cluster is abnormal, the main service equipment releases the shared file lock. At this point, each slave service device in the MQTT cluster will request to acquire the shared file lock. When the first slave service device acquires the shared file lock, the role of the first slave service device is changed into the master service device in the MQTT cluster, so that a subscription request for a first message in the shared file storage device, which is sent by the first client, is received, and the first message is sent to the first client within the preset effective duration of the first message. In the MQTT cluster, once the main service equipment is abnormal, the slave service equipment in the MQTT cluster can timely take the role of the main service equipment to provide message subscription service for the first client, so that the clustered management of the main service equipment and the slave service equipment is realized, and the availability of the MQTT system is improved.
Based on the same inventive concept, according to the message subscription method provided by the embodiment of the invention, the embodiment of the invention also provides a message subscription system. As shown in fig. 8, fig. 8 is a schematic structural diagram of a message subscription system according to an embodiment of the present invention. The system may include clients 801 and MQTT clusters. The MQTT cluster comprises a master service device 8021, at least one slave service device 8022 and a shared file storage device 8023;
a client 801, configured to send a subscription request and receive a message;
the first slave service device 8022 in the MQTT cluster is configured to request to acquire a shared file lock according to a preset time interval, where the shared file lock is released when the master service device 8021 is abnormal; after acquiring the shared file lock, the primary service device 8021 receives a subscription request of a first message sent by the client 801; based on the subscription request, obtaining the first message from the shared file storage 8023 within a preset effective duration of the first message; a first message is sent to client 801.
By the system provided by the embodiment of the invention, when the main service equipment in the MQTT cluster is abnormal, the main service equipment releases the shared file lock. At this point, each slave service device in the MQTT cluster will request to acquire the shared file lock. When the first slave service device acquires the shared file lock, the role of the first slave service device is changed into the master service device in the MQTT cluster, so that a subscription request for a first message in the shared file storage device, which is sent by the first client, is received, and the first message is sent to the first client within the preset effective duration of the first message. In the MQTT cluster, once the main service equipment is abnormal, the slave service equipment in the MQTT cluster can timely take the role of the main service equipment to provide message subscription service for the first client, so that the clustered management of the main service equipment and the slave service equipment is realized, and the availability of the MQTT system is improved.
Based on the same inventive concept, according to the message subscription method provided by the above embodiment of the present invention, an embodiment of the present invention further provides an electronic device, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903 and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete communication with each other through the communication bus 904;
a memory 903 for storing computer programs;
the processor 901 is configured to implement the following steps when executing the program stored in the memory 903:
requesting to acquire a shared file lock according to a preset time interval, wherein the shared file lock is released when the main service equipment is abnormal;
after the shared file lock is acquired, the shared file lock is used as main service equipment to receive a subscription request of a first message sent by a first client;
based on the subscription request, obtaining the first message from the shared file storage device within the preset effective duration of the first message;
a first message is sent to a first client.
Through the electronic equipment provided by the embodiment of the invention, when the main service equipment in the MQTT cluster is abnormal, the main service equipment releases the shared file lock. At this point, each slave service device in the MQTT cluster will request to acquire the shared file lock. When the first slave service device acquires the shared file lock, the role of the first slave service device is changed into the master service device in the MQTT cluster, so that a subscription request for a first message in the shared file storage device, which is sent by the first client, is received, and the first message is sent to the first client within the preset effective duration of the first message. In the MQTT cluster, once the main service equipment is abnormal, the slave service equipment in the MQTT cluster can timely take the role of the main service equipment to provide message subscription service for the first client, so that the clustered management of the main service equipment and the slave service equipment is realized, and the availability of the MQTT system is improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Based on the same inventive concept, according to the message subscription method provided in the above embodiment of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above message subscription methods.
Based on the same inventive concept, according to the message subscription method provided in the above embodiment of the present invention, an embodiment of the present invention further provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute any of the message subscription methods in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments such as apparatuses, systems, electronic devices, computer-readable storage media, and computer program products, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. A message subscription method applied to a first slave service device in a message queue telemetry transport MQTT cluster, the MQTT cluster including a master service device, at least one slave service device, and a shared file storage device, the method comprising:
requesting to acquire a shared file lock according to a preset time interval, wherein the shared file lock is released when the main service equipment is abnormal;
after the shared file lock is acquired, the shared file lock is used as main service equipment to receive a subscription request of a first message sent by a first client;
based on the subscription request, obtaining the first message from the shared file storage device within a preset effective duration of the first message;
and sending the first message to the first client.
2. The method according to claim 1, wherein the first message stored in the shared file storage device carries a first reception time of the first message;
the step of obtaining the first message from the shared file storage device within a preset effective duration of the first message based on the subscription request includes:
and obtaining a first message with a time difference between the current time and the first receiving time smaller than the preset effective duration from the shared file storage device based on the subscription request.
3. The method of claim 2, further comprising:
and discarding the first message stored in the shared file storage device when the time difference between the current time and the first receiving time is not less than the preset effective time.
4. The method of claim 1, wherein after acquiring the shared file lock, the method further comprises:
receiving a second message issued by the second client as a main service device;
and according to the second receiving time of the second message, storing the second message carrying the second receiving time as a message to be subscribed in the shared file storage device.
5. The method according to claim 4, wherein the first message is stored in the shared document storage device by the main service device after receiving information to be subscribed issued by a second client; or
The first message is the second message.
6. The method of claim 1, wherein the step of requesting acquisition of the shared file lock at a predetermined time interval comprises:
and according to a preset time interval, simultaneously requesting to acquire a shared file lock with other slave service equipment in the MQTT cluster.
7. The method of any of claims 1-6, wherein the shared file storage device is: the shared file system is formed by storage spaces in a master service device and each slave service device of a storage area network SAN or a network file system NFS.
8. A message subscription apparatus, applied to a first slave service device in a message queue telemetry transport MQTT cluster, where the MQTT cluster includes a master service device, at least one slave service device, and a shared file storage device, the apparatus comprising:
the first acquisition module is used for requesting to acquire a shared file lock according to a preset time interval, wherein the shared file lock is released when the main service equipment is abnormal;
the first receiving module is used for receiving a subscription request of a first message sent by a first client as a main service device after the shared file lock is obtained;
a second obtaining module, configured to obtain, based on the subscription request, the first message from the shared file storage device within a preset effective duration of the first message;
a sending module, configured to send the first message to the first client.
9. A message subscription system is characterized in that the system comprises clients and a message queue telemetry transmission MQTT cluster, wherein the MQTT cluster comprises the clients, a master service device, at least one slave service device and a shared file storage device;
the client is used for sending a subscription request and receiving a message;
the first slave service device in the MQTT cluster is used for requesting to acquire a shared file lock according to a preset time interval, wherein the shared file lock is released when the master service device is abnormal; after the shared file lock is obtained, the shared file lock is used as a main service device to receive a subscription request of a first message sent by a client; based on the subscription request, obtaining the first message from the shared file storage device within a preset effective duration of the first message; and sending the first message to the client.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
11. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN201911423839.5A 2019-12-31 2019-12-31 Message subscription method, device, system, electronic equipment and storage medium Pending CN111212135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423839.5A CN111212135A (en) 2019-12-31 2019-12-31 Message subscription method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423839.5A CN111212135A (en) 2019-12-31 2019-12-31 Message subscription method, device, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111212135A true CN111212135A (en) 2020-05-29

Family

ID=70789503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423839.5A Pending CN111212135A (en) 2019-12-31 2019-12-31 Message subscription method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111212135A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301088A (en) * 2020-07-27 2021-08-24 阿里巴巴集团控股有限公司 Message processing method, device and system, electronic equipment and readable storage medium
WO2022110919A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Information subscription method and apparatus
CN114938388A (en) * 2022-07-22 2022-08-23 浙江中控技术股份有限公司 Distributed data transmission method, device, system and storage medium
CN116668270A (en) * 2023-05-15 2023-08-29 深圳市晶存科技有限公司 Internet of things data transmission method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710593A (en) * 2012-03-19 2012-10-03 北京邮电大学 Method, device and system for publishing message in graph mashup
CN103501338A (en) * 2013-09-30 2014-01-08 华为技术有限公司 Lock recovery method, equipment and network file system
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN204906435U (en) * 2015-08-24 2015-12-23 湖南快乐阳光互动娱乐传媒有限公司 News push system
CN108256767A (en) * 2018-01-17 2018-07-06 万洲电气股份有限公司 A kind of monitoring analysis of major-minor interlocking equipment and power-economizing method
CN108810086A (en) * 2018-04-27 2018-11-13 电子科技大学中山学院 Intelligent equipment communication platform based on MQTT message protocol
CN109391500A (en) * 2017-08-11 2019-02-26 华为技术有限公司 A kind of configuring management method, device and equipment
CN109756417A (en) * 2019-01-04 2019-05-14 平安科技(深圳)有限公司 Offline message distribution method, server and storage medium
CN110336736A (en) * 2019-05-27 2019-10-15 四川长虹电器股份有限公司 The shared method subscribed to is realized based on MQTT server cluster
US20190342170A1 (en) * 2017-09-18 2019-11-07 Rapyuta Robotics Co., Ltd Auto-determining and installing missing components to a to-be-managed device by a single execution of unique device setup command

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710593A (en) * 2012-03-19 2012-10-03 北京邮电大学 Method, device and system for publishing message in graph mashup
CN103501338A (en) * 2013-09-30 2014-01-08 华为技术有限公司 Lock recovery method, equipment and network file system
CN104092767A (en) * 2014-07-21 2014-10-08 北京邮电大学 Posting/subscribing system for adding message queue models and working method thereof
CN204906435U (en) * 2015-08-24 2015-12-23 湖南快乐阳光互动娱乐传媒有限公司 News push system
CN109391500A (en) * 2017-08-11 2019-02-26 华为技术有限公司 A kind of configuring management method, device and equipment
US20190342170A1 (en) * 2017-09-18 2019-11-07 Rapyuta Robotics Co., Ltd Auto-determining and installing missing components to a to-be-managed device by a single execution of unique device setup command
CN108256767A (en) * 2018-01-17 2018-07-06 万洲电气股份有限公司 A kind of monitoring analysis of major-minor interlocking equipment and power-economizing method
CN108810086A (en) * 2018-04-27 2018-11-13 电子科技大学中山学院 Intelligent equipment communication platform based on MQTT message protocol
CN109756417A (en) * 2019-01-04 2019-05-14 平安科技(深圳)有限公司 Offline message distribution method, server and storage medium
CN110336736A (en) * 2019-05-27 2019-10-15 四川长虹电器股份有限公司 The shared method subscribed to is realized based on MQTT server cluster

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
大树: "部署ActiveMQ的Share File System Master-Slave", 《博客园-HTTPS://WWW.CNBLOGS.COM/RADIO/P/3797265.HTML》 *
谢珅君: "基于JMS的统一消息推送平台的设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301088A (en) * 2020-07-27 2021-08-24 阿里巴巴集团控股有限公司 Message processing method, device and system, electronic equipment and readable storage medium
CN113301088B (en) * 2020-07-27 2022-06-03 阿里巴巴集团控股有限公司 Message processing method, device and system, electronic equipment and readable storage medium
WO2022110919A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Information subscription method and apparatus
CN114938388A (en) * 2022-07-22 2022-08-23 浙江中控技术股份有限公司 Distributed data transmission method, device, system and storage medium
CN114938388B (en) * 2022-07-22 2022-11-11 浙江中控技术股份有限公司 Distributed data transmission method, device, system and storage medium
CN116668270A (en) * 2023-05-15 2023-08-29 深圳市晶存科技有限公司 Internet of things data transmission method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
US11088903B2 (en) Hybrid cloud network configuration management
CN111212135A (en) Message subscription method, device, system, electronic equipment and storage medium
CN108712332B (en) Communication method, system and device
US9171019B1 (en) Distributed lock service with external lock information database
US10069942B2 (en) Method and apparatus for changing configurations
CN111400777B (en) Network storage system, user authentication method, device and equipment
EP2948875B1 (en) Method and system for using a recursive event listener on a node in hierarchical data structure
US11741075B2 (en) Methods and system of tracking transactions for distributed ledger
CN112714192B (en) Data synchronization method and device, computer readable medium and electronic equipment
CN111277639B (en) Method and device for maintaining data consistency
CN111143382B (en) Data processing method, system and computer readable storage medium
CN109032796B (en) Data processing method and device
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN112860451A (en) Multi-tenant data processing method and device based on SaaS
CN110851290A (en) Data synchronization method and device, electronic equipment and storage medium
CN112751847A (en) Interface call request processing method and device, electronic equipment and storage medium
CN111666134A (en) Method and system for scheduling distributed tasks
CN110325980B (en) Expansion method of user interface back-end cluster for database binding type application
KR20210044281A (en) Method and apparatus for ensuring continuous device operation stability in cloud degraded mode
US11403093B1 (en) Application modification with proxy service process
CN111291127B (en) Data synchronization method, device, server and storage medium
CN114697334A (en) Execution method and device for scheduling tasks
CN110113187B (en) Configuration updating method and device, configuration server and configuration system
CN108805741B (en) Fusion method, device and system of power quality data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200529