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
CN106844017BActive Publication Date: 2021-07-06ALIBABA GRP HLDG LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Patents(China)
Current Assignee / Owner
ALIBABA GRP HLDG LTD
Publication Date
2021-07-06

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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