Supercharge Your Innovation With Domain-Expert AI Agents!

Node-based event processing method and related server device

A server device and event processing technology, applied in the field of event processing, can solve problems such as system blocking, processor resource occupation, and overall system performance degradation, and achieve the effects of improving performance, avoiding blocking phenomena, and improving processing efficiency

Inactive Publication Date: 2017-03-08
ALIBABA GRP HLDG LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] like figure 1 In the signal flow diagram shown, the Node-based event processing thread (running in the Central Processing Unit (CPU)) processes the intensive computing event corresponding to request 2, although it receives the request 1 returned by the I / O device successively The corresponding target data and the request 3 sent by the client cannot be processed, so they can only be stored in the event queue. The returned data is forwarded to the client, and the I / O device is notified to return the target data corresponding to request 3 through an asynchronous call, which seriously affects the response speed of the server to the client.
[0005] It can be seen that when the existing Node-based event processing method encounters intensive computing events, the processor resources are occupied for a long time, which makes the system in a blocked state and the overall system performance declines.

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
  • Node-based event processing method and related server device
  • Node-based event processing method and related server device
  • Node-based event processing method and related server device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0038] figure 2 It is a flow chart of a Node-based event processing method shown according to an exemplary embodiment. refer to figure 2 , the method includes the following steps.

[0039] S11. Obtain pending events;

[0040] S12. Judging whether the event to be processed is a computing-intensive event, if yes, execute step S13, otherwise execute step S14.

[0041] The above-mentioned int...

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 node-based event processing method and a related server device. When an event processing thread encounters an intensive computing event, an auxiliary processor is called, and the intensive computing event is carried out by the auxiliary processor, so a master processor in which the event processing thread is located can continuously read and process a next to-be-processed event, the event processing thread is prevented from being occupied for a long time by massive computing operations related to the intensive computing event, the processing efficiency of the event processing thread for the intensive computing event can be improved, a congestion phenomenon is avoided, and the performance of the related device or system is improved.

Description

technical field [0001] The present disclosure relates to the technical field of event processing, in particular to a Node-based event processing method and related server equipment. Background technique [0002] Node is a Javascript script running platform based on the Google V8 engine. It is applied to the server side and used to conveniently build fast-response and easy-to-extend network applications. One of the main features of Node is to use single-threaded processing, that is, there is only one event processing thread in Node at the same time, and all Javascript codes are executed by this event processing thread, which can avoid the problem of multi-threaded programming that needs to pay attention to state synchronization at all times, and avoid code A deadlock phenomenon occurs during the running process, and the performance overhead caused by thread switching is eliminated at the same time. [0003] However, the introduction of a single-threaded processing method als...

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
IPC IPC(8): G06F9/46
Inventor 李攀
Owner ALIBABA GRP HLDG LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More