A Log-Based Edge-Cloud Synchronization Method for Internet of Things Data

By deploying log modules at the edge and cloud, and using log queues and listeners to synchronize data, the problem that edge computing devices cannot efficiently synchronize massive historical data is solved, and edge-cloud collaboration and fast intelligent response are achieved, with loose coupling and high scalability.

CN115292040BActive Publication Date: 2025-07-11上海沄熹科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210903067.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2025-07-11
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

In the prior art, edge computing devices cannot efficiently synchronize massive historical data, resulting in the inability to achieve global, deep learning and intelligent analysis, and the coupling degree between the edge and the cloud system is high, and the expansion performance is poor.

Method used

Deploy log modules at the edge and cloud, including log queue components, log listener components and log service components. Data synchronization is performed through log queues and listeners, and data identification and processing is used using log types, topics and timestamps to achieve loosely coupled data synchronization between the edge and cloud.

Benefits of technology

It realizes efficient data synchronization between the edge and the cloud, supports fast and intelligent response, and has loose coupling and high scalability, and can expand new listeners to perform customized data processing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115292040B_ABST
    Figure CN115292040B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for edge-cloud synchronization of Internet of Things data based on logs, which relates to the technical field of distributed data synchronization; an edge-end log module is deployed at the edge end, and the edge-end log module includes an edge-end log queue component, an edge-end log listener component, and an edge-end log service component. A cloud log module is deployed in the cloud system, and the cloud log module includes a cloud log queue component, a cloud log listener component, and a cloud log service component. Data synchronization communication between the edge end and the cloud system is carried out through the edge-end log module and the cloud log module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention discloses a method, which relates to the technical field of distributed data synchronization, and specifically is a method for edge-cloud synchronization of Internet of Things data based on logs. Background Art

[0002] Edge computing refers to a technology that realizes data collection, storage, and processing locally on the network edge side close to Internet of Things collection devices or data sources. Edge computing completes the data processing process at the local edge end, improves data processing efficiency, reduces the load on the cloud, and can also provide faster responses to users.

[0003] However, due to the processing capacity limitations of edge devices, it is impossible to perform big data processing and analysis of global and massive historical data. For example, deep learning, intelligent analysis, and decision-making based on massive historical data all require powerful cloud computing capabilities. Therefore, complementary and collaborative capabilities between edge computing and cloud computing are needed: the edge end synchronizes the collected time-series data to the cloud system after preliminary processing, and the cloud system uses its powerful computing capabilities to analyze and train the massive historical data to form a metadata model and send it to the edge end. However, there is currently no method that can both improve the data synchronization efficiency of communication between the edge end and the cloud system, and make the coupling degree between systems low and the system scalability good. Summary of the Invention

[0004] In view of the problems of the prior art, the present invention provides a method for edge-cloud synchronization of Internet of Things data based on logs, which has the characteristics of strong generality, simple implementation, etc., and has broad application prospects.

[0005] The specific solution proposed by the present invention is as follows:

[0006] The present invention provides a method for edge-cloud synchronization of Internet of Things data based on logs. An edge-end log module is deployed at the edge end, and the edge-end log module includes an edge-end log queue component, an edge-end log listener component, and an edge-end log service component.

[0007] A cloud-end log module is deployed in the cloud system, and the cloud-end log module includes a cloud-end log queue component, a cloud-end log listener component, and a cloud-end log service component.

[0008] Data synchronization communication between the edge - side and cloud - side systems is carried out through the edge - side log module and the cloud - side log module. When synchronizing time - series data, the edge - side writes the time - series data log into the edge - side log queue component. The edge - side log listener component listens to the time - series data log received in the edge - side log queue component and sends the time - series data log to the cloud - side log service component. After the cloud - side log service component receives the time - series data log, it writes the time - series data log into the cloud - side log queue component. The cloud - side log listener component listens to the time - series data log in the cloud - side log queue component and writes the time - series data log into the cloud - side storage.

[0009] When synchronizing metadata, the cloud - side system writes the metadata into the cloud - side log queue component. The cloud - side log listener component listens to the metadata log in the cloud - side log queue component and sends the metadata log to the edge - side log service component. The edge - side log service component receives the metadata log, writes the metadata log into the edge - side log queue component, and the edge - side log listener component listens to the metadata log and writes the metadata log into the edge - side storage.

[0010] Furthermore, in the method for edge - cloud synchronization of Internet of Things data based on logs, the edge - side log listener component includes an edge - side sending listener and a metadata listener. The edge - side sending listener listens to the time - series data log received in the edge - side log queue component and sends the time - series data log to the cloud - side log service component. The metadata listener listens to the metadata log and writes the metadata log into the edge - side storage.

[0011] The cloud - side log listener component includes a cloud - side sending listener and a data listener. The cloud - side sending listener listens to the metadata log in the cloud - side log queue component and sends the metadata log to the edge - side log service component. The data listener listens to the time - series data log and writes the time - series data log into the cloud - side storage.

[0012] Furthermore, when synchronizing time - series data in the method for edge - cloud synchronization of Internet of Things data based on logs, it includes:

[0013] The edge - side sending listener listens to the time - series data log received in the edge - side log queue component, sends the time - series data log to the cloud - side log service component. After the cloud - side log service component receives the time - series data log, it writes the time - series data log into the cloud - side log queue component. The data listener listens to the time - series data log in the cloud - side log queue component and writes the time - series data log into the cloud - side storage.

[0014] Furthermore, when synchronizing metadata in the method for edge - cloud synchronization of Internet of Things data based on logs, it includes:

[0015] The cloud - side sending listener monitors the metadata logs of the cloud - side log queue component and sends the metadata logs to the edge - side log service component. The edge - side log service component receives the metadata logs, writes the metadata logs into the edge - side log queue component, and the metadata listener monitors the metadata logs of the edge - side log queue component and writes the metadata logs into the edge - side storage.

[0016] Furthermore, in the method for edge - cloud synchronization of Internet of Things data based on logs, the edge - side log module and the cloud - side log module perform data synchronization communication between the edge - side and cloud - side systems according to the information in the log model. The information in the log model includes log type, log topic, timestamp, and log data content. The log type is used to identify whether the log is local data or remote data that needs to be synchronized remotely. The log topic is used to distinguish time - series data and metadata, and the timestamp is the time when the log is written into the corresponding log queue component.

[0017] Furthermore, in the method for edge - cloud synchronization of Internet of Things data based on logs, when synchronizing the log topic of time - series data according to the information in the log model, the edge - side writes the time - series data logs with the log type of local data into the edge - side log queue component to obtain the corresponding timestamp. The edge - side sending listener monitors the time - series data logs received in the edge - side log queue component, modifies the log type of the time - series data logs to remote data, and then sends the time - series data logs to the cloud - side log service component. After the cloud - side log service component receives the time - series data logs, it writes the time - series data logs into the cloud - side log queue component to obtain the corresponding timestamp, and the data listener monitors the time - series data logs in the cloud - side log queue component and writes the time - series data logs into the cloud - side storage.

[0018] Furthermore, in the method for edge - cloud synchronization of Internet of Things data based on logs, when synchronizing the log topic of metadata according to the information in the log model, the cloud - side system writes the metadata with the log type of local data into the cloud - side log queue component to obtain the corresponding timestamp. The cloud - side sending listener monitors the metadata logs in the cloud - side log queue component, modifies the log type of the metadata logs to remote data, and then sends the metadata logs to the edge - side log service component. The edge - side log service component receives the metadata logs, writes the metadata logs into the edge - side log queue component to obtain the corresponding timestamp, and the metadata listener monitors the metadata logs in the edge - side log queue component and writes the metadata logs into the edge - side storage.

[0019] The present invention also provides a log module for edge - cloud synchronization of Internet of Things data based on logs. The log module includes an edge - side log module and a cloud - side log module.

[0020] Deploy an edge - side log module at the edge - side. The edge - side log module includes an edge - side log queue component, an edge - side log listener component, and an edge - side log service component.

[0021] Deploy a cloud - side log module in the cloud system. The cloud - side log module includes a cloud - side log queue component, a cloud - side log listener component, and a cloud - side log service component.

[0022] Perform data synchronization and communication between the edge - side and the cloud system through the edge - side log module and the cloud - side log module. When performing time - series data synchronization, write the time - series data log to the edge - side log queue component through the edge - side. Use the edge - side log listener component to monitor the time - series data log received in the edge - side log queue component, and send the time - series data log to the cloud - side log service component. After receiving the time - series data log through the cloud - side log service component, write the time - series data log to the cloud - side log queue component. Use the cloud - side log listener component to monitor the time - series data log in the cloud - side log queue component and write the time - series data log to the cloud storage.

[0023] When performing metadata synchronization, write the metadata to the cloud - side log queue component through the cloud system. Use the cloud - side log listener component to monitor the metadata log in the cloud - side log queue component, and send the metadata log to the edge - side log service component. The edge - side log service component receives the metadata log, writes the metadata log to the edge - side log queue component, and the edge - side log listener component monitors the metadata log and writes the metadata log to the edge - side storage.

[0024] The beneficial effects of the present invention are as follows:

[0025] The present invention provides a method for edge - cloud synchronization of Internet of Things data based on logs. Through the method proposed by the present invention, efficient synchronization of Internet of Things data between the edge - side and the cloud - side can be achieved, realizing edge - cloud collaboration and fast intelligent response. Moreover, the method of the present invention adopts a technical solution combining a log queue and a listener, which has the advantages of loose coupling and high scalability. The edge - side and cloud - side business systems only need to write data to the log queue, and subsequent processing is completed by the listener. New listeners can also be extended to execute customized data - processing tasks. Brief Description of the Drawings

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following - described drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0027] Figure 1 It is a schematic diagram of the application framework of the method of the present invention. Detailed implementation mode

[0028] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and be able to implement it, but the embodiments cited are not intended to limit the present invention.

[0029] The present invention provides a method for edge-cloud synchronization of Internet of Things data based on logs. An edge-end log module is deployed at the edge end. The edge-end log module includes an edge-end log queue component, an edge-end log listener component, and an edge-end log service component.

[0030] A cloud-end log module is deployed in the cloud system. The cloud-end log module includes a cloud-end log queue component, a cloud-end log listener component, and a cloud-end log service component.

[0031] Data synchronization communication between the edge end and the cloud system is carried out through the edge-end log module and the cloud-end log module. When synchronizing time-series data, the time-series data log is written into the edge-end log queue component through the edge end. The edge-end log listener component listens to the time-series data log received in the edge-end log queue component and sends the time-series data log to the cloud-end log service component. After the cloud-end log service component receives the time-series data log, the time-series data log is written into the cloud-end log queue component. The cloud-end log listener component listens to the time-series data log in the cloud-end log queue component and writes the time-series data log into the cloud storage.

[0032] When synchronizing metadata, the metadata is written into the cloud-end log queue component through the cloud system. The cloud-end log listener component listens to the metadata log in the cloud-end log queue component and sends the metadata log to the edge-end log service component. The edge-end log service component receives the metadata log, writes the metadata log into the edge-end log queue component, and the edge-end log listener component listens to the metadata log and writes the metadata log into the edge-end storage.

[0033] The method of the present invention deploys log modules in the edge end and the cloud system and establishes communication between the two. The synchronization of time-series data from the edge end to the cloud and the synchronization of metadata from the cloud to the edge end are realized through the log queue and the log listener. Among them, the log queue (LogQueue) component in the log module stores the logs generated by local time-series data and the synchronization logs sent from the remote end. The log service (LogService) component provides an RPC service for receiving the logs that need to be synchronized. The processing of the logs is all executed by the log listener (Listener) component. After each log is received by the log queue component, it is sent to the registered Listener for processing, realizing the synchronization of time-series data from the edge end to the cloud and the synchronization of metadata from the cloud to the edge end.

[0034] Furthermore, in the method for edge-cloud synchronization of Internet of Things data based on logs, the edge-side log listener component includes an edge-side sending listener SendListener and a metadata listener MetaListener. The edge-side sending listener is used to monitor the time-series data logs received in the edge-side log queue component and send the time-series data logs to the cloud-side log service component. The metadata listener is used to monitor the metadata logs and write the metadata logs to the edge-side storage;

[0035] The cloud-side log listener component includes a cloud-side sending listener SendListener and a data listener TsDataListener. The cloud-side sending listener is used to monitor the metadata logs in the cloud-side log queue component and send the metadata logs to the edge-side log service component. The data listener is used to monitor the time-series data logs and write the time-series data logs to the cloud-side storage.

[0036] When performing time-series data synchronization, the edge-side sending listener is used to monitor the time-series data logs received in the edge-side log queue component, send the time-series data logs to the cloud-side log service component. After the cloud-side log service component receives the time-series data logs, the time-series data logs are written to the cloud-side log queue component. The data listener is used to monitor the time-series data logs in the cloud-side log queue component and write the time-series data logs to the cloud-side storage.

[0037] When performing metadata synchronization, the cloud-side sending listener is used to monitor the metadata logs in the cloud-side log queue component and send the metadata logs to the edge-side log service component. The edge-side log service component receives the metadata logs, writes the metadata logs to the edge-side log queue component. The metadata listener is used to monitor the metadata logs in the edge-side log queue component and write the metadata logs to the edge-side storage.

[0038] Furthermore, in the method for edge-cloud synchronization of Internet of Things data based on logs, data synchronization and communication between the edge-side and cloud-side systems are carried out by the edge-side log module and the cloud-side log module according to the information in the log model. The information in the log model includes log type, log topic, timestamp, and log data content. The log type is used to identify whether the log is local data or remote data that needs to be synchronised remotely. The log topic is used to distinguish time-series data and metadata. The timestamp is the time when the log is written to the corresponding log queue component.

[0039] Further, in the method for edge-cloud synchronization of IoT data based on logs, when synchronizing logs with the topic of time-series data according to the information in the log model, the edge device writes the time-series data logs of the local data type into the edge device log queue component according to the log model information, obtains the corresponding timestamp, uses the edge device sending listener to listen to the time-series data logs received in the edge device log queue component, modifies the log type of the time-series data logs to remote data, and then sends the time-series data logs to the cloud log service component. After the cloud log service component receives the time-series data logs, it writes the time-series data logs into the cloud log queue component, obtains the corresponding timestamp, uses the data listener to listen to the time-series data logs in the cloud log queue component and writes the time-series data logs into the cloud storage;

[0040] When synchronizing logs with the topic of metadata according to the information in the log model, the cloud system writes the metadata of the local data type into the cloud log queue component, obtains the corresponding timestamp, uses the cloud sending listener to listen to the metadata logs in the cloud log queue component, modifies the log type of the metadata logs to remote data, and then sends the metadata logs to the edge device log service component. The edge device log service component receives the metadata logs, writes the metadata logs into the edge device log queue component, obtains the corresponding timestamp, and the metadata listener listens to the metadata logs in the edge device log queue component and writes the metadata logs into the edge device storage.

[0041] In specific applications, the following process can be referred to:

[0042] In the method of the present invention, the log queue component is used to store the locally generated data logs (local.log) and the remotely synchronized logs (sync.log),

[0043] The log service component is used to receive the sync data logs sent from the remote end and write them into the log queue component,

[0044] The log listener is used to distribute and process the data logs in the log queue, where:

[0045] MetaListener - listens to the metadata sync.log in the log queue and is used to process the metadata synchronization logs sent from the cloud.

[0046] SendListener - listens to the local.log in the log queue and sends it to the remote log service.

[0047] TsDataListener - listens to the time-series data sync.log in the log queue and processes and stores it in the cloud.

[0048] In the method of the present invention, the information of the log model refers to Table 1.

[0049] Table 1

[0050]

[0051] Log type Type: Used to identify whether the log is the local generated local.log or the remotely synchronized sync.log log data.

[0052] Log topic Topic: The data type in the log, used to distinguish time-series data and metadata.

[0053] Timestamp: The time when the log is written into the log queue component.

[0054] Content: The data content of the log.

[0055] Process for synchronizing time-series data:

[0056] a. The edge collector generates data and writes the time-series data log with log type = local.log into the log queue component at the edge.

[0057] b. The SendListener at the edge registers a listener for the time-series data local.log, receives the time-series data log, modifies it to sync.log, and then sends the time-series data log to the LogService in the cloud.

[0058] c. After receiving the time-series data log, the cloud LogService writes it into the cloud log queue component.

[0059] d. The TsDataListener in the cloud registers a listener for the time-series data sync.log, receives the time-series data synchronized from the edge, and can write it into the cloud storage after processing.

[0060] Process for synchronizing metadata:

[0061] A. The cloud AI system writes the metadata log into the cloud log queue component.

[0062] B. The SendListener in the cloud registers a listener for the metadata local.log, receives the metadata log, modifies it to sync.log, and sends the metadata log to the edge LogService.

[0063] C. After receiving the metadata log, the edge LogService writes it into the edge log queue component.

[0064] D. The MetaListener at the edge registers the listening of the metadata sync.log, receives the metadata log synchronized from the cloud, and can write it to the edge storage after processing.

[0065] Furthermore, the metadata synchronization process is as follows:

[0066] a. The cloud AI system uses machine learning algorithms to analyze the massive time-series data stored in the cloud, trains a metadata model, and writes the metadata model log to the cloud log queue component.

[0067] b. The SendListener in the cloud registers the listening of the metadata model log local.log. After receiving the metadata model log, it is modified to sync.log and the metadata model log is sent to the edge LogService.

[0068] c. After receiving the metadata model log, the edge LogService writes it to the edge log queue component.

[0069] d. The MetaListener at the edge registers the listening of the metadata sync.log, receives the metadata model log synchronized from the cloud, can write it to the edge storage after processing, and performs intelligent analysis and response according to the metadata model after collecting data.

[0070] The present invention also provides a log module for edge-cloud synchronization of Internet of Things data based on logs. The log module includes an edge log module and a cloud log module.

[0071] The edge log module is deployed at the edge. The edge log module includes an edge log queue component, an edge log listener component, and an edge log service component.

[0072] The cloud log module is deployed in the cloud system. The cloud log module includes a cloud log queue component, a cloud log listener component, and a cloud log service component.

[0073] Data synchronization communication between the edge and the cloud system is carried out through the edge log module and the cloud log module. When synchronizing time-series data, the time-series data log is written to the edge log queue component through the edge, the edge log listener component listens to the time-series data log received in the edge log queue component, and sends the time-series data log to the cloud log service component. After the cloud log service component receives the time-series data log, it writes the time-series data log to the cloud log queue component. The cloud log listener component listens to the time-series data log in the cloud log queue component and writes the time-series data log to the cloud storage.

[0074] When performing metadata synchronization, the metadata is written into the cloud log queue component through the cloud system. The cloud log listener component listens to the metadata logs of the cloud log queue component and sends the metadata logs to the edge - side log service component. The edge - side log service component receives the metadata logs, writes the metadata logs into the edge - side log queue component, and the edge - side log listener component listens to the metadata logs and writes the metadata logs into the edge - side storage.

[0075] Regarding the information interaction, execution process, etc. among the above - mentioned modules, since they are based on the same concept as the method embodiment of the present invention, the specific content can be referred to the description in the method embodiment of the present invention, and will not be elaborated here.

[0076] Similarly, through the log module of the present invention, the efficient synchronization of Internet of Things data between the edge side and the cloud side can be realized, achieving edge - cloud collaboration and fast intelligent response. Moreover, the log module of the present invention adopts a technical solution combining a log queue and a listener, which has the advantages of loose coupling and high scalability. The edge - side and cloud - side business systems only need to write data into the log queue, and the subsequent processing is completed by the listener. New listeners can also be extended to execute customized data - processing tasks.

[0077] It should be noted that in the above - mentioned processes, not all steps and modules are necessary. Some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted according to needs. The system structure described in the above - mentioned embodiments can be a physical structure or a logical structure. That is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities respectively, or some modules may be jointly implemented by some components in multiple independent devices.

[0078] The above - mentioned embodiments are only preferred embodiments given to fully illustrate the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are within the protection scope of the present invention. The protection scope of the present invention is subject to the claims.

Claims

1. A log-based edge-cloud synchronization method for Internet of Things data, characterized in that it is in Deploy an edge - side logging module at the edge side. The edge - side logging module includes an edge - side log queue component, an edge - side log listener component, and an edge - side log service component. Deploy a cloud - side logging module in the cloud system. The cloud - side logging module includes a cloud - side log queue component, a cloud - side log listener component, and a cloud - side log service component. Perform data synchronization communication between the edge side and the cloud system through the edge - side logging module and the cloud - side logging module. When performing time - series data synchronization, write the time - series data log to the edge - side log queue component through the edge side. Use the edge - side log listener component to monitor the time - series data log received in the edge - side log queue component and send the time - series data log to the cloud - side log service component. After the cloud - side log service component receives the time - series data log, write the time - series data log to the cloud - side log queue component. Use the cloud - side log listener component to monitor the time - series data log in the cloud - side log queue component and write the time - series data log to cloud storage. When performing metadata synchronization, write the metadata to the cloud - side log queue component through the cloud system. Use the cloud - side log listener component to monitor the metadata log in the cloud - side log queue component and send the metadata log to the edge - side log service component. The edge - side log service component receives the metadata log, writes the metadata log to the edge - side log queue component, and the edge - side log listener component monitors the metadata log and writes the metadata log to edge storage.

2. The method for edge-cloud synchronization of Internet of Things data based on logs according to claim 1, characterized in that The edge - side log listener component includes an edge - side sending listener and a metadata listener. Use the edge - side sending listener to monitor the time - series data log received in the edge - side log queue component and send the time - series data log to the cloud - side log service component. Use the metadata listener to monitor the metadata log and write the metadata log to edge storage. The cloud - side log listener component includes a cloud - side sending listener and a data listener. Use the cloud - side sending listener to monitor the metadata log in the cloud - side log queue component and send the metadata log to the edge - side log service component. Use the data listener to monitor the time - series data log and write the time - series data log to cloud storage.

3. A method for edge-cloud synchronization of Internet of Things data based on logs according to claim 2, characterized in that When performing time - series data synchronization, it includes: Use the edge - side sending listener to monitor the time - series data log received in the edge - side log queue component, send the time - series data log to the cloud - side log service component. After the cloud - side log service component receives the time - series data log, write the time - series data log to the cloud - side log queue component. Use the data listener to monitor the time - series data log in the cloud - side log queue component and write the time - series data log to cloud storage.

4. A method for edge-cloud synchronization of Internet of Things data based on logs according to claim 2, characterized in that When performing metadata synchronization, it includes: Use the cloud - side sending listener to monitor the metadata log in the cloud - side log queue component and send the metadata log to the edge - side log service component. The edge - side log service component receives the metadata log, writes the metadata log to the edge - side log queue component, and the metadata listener monitors the metadata log in the edge - side log queue component and writes the metadata log to edge storage.

5. A method for edge-cloud synchronization of Internet of Things data based on logs according to claim 1, characterized in that The edge-side log module and the cloud-side log module perform data synchronization communication between the edge-side and cloud-side systems according to the information in the log model. The information in the log model includes log type, log topic, timestamp, and log data content. The log type is used to identify whether the log is local data or remote data that needs to be synchronously transmitted to the remote end. The log topic is used to distinguish time-series data and metadata. The timestamp is the time when the log is written into the corresponding log queue component.

6. The method for edge-cloud synchronization of Internet of Things data based on logs according to claim 5, characterized in that According to the information in the log model, when synchronizing time-series data with the log topic, the edge-side writes the time-series data log with the log type of local data into the edge-side log queue component to obtain the corresponding timestamp. The edge-side sending listener monitors the time-series data log received in the edge-side log queue component, changes the log type of the time-series data log to remote data, and then sends the time-series data log to the cloud-side log service component. After the cloud-side log service component receives the time-series data log, it writes the time-series data log into the cloud-side log queue component to obtain the corresponding timestamp. The data listener monitors the time-series data log in the cloud-side log queue component and writes the time-series data log into the cloud storage.

7. A method for edge-cloud synchronization of Internet of Things data based on logs according to claim 5, characterized in that According to the information in the log model, when synchronizing metadata with the log topic, the cloud-side system writes the metadata with the log type of local data into the cloud-side log queue component to obtain the corresponding timestamp. The cloud-side sending listener monitors the metadata log in the cloud-side log queue component, changes the log type of the metadata log to remote data, and then sends the metadata log to the edge-side log service component. The edge-side log service component receives the metadata log, writes the metadata log into the edge-side log queue component to obtain the corresponding timestamp. The metadata listener monitors the metadata log in the edge-side log queue component and writes the metadata log into the edge-side storage.

8. A log module for edge-cloud synchronization of Internet of Things data based on logs, characterized in that The log module includes an edge-side log module and a cloud-side log module. The edge-side log module is deployed on the edge side. The edge-side log module includes an edge-side log queue component, an edge-side log listener component, and an edge-side log service component. The cloud-side log module is deployed in the cloud system. The cloud-side log module includes a cloud-side log queue component, a cloud-side log listener component, and a cloud-side log service component. The edge-side log module and the cloud-side log module perform data synchronization communication between the edge-side and cloud-side systems. When synchronizing time-series data, the edge-side writes the time-series data log into the edge-side log queue component. The edge-side log listener component monitors the time-series data log received in the edge-side log queue component and sends the time-series data log to the cloud-side log service component. After the cloud-side log service component receives the time-series data log, it writes the time-series data log into the cloud-side log queue component. The cloud-side log listener component monitors the time-series data log in the cloud-side log queue component and writes the time-series data log into the cloud storage. When performing metadata synchronization, the metadata is written into the cloud log queue component through the cloud system. The cloud log listener component listens to the metadata logs of the cloud log queue component and sends the metadata logs to the edge log service component. The edge log service component receives the metadata logs, writes the metadata logs into the edge log queue component, and the edge log listener component listens to the metadata logs and writes the metadata logs into the edge storage.

Citation Information

Patent Citations

  • Log information processing method and device based on message queue and readable medium

    CN112306979A

  • Cloud-side collaborative industrial Internet of Things intelligent routing system

    CN114268640A