Message Push Data Processing Method, System and Storage Medium
By building preset message intermediate components in the Internet of Things platform and storing message data into the preset message theme, the data loss problem of IoT platform when abnormalities are abnormal on the network or receiving end is solved, and the guarantee and stability of message push is improved.
Patent Information
- Application Number
- CN202311874070.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2043-12-29
AI Technical Summary
When existing IoT platforms are abnormal on the network or receiving end, in order to avoid affecting the entire platform, they may cool down the abnormal push address or discard messages with too long response time, resulting in data loss and business risks.
Build a preset message intermediate component to isolate it from the IoT platform, including the preset message topics associated with the preset resource address of the target object. When a message push is abnormal, the message data is stored in the preset message topic corresponding to the preset resource address to alleviate data loss.
It effectively alleviates data loss caused by push exceptions, enhances the message push capability of the Internet of Things platform, and improves the guarantee of message push.
Smart Images

Figure CN117914941B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a method, a system, and a storage medium for processing message push data. Background Art
[0002] Currently, most Internet of Things (IoT) platforms adopt the HTTP message push method to perform POST push requests to the URL addresses of customers in real time. In related technologies, when the network or the receiving end is abnormal and causes slow message pushing, in order to avoid some customers affecting the entire IoT platform, some methods of short-term cooling abnormal push addresses or directly discarding messages with too long return response times are often adopted to ensure the stability of the entire IoT platform. However, this also leads to data loss and may also cause certain risks in related services. Summary of the Invention
[0003] In order to solve at least one of the above technical problems, the present invention provides a method, a system, and a storage medium for processing message push data, which can effectively alleviate the problem of data loss, enhance the message push ability of the IoT platform, and effectively improve the guarantee of message pushing.
[0004] On the one hand, an embodiment of the present invention provides a method for processing message push data, including the following steps:
[0005] Construct a preset message intermediate component; wherein, the preset message intermediate component is isolated from the IoT platform, the preset message intermediate component includes a preset message topic, and the preset message topic is associated with a preset resource address of a target object;
[0006] When it is determined that the IoT platform pushes message data to the preset resource address, perform an abnormal judgment on the push address of the target object to determine whether the message push is normal;
[0007] When it is determined that the message push is abnormal, store the message data in the preset message topic corresponding to the preset resource address.
[0008] According to some embodiments of the present invention, the method further includes:
[0009] Establish a connection according to the domain name address of the preset message intermediate component to read the message data from the preset message topic.
[0010] According to some embodiments of the present invention, after performing the step of constructing the preset message intermediate component, the method further includes:
[0011] Start the security authentication mode of the preset message intermediate component;
[0012] Allocate access tokens to target objects corresponding to each of the preset resource addresses, and perform access verification of the security authentication mode through the access tokens.
[0013] According to some embodiments of the present invention, when it is determined that the Internet of Things platform pushes message data to the preset resource address, perform an abnormal judgment on the push address of the target object to determine whether the message push is normal, including:
[0014] Perform network measurement on the network interface of the Internet of Things platform through a preset network measurement module to determine whether the network status of the network interface is normal;
[0015] Alternatively, perform statistical monitoring on the push results of the Internet of Things platform through a preset push index statistical module to determine whether the push results are normal.
[0016] According to some embodiments of the present invention, when it is determined that the message push is abnormal, store the message data in the preset message topic corresponding to the preset resource address, including:
[0017] When it is determined that the network interface is in an abnormal network state, obtain the list of target objects corresponding to the message data;
[0018] Match the corresponding preset resource address according to the list of target objects to obtain resource address information;
[0019] Store the message data in the corresponding preset message topic according to the resource address information.
[0020] According to some embodiments of the present invention, when it is determined that the message push is abnormal, storing the message data in the preset message topic corresponding to the preset resource address further includes:
[0021] When it is determined that the push result is in an abnormal push state, obtain the message data corresponding to the preset resource address within a preset cycle duration to obtain data to be transferred; wherein, the abnormal push state includes that the push delay is greater than a preset delay threshold or the push failure rate is greater than a preset failure threshold;
[0022] Store the data to be transferred in the corresponding preset message topic.
[0023] According to some embodiments of the present invention, the method further includes:
[0024] When it is determined that the message data stored in the preset message topic meets the preset data conditions, delete the message data from the preset message intermediate component; wherein, the preset data conditions include determining that the message data is read from the preset message topic or determining that the storage time of the message data is greater than a preset storage time threshold.
[0025] On the other hand, an embodiment of the present invention further provides a message push data processing system, including:
[0026] A first module, configured to construct a preset message middleware component; wherein, the preset message middleware component is isolated from the Internet of Things platform, and the preset message middleware component includes a preset message topic, and the preset message topic is associated with a preset resource address of a target object;
[0027] A second module, configured to perform an abnormal judgment on the push address of the target object when it is determined that the Internet of Things platform pushes message data to the preset resource address, so as to determine whether the message push is normal;
[0028] A third module, configured to store the message data to the preset message topic corresponding to the preset resource address when it is determined that the message push is abnormal.
[0029] On the other hand, an embodiment of the present invention further provides a message push data processing system, including:
[0030] At least one processor;
[0031] At least one memory, configured to store at least one program;
[0032] When the at least one program is executed by the at least one processor, the at least one processor implements the message push data processing method as described in the above embodiment.
[0033] On the other hand, an embodiment of the present invention further provides a computer storage medium, in which a program executable by a processor is stored, and the program executable by the processor is used to implement the message push data processing method as described in the above embodiment when executed by the processor.
[0034] A message push data processing method, system and storage medium according to an embodiment of the present invention have at least the following beneficial effects: In the embodiment of the present invention, a preset message middleware component is first constructed. Correspondingly, in the embodiment of the present invention, the preset message middleware component is isolated from the Internet of Things platform. The preset message middleware component includes a preset message topic, and the preset message topic is associated with the preset resource address of the target object. Then, when the Internet of Things platform pushes message data to the preset resource address in the embodiment of the present invention, an abnormal judgment of the push address of the target object is performed to judge whether the message push is normal. Further, when it is determined that the message push is abnormal, the corresponding message data is stored in the preset message topic corresponding to the preset resource address in the embodiment of the present invention, thereby alleviating the problem of data loss caused by abnormal push. It is easy to understand that in the embodiment of the present invention, by setting a preset message topic in the constructed preset message middleware component and associating the preset message topic with the preset resource address of the target object, when it is determined that the message push is abnormal, the relevant message data is stored in the preset message topic corresponding to the preset resource address, thereby effectively alleviating the problem of data loss, enhancing the message push ability of the Internet of Things platform, and effectively improving the guarantee of message push. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a schematic flowchart of the steps of the message push data processing method provided by the embodiment of the present invention;
[0036] Figure 2 is a schematic flowchart of the steps of message data consumption provided by the embodiment of the present invention;
[0037] Figure 3 is a schematic flowchart of the steps of applying the security authentication mode provided by the embodiment of the present invention;
[0038] Figure 4 is a schematic flowchart of the steps of determining whether the message push is normal by performing an abnormal judgment on the push address of the target object when it is determined that the Internet of Things platform pushes message data to the preset resource address provided by the embodiment of the present invention;
[0039] Figure 5 is a schematic flowchart of the steps of storing message data in the corresponding preset message topic when it is determined that the network interface is in a network abnormal state provided by the embodiment of the present invention;
[0040] Figure 6 is a schematic flowchart of the steps of storing message data in the corresponding preset message topic when it is determined that the push result is in an abnormal push state provided by the embodiment of the present invention;
[0041] Figure 7 is a schematic flowchart of the steps of deleting message data provided by the embodiment of the present invention;
[0042] Figure 8 It is a schematic diagram of the overall architecture process of the message push data processing method provided by an embodiment of the present invention;
[0043] Figure 9 It is a modular schematic diagram of the message push data processing system provided by an embodiment of the present invention;
[0044] Figure 10 It is a principle block diagram of the message push data processing system provided by an embodiment of the present invention. Specific embodiments
[0045] The embodiments described in the embodiments of the present application should not be regarded as a limitation to the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0046] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0048] Before introducing and explaining the embodiments of the present application, first, relevant terms involved in the present application are explained.
[0049] Message system: A software service or platform used to transmit, store, and process messages in a distributed system. It provides a reliable way to achieve asynchronous communication between different components, services, or applications, allowing them to publish, subscribe to, and process messages without directly depending on each other. A message system usually includes components such as producers, consumers, message topics, queues, message passing protocols, etc., to support different message passing modes, such as publish / subscribe mode, point-to-point mode, etc.
[0050] Message topic: It is a named channel or identifier used for publishing and subscribing to messages in a message system. In a message system, a producer publishes messages to a specific topic. Correspondingly, a consumer can subscribe to and receive messages of a specific topic. A message topic is a classification or label in a message system, used to distinguish different types or topics of messages. By using topics, a message system can achieve message distribution and filtering, enabling different subscribers to select topics of interest to receive relevant messages.
[0051] Currently, most Internet of Things platforms adopt the HTTP message push method to perform POST push requests to the customer's URL address in real time. In related technologies, when message pushing is slow due to network or receiver anomalies, in order to avoid the impact of some customers on the entire Internet of Things platform, some methods of short-term cooling abnormal push addresses or directly discarding messages with too long return response times are often adopted to ensure the stability of the entire Internet of Things platform. However, this also leads to data loss and may pose certain risks to related services. Therefore, the above technical problems need to be solved urgently.
[0052] Based on this, an embodiment of the present invention provides a message push data processing method, system, and storage medium, which can effectively alleviate the problem of data loss, enhance the message push ability of the Internet of Things platform, and effectively improve the guarantee of message pushing. Refer to Figure 1 The method of the embodiment of the present invention includes but is not limited to steps S110, S120, and S130.
[0053] Specifically, the application process of the method of the embodiment of the present invention includes but is not limited to the following steps:
[0054] S110: Construct a preset message intermediate component. Among them, the preset message intermediate component is isolated from the Internet of Things platform. The preset message intermediate component includes a preset message topic, and the preset message topic is associated with the preset resource address of the target object.
[0055] S120: When it is determined that the Internet of Things platform pushes message data to the preset resource address, perform an abnormal judgment on the push address of the target object to determine whether the message push is normal.
[0056] S130: When it is determined that the message push is abnormal, store the message data in the preset message topic corresponding to the preset resource address.
[0057] During the working process of this specific embodiment, the embodiment of the present invention first constructs a preset message middleware component. Specifically, the preset message middleware component in the embodiment of the present invention refers to the message middleware component obtained by deploying the message system environment, such as deploying Plusar environment, Kafka environment, RabbitMQ environment, etc. Correspondingly, the preset message middleware component in the embodiment of the present invention is isolated from the Internet of Things platform. It is easy to understand that the embodiment of the present invention isolates the deployed preset message middleware component from the Internet of Things platform cluster and makes network connection, so as to isolate faults between the Internet of Things platform and the preset message middleware component and improve the guarantee of message push. At the same time, the preset message middleware component in the embodiment of the present invention includes a preset message topic, and the preset message topic is associated with the preset resource address of the target object. The preset message middleware component in the embodiment of the present invention is configured with corresponding resources and sets corresponding preset message topics for storing data. In addition, the preset resource address in the embodiment of the present invention refers to the address used to represent resources on the Internet, such as Uniform Resource Locator (URL). Correspondingly, the embodiment of the present invention associates the configured preset resource address with the preset message topic and stores the corresponding association relationship in the database. In addition, the push service in the embodiment of the present invention will dynamically load the database to ensure that the association relationship between the preset message topic and the preset resource address is loaded into the push service.
[0058] Next, when the embodiment of the present invention pushes message data to a preset resource address on the Internet of Things platform, it performs an abnormal judgment on the push address of the target object to determine whether the message push is normal. Specifically, when the Internet of Things terminal device reports data to the Internet of Things platform, the Internet of Things platform pushes message data to the preset resource address of the corresponding Internet of Things terminal device. When it is determined that the Internet of Things platform pushes message data to the preset resource address, the embodiment of the present invention determines whether the message push is normal by performing an abnormal judgment on the push address of the target object. For example, when the Internet of Things platform pushes data to a preset resource address, the embodiment of the present invention uses an asynchronous HTTP callback function to record the push results of different preset resource addresses into the corresponding push result list in real time, so as to determine whether the message push is normal. Further, when it is determined that the message push is abnormal, the embodiment of the present invention stores the message data in the preset message topic corresponding to the preset resource address. Specifically, when it is determined that the message data pushed by the Internet of Things platform to a certain preset resource address is abnormal, such as the push fails or the push delay is greater than the push threshold, the embodiment of the present invention stores the message data in the preset message topic corresponding to the preset resource address, thereby alleviating the problem of data loss caused by abnormalities such as the receiving end and the network, effectively improving the guarantee of message push, and enhancing the message push ability of the Internet of Things platform. It is easy to understand that the embodiment of the present invention stores the message data with abnormal message push in the preset resource address, so that when the corresponding message data needs to be viewed or called later, the corresponding message data can be obtained from the preset message topic, thereby effectively improving data integrity and alleviating the problem of data loss.
[0059] Combined with Figure 1 , referring to Figure 2 , in some embodiments of the present invention, the message push data processing method provided by the embodiment of the present invention further includes but is not limited to the following steps:
[0060] S210: Establish a connection according to the domain name address of the preset message middleware component to read message data from the preset message topic.
[0061] In this specific embodiment, when it is necessary to consume the corresponding message data, the embodiment of the present invention establishes a connection according to the domain name address of the preset message middleware component, and then reads the corresponding message data from the preset message topic. Specifically, consumption in the embodiment of the present invention refers to the process of obtaining message data from a message queue or a message system and processing it. Correspondingly, the domain name address in the embodiment of the present invention refers to a domain name on the Internet, which is used to identify and locate the name of a specific website or service on the Internet. When the target object needs to query the corresponding message data, it connects through the domain name address opened to the outside by the preset message middleware component, and pulls the corresponding message data from the corresponding preset message topic according to the association relationship between the preset message topic and the corresponding preset resource address, so as to realize active consumption of data.
[0062] Refer to Figure 3 In some embodiments of the present invention, after performing the step of constructing a preset message middleware component, the message push data processing method provided by the embodiments of the present invention further includes but is not limited to the following steps:
[0063] S310: Start the security authentication mode of the preset message middleware component.
[0064] S320: Allocate access tokens to target objects corresponding to each preset resource address to perform access verification in the security authentication mode through the access tokens.
[0065] In this specific embodiment, after constructing the preset message middleware component, through the corresponding security authentication mode, the data security of the stored message data is improved. Specifically, the embodiments of the present invention first start the security authentication mode of the preset message middleware component. Among them, the security authentication mode in the embodiments of the present invention refers to a mode for verifying the identity and permissions of Internet of Things terminal devices, such as a security token authentication mode, to ensure that only Internet of Things terminal devices that have passed the corresponding identity authentication and authorization can communicate with the preset message middleware component and obtain data. Then, the embodiments of the present invention allocate access tokens to target objects corresponding to each preset resource address to perform access verification in the security authentication mode through the access tokens. Specifically, after starting the security authentication mode, the present invention assigns corresponding access tokens and access permissions to each target object. Exemplarily, when a target object needs to consume corresponding message data from a preset message topic, the target object first performs security authentication according to the corresponding access token. After the security authentication passes, a connection is established according to the domain name address of the preset message middleware component, and then the message data is read from the corresponding preset message topic. It is easy to understand that the embodiments of the present invention ensure that the target object needs to perform security authentication before obtaining message data by setting the security authentication mode, so that only the target object with the correct token authentication can establish a connection and obtain data for the message data stored in the preset message middleware component, effectively improving the security of the stored data.
[0066] Combined with Figure 1 Refer to Figure 4 In some embodiments of the present invention, when it is determined that the Internet of Things platform pushes message data to a preset resource address, an abnormal judgment is made on the push address of the target object to determine whether the message push is normal, including but not limited to the following steps:
[0067] S410: Perform network measurement on the network interface of the Internet of Things platform through a preset network measurement module to determine whether the network state of the network interface is normal.
[0068] S420: Statistically monitor the push results of the IoT platform through a preset push metric statistics module to determine whether the push results are normal.
[0069] In this specific embodiment, the embodiments of the present invention determine whether the push address of the target object is abnormal through a preset network dial test module or a preset push metric statistics module to determine whether the corresponding message push is normal. Specifically, the embodiments of the present invention perform a dial test on the network interface of the IoT platform through a preset network dial test module to determine whether the network status of the network interface is normal. Among them, the dial test in the embodiments of the present invention refers to the process of testing and monitoring a network interface to evaluate network performance, availability, and stability. For example, the dial test performed by the embodiments of the present invention on the network interface of the IoT platform may include latency test, bandwidth test, packet loss rate test, and connectivity test, etc., to further determine whether the corresponding network interface is normal. In addition, the present invention also statistically monitors the push results of the IoT platform through a preset push metric statistics module to determine whether the push results are normal. Specifically, the embodiments of the present invention perform real-time processing on the push results through a preset push metric statistics module, and perform push metric statistical monitoring within a time dimension based on a preset resource address, such as a URL address, to determine whether the corresponding push results are normal according to the statistically monitored data. For example, the embodiments of the present invention record the push results of different preset resource addresses in a push result list in real time, including push rate and push latency, so as to determine whether the push results are normal according to the corresponding push rate and push latency. It is easy to understand that when the network status of the network interface is abnormal or the push result is abnormal in the embodiments of the present invention, it means that the message push of the IoT platform is abnormal.
[0070] Refer to Figure 5 , in some embodiments of the present invention, when it is determined that the message push is abnormal, the message data is stored in a preset message topic corresponding to a preset resource address, including but not limited to the following steps:
[0071] S510: When it is determined that the network interface is in a network abnormal state, obtain the list of target objects corresponding to the message data.
[0072] S520: Match the corresponding preset resource address according to the list of target objects to obtain resource address information.
[0073] S530: Store the message data in the corresponding preset message topic according to the resource address information.
[0074] In this specific embodiment, when it is determined that the network interface is in a network abnormal state, the embodiment of the present invention first obtains the list of target objects corresponding to the message data, so as to match the corresponding preset resource address according to the list of target objects to obtain resource address information, and then stores the message data to the corresponding preset message topic according to the resource address information. Specifically, the embodiment of the present invention uses a preset network dialing and testing module to continuously test the network state of the external interface of the Internet of Things platform. Correspondingly, when it is determined that a network anomaly occurs, that is, the network interface is in a network abnormal state, the embodiment of the present invention first pulls the list of target objects that need data backup, that is, the list of target objects corresponding to the message data that needs to be backed up. Further, the embodiment of the present invention matches the preset resource address corresponding to its account according to the obtained list of target objects, such as a URL address, so as to obtain the corresponding resource address information. Finally, the embodiment of the present invention stores the message data pushed to these preset resource addresses into the corresponding preset message topic according to the corresponding resource address information.
[0075] Refer to Figure 6 , in some embodiments of the present invention, when it is determined that the message push is abnormal and the message data is stored in the preset message topic corresponding to the preset resource address, it further includes but is not limited to the following steps:
[0076] S610: When it is determined that the push result is in an abnormal push state, obtain the message data corresponding to the preset resource address within the preset cycle duration to obtain the data to be transferred. Among them, the abnormal push state includes that the push delay is greater than the preset delay threshold or the push failure rate is greater than the preset failure threshold.
[0077] S620: Store the data to be transferred into the corresponding preset message topic.
[0078] In this specific embodiment, when it is determined that the push result is in an abnormal push state, the embodiment of the present invention first obtains the message data corresponding to the preset resource address within the preset cycle duration to obtain the data to be transferred, and then stores the data to be transferred into the corresponding preset message topic. Specifically, the abnormal push state of the push result in the embodiment of the present invention includes that the push delay is greater than the preset delay threshold, or the push failure rate is greater than the preset failure threshold. Correspondingly, when the push delay is too long, such as the push delay is greater than the preset delay threshold, or the push failure rate within a continuous period of time is greater than the preset failure threshold, the embodiment of the present invention transfers the message data of the push address, that is, the preset resource address, within the preset cycle duration, such as the data within one minute, to the preset message topic associated in the preset message intermediate component for message data storage, so as to facilitate subsequent target objects to query and consume relevant message data.
[0079] Combined with Figure 2 Refer to Figure 7, in some embodiments of the present invention, the message push data processing method provided by the embodiments of the present invention further includes but is not limited to the following steps:
[0080] S710: When it is determined that the message data stored in the preset message topic meets the preset data condition, delete the message data from the preset message intermediate component. Among them, the preset data condition includes determining that the message data is read from the preset message topic, or determining that the storage time of the message data is greater than the preset storage time threshold.
[0081] In this specific embodiment, the embodiments of the present invention manage the data stored in the preset message intermediate component by determining whether the data stored in the preset message topic meets the preset data condition. Specifically, when it is determined that the message data stored in the preset message topic meets the preset data condition, the embodiments of the present invention delete the corresponding message data from the preset message intermediate component to save the storage space and resources of the preset message intermediate component. Among them, the preset data condition in the embodiments of the present invention includes determining that the corresponding message data is read from the preset message topic, that is, when the target object actively consumes the message data from the preset message topic and determines that the target object obtains the corresponding message data from the preset message topic, the embodiments of the present invention delete the message data from the preset message intermediate component. In addition, the preset data condition in the embodiments of the present invention also includes that the storage time of the message data is greater than the preset storage time threshold. For example, when the target object does not need to view the corresponding message data, the preset message intermediate component of the embodiments of the present invention deletes the message data after storing the corresponding message data for 30 days. It is easy to understand that the embodiments of the present invention can effectively save storage resources and reduce storage costs by analyzing the data stored in the preset message topic and deleting the message data that meets the preset data condition.
[0082] Exemplarily, refer to Figure 8, taking the application scenario of message push data processing of an Internet of Things platform as an example, in order to relieve business pressure and ensure the smooth operation of the Internet of Things platform, when a certain URL address fails to push 100 times continuously or the push failure rate of the URL in the last 10s is greater than 10%, the embodiment of the present invention forces the URL address to be set to a cooling state, such as not pushing business within one minute, so as to avoid long-term and large-scale abnormal push of the URL, resulting in the impact of all target object businesses of the entire Internet of Things platform. Therefore, the embodiment of the present invention configures an independent preset message intermediate component, such as Pulsar resources, to isolate it from the Internet of Things cluster and connect the network. Correspondingly, it can be selectively opened to some target objects. When the target object purchases or applies for the message push data processing function, the embodiment of the present invention creates a space for the target object with its account tenant id on the corresponding preset message intermediate component host, such as Pulsar host. At the same time, the target object can associate the preset message topic with the preset resource pool address on the configuration page, such as correspondingly associating the URL address with the topic, and store the association relationship in the database. In addition, the push service in the embodiment of the present invention will load the association relationship from the database to the memory in real time to ensure real-time performance.
[0083] Next, when all IoT terminal devices under the tenant id report data, the IoT platform will push messages. At this time, the embodiment of the present invention will enable the network dialing function and the push statistics function to monitor the network status of the IoT platform to the tenant's preset resource address and the push results of the messages pushed to each preset resource address in real time. Correspondingly, when the network is not accessible or the push delay is too high or the failure rate is too high, for the message data that was originally placed in the cooling state and will be lost, at this time, the embodiment of the present invention first queries the preset resource address, that is, whether the URL address has an associated preset message topic. If it is determined that there is an associated preset message topic, the embodiment of the present invention stores the corresponding lost data, that is, the message data, in the preset message topic. Among them, the naming of the preset message topic in the embodiment of the present invention defaults to the corresponding preset resource address, and the target object can be modified as needed. Accordingly, in the embodiment of the present invention, all data in the cooling state will be saved, and the target object will be reminded that there is currently a cooling situation. Furthermore, when the target object needs to query the corresponding data, it can actively consume it, through the preset message middleware, such as the local client of Pulsar, in the form of tenant id and preset message topic, combined with the corresponding access token, through the domain name address opened to the outside by the preset message middleware, and actively consume the corresponding message data. In addition, after the message data is consumed, the embodiment of the present invention deletes the data from the preset message middleware to save resources. At the same time, when the target object does not need to change the data, that is, does not need to consume the corresponding data, the embodiment of the present invention automatically destroys the data after storing it for 30 days by default.
[0084] Reference Figure 9 , an embodiment of the present invention further provides a message push data processing system, including:
[0085] The first module 810 is used to construct a preset message middleware component. Among them, the preset message middleware component is isolated from the Internet of Things platform, and the preset message middleware component includes a preset message topic, and the preset message topic is associated with the preset resource address of the target object.
[0086] The second module 820 is used to determine whether the message push is normal by performing an abnormal judgment on the push address of the target object when it is determined that the Internet of Things platform pushes message data to the preset resource address.
[0087] The third module 830 is used to store the message data to the corresponding preset message topic when it is determined that the message push is abnormal.
[0088] The content of the method embodiment of the present invention is applicable to the system embodiment of the present invention. The functions specifically implemented by the system embodiment of the present invention are the same as those of the above method embodiment, and the beneficial effects achieved are also the same as those of the above method.
[0089] Reference Figure 10 , an embodiment of the present invention further provides a message push data processing system, including:
[0090] At least one processor 910.
[0091] At least one memory 920 is used to store at least one program.
[0092] When at least one program is executed by at least one processor 910, at least one processor 910 implements the message push data processing method described in the above embodiment.
[0093] The content of the method embodiment of the present invention is applicable to the system embodiment of the present invention. The functions specifically implemented by the system embodiment of the present invention are the same as those of the above method embodiment, and the beneficial effects achieved are also the same as those of the above method.
[0094] An embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors, for example, to execute the steps of the message push data processing method described in the above embodiment.
[0095] The content of the method embodiment of the present invention is applicable to the system embodiment of the present invention. The functions specifically implemented by the system embodiment of the present invention are the same as those of the above method embodiment, and the beneficial effects achieved are also the same as those of the above method.
[0096] In the description of this application and the above-mentioned accompanying drawings, terms such as "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0097] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Here, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expressions refer to any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0098] In several embodiments provided by this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling, direct coupling, or communication connection to each other can be through some interfaces, and the indirect coupling or communication connection of devices or units can be in an electrical, mechanical, or other form.
[0099] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0100] In addition, in each embodiment of the present application, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0101] Those of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or can be implemented as hardware, or can be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium generally includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.
[0102] For the step numbers in the above method embodiments, they are only set for the convenience of description and explanation, and no limitation is imposed on the order between the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0103] The above is a specific description of the preferred embodiments of the present application, but the present application is not limited to the described embodiments. Those skilled in the art can make various equivalent deformations or substitutions without departing from the spirit of the present application, and these equivalent deformations or substitutions are all included within the scope defined by the claims of the present application.
Claims
1. A method for processing message push data, characterized in that, Including the following steps: Construct a preset message middleware component; wherein, the preset message middleware component is isolated from the Internet of Things platform, and the preset message middleware component includes a preset message topic, and the preset message topic is associated with a preset resource address of a target object; When it is determined that the Internet of Things platform pushes message data to the preset resource address, perform an abnormal judgment on the push address of the target object to determine whether the message push is normal; When it is determined that the message push is abnormal, store the message data into the preset message topic corresponding to the preset resource address; Among them, the step of when it is determined that the Internet of Things platform pushes message data to the preset resource address, perform an abnormal judgment on the push address of the target object to determine whether the message push is normal, includes: Perform network measurement on the network interface of the Internet of Things platform through a preset network measurement module to determine whether the network status of the network interface is normal; Or, perform statistical monitoring on the push results of the Internet of Things platform through a preset push index statistical module to determine whether the push results are normal.
2. The method for processing message push data according to claim 1, characterized in that, The method further includes: Establish a connection according to the domain name address of the preset message middleware component to read the message data from the preset message topic.
3. The method for processing message push data according to claim 1, characterized in that, After performing the step of constructing the preset message middleware component, the method further includes: Start the security authentication mode of the preset message middleware component; Allocate access tokens to the target objects corresponding to each preset resource address to perform access verification of the security authentication mode through the access tokens.
4. The method for processing message push data according to claim 1, characterized in that, The step of when it is determined that the message push is abnormal, store the message data into the preset message topic corresponding to the preset resource address, includes: When it is determined that the network interface is in a network abnormal state, obtain the list of target objects corresponding to the message data; Match the corresponding preset resource address according to the list of target objects to obtain resource address information; Store the message data into the corresponding preset message topic according to the resource address information.
5. The method for processing message push data according to claim 1, characterized in that, The step of when it is determined that the message push is abnormal, store the message data into the preset message topic corresponding to the preset resource address, further includes: When it is determined that the push result is in a push abnormal state, obtain the message data corresponding to the preset resource address within a preset cycle duration to obtain data to be transferred; wherein, the push abnormal state includes that the push delay is greater than a preset delay threshold or the push failure rate is greater than a preset failure threshold; Store the data to be transferred into the corresponding preset message topic.
6. The method for processing message push data according to claim 2, characterized in that, The method further includes: When it is determined that the message data stored in the preset message topic meets the preset data conditions, delete the message data from the preset message middleware component; wherein, the preset data conditions include determining that the message data is read from the preset message topic, or determining that the storage time of the message data is greater than a preset storage time threshold.
7. A message push data processing system, characterized in that, Including: The first module is used to construct a preset message middleware component; wherein, the preset message middleware component is isolated from the IoT platform, and the preset message middleware component includes a preset message topic, and the preset message topic is associated with a preset resource address of a target object; The second module is used to perform an abnormal judgment on the push address of the target object when it is determined that the IoT platform pushes message data to the preset resource address, so as to determine whether the message push is normal; The third module is used to store the message data to the preset message topic corresponding to the preset resource address when it is determined that the message push is abnormal; Wherein, the step of performing an abnormal judgment on the push address of the target object when it is determined that the IoT platform pushes message data to the preset resource address to determine whether the message push is normal includes: Performing network measurement on the network interface of the IoT platform through a preset network measurement module to determine whether the network status of the network interface is normal; Alternatively, performing statistical monitoring on the push result of the IoT platform through a preset push index statistical module to determine whether the push result is normal.
8. A message push data processing system, characterized in that, It includes: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, at least one of the processors implements the message push data processing method according to any one of claims 1 to 6.
9. A computer storage medium storing a program executable by a processor, characterized in that, The program executable by the processor is used to implement the message push data processing method according to any one of claims 1 to 6 when executed by the processor.
Citation Information
Patent Citations
Data pushing method and system for message queue, electronic equipment and medium
CN115665075A