Server-based event processing method, device and apparatus and medium

An event processing and server technology, applied in the computer field, can solve problems such as increasing development difficulty, increasing maintenance cost, and unrealistic problems, and achieve the effect of reducing development difficulty, reducing maintenance cost, and improving compatibility

Inactive Publication Date: 2019-01-11
SHENZHEN YIHUA COMP +2
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the application scalability of this model is poor. If the application only needs to process a small number of concurrent requests, the system can still run normally; but if the application needs to process a large number of requests, it is not appropriate to allocate a processing process or thread for each connection. realistic
[0007] In the event-driven single-threaded model, since this model converts the blocking operation into an asynchronous operation, it has higher scalability and better performance than the multi-process or multi-threaded pool processing model. However, this model needs to convert all blocking operations into asynchronous operations, and asynchronous operations need to be written and managed by developers, which will increase the difficulty of development and increase maintenance costs; on the other hand, many widely used function libraries are currently It is difficult to convert to asynchronous operations, resulting in poor compatibility

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
  • Server-based event processing method, device and apparatus and medium
  • Server-based event processing method, device and apparatus and medium
  • Server-based event processing method, device and apparatus and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] figure 1 It is a schematic flowchart of a server-based event processing method provided by Embodiment 1 of the present invention. The method is applicable to the case where the server processes the events sent by the client, and the method can be executed by a server-based event processing device, which can be composed of hardware and / or software, and generally can be integrated in the server and all events containing events processing functions in computer equipment. Specifically include the following:

[0033] S110. Monitor and accept an event processing request sent by at least one client through the main thread, and send an agreement response message to the corresponding client.

[0034] In this embodiment, the main thread may be a synchronous processing thread. Exemplarily, a main thread can be used in the server to listen to the event processing request sent by the client in a synchronous manner, accept the request after the event processing request is verified...

Embodiment 2

[0055] figure 2 It is a schematic structural diagram of a server-based event processing device provided by Embodiment 2 of the present invention. refer to figure 2 , The server-based event processing device includes: an event monitoring module 210, a queue adding module 220, a data distribution module 230, and a data processing module 240, and each module will be described in detail below.

[0056] The event monitoring module 210 is configured to monitor and accept an event processing request sent by at least one client through the main thread, and send an agreement response message to the corresponding client;

[0057] A queue adding module 220, configured to add the event data returned by the client according to the consent response information to the buffer queue;

[0058] A data distribution module 230, configured to distribute the event data in the buffer queue to idle working threads;

[0059] A data processing module 240, configured to process the event data throug...

Embodiment 3

[0077] image 3 A schematic structural diagram of a computer device provided in Embodiment 4 of the present invention, such as image 3 As shown, a computer device provided in this embodiment includes: a processor 31 and a memory 32 . The processor in the computer device may be one or more, image 3 Taking a processor 31 as an example, the processor 31 and memory 32 in the computer device can be connected by bus or other methods, image 3 Take connection via bus as an example.

[0078] The processor 31 of the computer device in this embodiment integrates the server-based event processing apparatus provided in the above embodiments. In addition, the memory 32 in the computer device, as a computer-readable storage medium, can be used to store one or more programs, and the programs can be software programs, computer-executable programs and modules, such as server-based The program instruction / module corresponding to the event handling method (for example, attached figure 2 ...

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 discloses a server-based event processing method, device and apparatus and a storage medium. The method comprises the following steps: monitoring and accepting an event processing request sent by at least one client via a main thread, and sending an agreement response message to the corresponding client; adding event data returned by the client according to the consent response information to a buffer queue; distributing event data in the buffer queue to idle worker threads; processing the event data through the worker threads, wherein the main thread is a synchronous processingthread and the worker threads are asynchronous processing threads. The technical proposal of the invention can effectively reduce the development difficulty, reduce the maintenance cost and improve the compatibility of the server while ensuring the application expansibility of the server.

Description

technical field [0001] Embodiments of the present invention relate to computer technology, and in particular to a server-based event processing method, device, equipment and media. Background technique [0002] With the continuous development of the financial industry, higher requirements are placed on the service capabilities of the industry. In order to expand their business scope, banks have made effective attempts in various fields. Considering security and other aspects, most of the current data services of banks are based on centralized data services, and a variety of server applications are deployed to meet the processing needs of a large number of businesses. To meet such demands, a server event handler with high performance is essential. For these server event handlers that can handle a large number of business requests, each vendor will carry out targeted development in combination with the situation of different projects. [0003] At present, there are two comm...

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/54G06F9/50
CPCG06F9/5027G06F9/542G06F2209/5018G06F2209/508
Inventor 肖艳华何华强李进南刘志宏朱勇军邓兵龙吴韦盛
Owner SHENZHEN YIHUA COMP
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