Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for web server processing events

A website server and event technology, applied in the computer field, can solve problems such as low latency, affecting other requests, and reducing the average response time of the system

Active Publication Date: 2021-07-06
ALIBABA GRP HLDG LTD
View PDF4 Cites 0 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 device for web server processing events
  • Method and device for web server processing events
  • Method and device for web server processing events

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 purpose of this application is to provide a website server event processing technology, by running the main thread, after the main thread creates a coroutine based on the processing request of the event, then suspend the main thread and switch to the coroutine process; run 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; again Run the main thread, continue to process the event loop by the main thread, until the message that the worker thread pool sent by the communication channel is obtained, suspend the main thread and switch to the coroutine; run again In the coroutine, the secondary business logic of the event is processed by the coroutine, and after the processing is completed, the coroutine is terminated and switched back to the main thread. As a result, other requests that are being processed in parallel by the main thread are processed in a timely manner, reducing the average response time of the system.

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products