The invention belongs to the technical field of
data query, and relates to a distributed data tracking method based on a micro-service architecture, which comprises the following steps: S1, performing task configuration based on a query demand, and constructing an associated query task crossing a plurality of micro-service systems into a
query tree; s2, traversing and executing the
query tree from a root node, and executing the following steps on the traversed current node: obtaining an intermediate result
data set of a front node, and extracting values of predefined association key fields from the set to form an association key value
list; binding the associated key value
list and an external input parameter as a corresponding placeholder in a pre-configured
SQL template of the current node, and generating an
executable SQL statement; the result data obtained by executing the
SQL statement and the intermediate result data of the front node are associated and merged to form new intermediate result data; and S3, performing output
processing after traversal is completed. The problems of poor real-time performance, unstable performance and large
resource consumption during
database association query are solved.