Method and equipment used for processing event by website server

A website server and event technology, applied in the computer field, can solve the problems of reducing the average response time of the system, low latency, affecting other requests, etc., to achieve the effect of improving CPU utilization and reducing average response time

Active Publication Date: 2017-06-13
ALIBABA GRP HLDG LTD
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this application is to provide a method and device for web server processing events to solve the problem of affecting other requests when processing requests with long response times, reduce the average response time of the system, and maintain high throughput and low latency performance. And improve CPU utilization

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 equipment used for processing event by website server
  • Method and equipment used for processing event by website server
  • Method and equipment used for processing event by website server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The application will be described in further detail below in conjunction with the accompanying drawings.

[0023] figure 1 It shows a schematic flow chart of a method for processing an event by a website server according to one aspect of the present application. The method includes step S11, step S12, step S13 and step S14. Wherein, the step S11 runs the main thread, after the main thread creates a coroutine based on an event processing request, then suspends the main thread and switches to the coroutine; the step S12 runs the coroutine, Create a communication channel by the coroutine, and hand over the main business logic of the event to the worker thread pool for processing, then suspend the coroutine and switch to the main thread; the step S13 runs the main thread again thread, the main thread continues to process the event loop until the message that the worker thread pool sent by the communication channel is received, suspends the main thread and switches to the ...

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 aims to provide a technology for processing an event by a website server. The technology comprises the following steps that: operating a main thread, suspending the main thread after the main thread creates a coroutine on the basis of the processing request of the event, and switching to the coroutine; operating the coroutine, creating a communication pipeline by the coroutine, processing the main business logic of the event by a working thread pool, suspending the coroutine, and switching to the main thread; operating the main thread again, continuing an event processing circulation by the main thread until a message that the working thread pool finishes processing is received, suspending the main thread, and switching to the coroutine, wherein the message is sent from the communication pipeline; and operating the coroutine again, processing the secondary business logic of the event by the coroutine, finishing the coroutine after processing is finished, and switching to the main thread. Therefore, other requests, which are subjected to parallel processing, of the main thread can be processed in time, and the average response time of the system is shortened.

Description

technical field [0001] The present application relates to the field of computers, in particular to a technology for processing events of a website server. Background technique [0002] With the rapid development of the Internet, the Internet is constantly being popularized and applied. Web (Internet) service is a service accessed through the Web, and the service architecture of the website determines the performance of the server. [0003] At present, the service architecture side is roughly divided into two types in terms of architecture. One is the combination of the Web server and the back-end application server. One is to embed the business logic of the application through an extension module (plug-in) on the Web server that supports modular expansion. This method is difficult to implement the business logic in the form of writing the Web server module, and requires the implementation of the business logic. It must be integrated into the architecture of the Web server ...

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): G06F9/48
CPCG06F9/485G06F2209/485
Inventor 郑涔
Owner ALIBABA GRP HLDG 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