Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and a device for processing a flow event

A processing method and technology of a processing device, which are applied in the computer field, can solve the problems of fixed message queue size, overflow and omission of stream events, occupying memory space, etc., so as to ensure processing performance and processing efficiency, prevent loss and omission, and reduce waste of resources. Effect

Inactive Publication Date: 2019-06-28
CHINA MOBILE COMM LTD RES INST +1
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] However, the client-side processing method based on the operating system also has the following defects: the size of the message queue is fixed, and it is easy to cause overflow and omission of flow events
The length of a single queue is generally limited by memory
[0017] When storing high-concurrency flow events, it is easy for the system queue to have insufficient storage space when the flow events are intensively captured, resulting in the overflow of the flow events captured later and being discarded by the system, eventually resulting in the failure of system events to respond
[0018] Correspondingly, when the system events are calm, it is easy to cause empty queues and occupy memory space, resulting in waste of resources

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
  • A method and a device for processing a flow event
  • A method and a device for processing a flow event
  • A method and a device for processing a flow event

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0081] refer to figure 2 As shown, in order to avoid overflow and omission of flow events, in the embodiment of the present invention, a double-layer buffer pool of flow queues is designed. The so-called double-layer cache pool means that for each system event, a corresponding stream queue is set in the cache pool in the memory, and a corresponding storage space is also set in the cache pool in the database. When a stream event corresponding to a system event is captured Finally, it will decide where to store the flow events according to the corresponding flow queue and the idle state of the database storage space, so as to realize the fast reception of flow events and avoid loss. At the same time, it is also necessary to monitor the usage of the flow queue, and adjust the queue length of the flow queue in real time according to the monitoring results.

[0082] Compared with the double-layer buffer pool in the prior art, the classified storage function of the flow event is a...

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 relates to a method and a device for processing a flow event, which are used for avoiding overflow and omission of the flow event. The method comprises the following steps of: designinga double-layer cache pool of a stream queue and a database; after a flow event is captured, firstly determining a flow queue corresponding to an event type of a flow event; if no free space exists inthe stream queue, storing the flow event into a corresponding storage space of the flow queue in a database, reading the flow event into the flow queue to wait for processing when it is determined that a preset condition is met, and meanwhile, adaptively adjusting the queue length of the flow queue according to the use condition of the flow queue. Therefore, when a high-concurrency flow event arrives, the flow event can be rapidly received and stored, loss and omission of the flow event caused by overflow of the flow queue are prevented, the processing performance and the processing efficiencyof the system are ensured, meanwhile, the size of a flow event storage space can be flexibly controlled, and resource waste is reduced.

Description

technical field [0001] The invention relates to computer technology, in particular to a method and device for processing stream events. Background technique [0002] At present, the concurrent processing methods of real-time streaming events can be divided into network processing methods based on web architecture and client processing methods based on operating system according to the system architecture. [0003] The network processing method based on the web architecture is relatively mature, and usually obtains information related to flow events by monitoring network ports and processes them. However, the network processing method technology based on the web architecture is difficult to deal with real-time streaming events of big data. Taking sleep monitoring data as an example, the reasons are as follows: [0004] The real-time display of big data requires sufficient data storage space. Even if the sleep monitoring data is stored in time slices, the size of each segment...

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): G06F16/2455G06F9/54
Inventor 方若洁常耀斌吴娜许利群
Owner CHINA MOBILE COMM LTD RES INST