Stream data processing method and apparatus
A technology of streaming data and processing methods, applied in the network field, can solve the problems that the thread pool cannot improve processing efficiency, low processing efficiency, out of order, etc., and achieve the effect of solving low efficiency, solving out-of-order problems, and improving processing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] refer to figure 1 , which shows a flow chart of the steps of a streaming data processing method according to the present invention, which may specifically include the following steps:
[0042] Step 101, copy and receive streaming data for the current process; wherein, the process copy is an operation entity with an independent operation thread;
[0043] The existing streaming data processing process adopts the method of serial operation, that is, after the process A completes the data processing, it is then handed over to the process B for processing, resulting in low processing efficiency. The present invention proposes to set several independent processes for the process copy, and achieve parallel execution between processes through decoupling between process copies.
[0044] For example, for process A, independent process copies (that is, computing entities with independent computing threads) A1, A2,..., An can be set according to data sources 1, 2, 3...n. A1 only p...
Embodiment 2
[0066] The streaming data processing method in this embodiment may further include the following optional technical solutions on the basis of the first embodiment above.
[0067] see figure 2 , showing a flow chart of steps of processing the streaming data by using the thread copied by the current process in the present invention, which may specifically include:
[0068] Step 201, using the current process copy to identify the source of the streaming data;
[0069] In an application example of the present invention, an adapter can be used to identify the source of the streaming data, and in addition, the adapter can also be used to complete the input and output work of the thread to the streaming data. Specifically, the input adapter can be used to receive streaming data, identify the source of the streaming data, and mark the identified source information on the data as an additional attribute. Moreover, after the thread finishes processing a piece of data, it can also use...
example
[0140] The example is as follows: Called in the main method.
[0141]
[0142]
[0143] The embodiment of the present invention provides various operation modes and parameter settings for the interface of the process to meet the needs of each process, such as high-speed file cache, congestion strategy and queuing strategy. The framework is responsible for the management of the entire thread life cycle, taking over input and output, and each process only needs to focus on its own logic.
[0144] In addition to data input, each process also needs other auxiliary tools, such as high-speed file cache as a tool, which is independent of the core framework. By providing the basic framework of file cache, simple development can be achieved to complete a high-speed file that is synchronized with the main library. A local cache is available for querying.
[0145] By setting the blocking strategy, it is possible to block the thread to save calculations when waiting, ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com