Streaming Data Processing Sequence Verification
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current data processing systems face challenges in maintaining the correct sequence of updates in real-time data processing, leading to errors when the sequence of service data values in distributed streaming data differs from the sequence of updates, resulting in earlier updated values being replaced by later updated values.
Innovation Solution
A method and apparatus for streaming data distributed processing that involves obtaining service data identifier information and time sequence characteristics, comparing the time sequence characteristics of to-be-processed and processed real-time values, and updating the processed values when the to-be-processed value has a later time sequence, ensuring data processing accuracy by adhering to the update sequence.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a single thread is used for real-time data collection, then the sequence of service data real-time values is maintained correctly, but the processing performance is insufficient for large amounts of data
Solution Approach 1:
The patent divides the data collection system into multiple threads, each responsible for collecting data from different sources or types. Each thread maintains its own sequence for the service data it collects, thereby preserving sequence accuracy while achieving parallel processing and improved overall performance.
2Productivity
If multiple threads are used for distributed real-time data collection, then data processing performance is improved, but the sequence of service data real-time values may differ from the update sequence
Solution Approach 1:
The patent attaches time sequence characteristics (such as timestamps) to each service data record at the moment of collection. This preliminary tagging of sequence information allows the system to later verify and correct the ordering of data values, ensuring that even when collected by multiple threads, the final processed results maintain the correct update sequence.
3Ease of operation
If data processing is performed according to the sequence of service data in streaming data, then processing is simplified, but errors occur when the sequence differs from the update sequence
Solution Approach 1:
The patent implements a verification mechanism that compares the time sequence characteristics of consecutive data records. When a discrepancy is detected (i.e., a later-updated value appears before an earlier-updated value), the system triggers a correction process that reorders or reprocesses the affected data, thereby maintaining processing simplicity while eliminating sequence-related errors.
Data Source
AI summary
A method comprises: obtaining service data identifier information of a data record of streaming data, a to-be-processed real-time value of the data record, and a time sequence characteristic of the to-be-processed real-time value of the data record, the identifier information representing service data; obtaining a time sequence characteristic of a processed real-time value of the service data based on a correspondence relationship between the service data identifier information and the time sequence characteristic of the processed real-time value; and comparing the time sequence characteristic of the to-be-processed real-time value and the time sequence characteristic of the processed real-time value, and in response to that the time sequence characteristic of the to-be-processed real-time value is later than the time sequence characteristic of the processed real-time value, updating the time sequence characteristic of the processed real-time value to the time sequence characteristic of the to-be-processed real-time value.


