This application provides a method,
system, device, and medium for aligning time-
series data in a cloud-edge collaborative manner, belonging to the field of cloud-edge
collaboration technology. The method includes deploying a time-series generation microservice in the cloud or on a central
server; constructing multiple edge acquisition and storage integrated
microservices for various
data acquisition protocols and deploying them to corresponding edge hardware devices; each edge acquisition and storage integrated microservice collecting time-
series data from industrial IoT devices; subscribing to a unified time-series message; the time-series generation microservice sending a message containing a unified
timestamp and storage instructions to the edge acquisition and storage integrated microservice via a
message queue; comparing the message with the local
timestamp; if the
timestamp difference is within the allowable error range, formatting the collected time-
series data using the unified timestamp and storing it in a
database; if it exceeds the allowable error range, executing a preset error handling process. This application's technical solution can solve the problem of low time-series alignment efficiency in high-frequency, multi-location scenarios with large data volumes.