Method and system for processing data in real time

A real-time data processing and data technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as data backlog, frequent persistence, and increased pressure

Active Publication Date: 2015-01-28
BEIJING GRIDSUM TECH CO LTD
View PDF4 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the speed of fetching data from the queue exceeds the speed of data entering the queue, the existing technology may cause an aggregation and persistence immediately after each piece of data is fetched, and the persistence will be particularly frequent
And when the speed of fetching data in the queue is lower than the speed of data entering the queue, it may cause a large backlog of data in the queue. If the data in the queue cannot be fetched all the time, the data in the cache cannot be aggregated and persisted. The processing results are no longer real-time. If the data in the queue is finally empty after a long backlog, the amount of data after aggregation of the data in the cache will usually be more. Instantly the pressure will increase

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for processing data in real time
  • Method and system for processing data in real time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention are illustrated. The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0021] figure 1 It is a flowchart of an embodiment of the real-time data processing method according to the present invention, such as figure 1 Shown:

[0022] Step 101, receiving data in real time and putting the data into a queue.

[0023] Step 102, read the data in the queue cyclicall...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a system for processing data in real time. The method comprises receiving data in real time and putting the data into a queue, reading the data in the queue circularly and putting the read data into a cache, determining whether the time of reading data from the queue exceeds a preset time threshold, and if so, aggregating the data in the cache and persisting the aggregated data. According to the method and the system for processing data in real time, the time threshold is preset; when the queue data are processed, jumping out of the cycle of the processing queue is carried out at a fixed time interval, and therefore, regular persistence can be guaranteed, the data of the same dimensionality can be aggregated as less as possibly, the contradictory relation of the persistence pressure, the persistence period and the aggregation effect can be balanced, and various negative effects due to large data size or different speeds of data going in and out of the queue can be avoided.

Description

technical field [0001] The invention relates to the technical field of data persistence, in particular to a real-time data processing method and system. Background technique [0002] In a real-time data processing system, on the one hand, a large amount of data with dimensions will enter the queue according to a fixed time window; on the other hand, when the queue is processing data, it is expected to quickly aggregate data with the same dimension in the same time window into The number of entries should be as few as possible. In the case of a particularly large number of dimensions, the number of aggregated entries is also huge. Considering the pressure of persistent aggregated data on the server, it is also necessary to minimize the amount of data persisted each time, that is, It is said that when the data in a time window has not been fully put into the cache, the data that has been put into the cache needs to be aggregated and persisted first. [0003] The existing real...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/24552G06F16/24556G06F16/24578
Inventor 郭涛王鹏
Owner BEIJING GRIDSUM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products