Event processing method and device
An event processing and event technology, applied in the Internet field, can solve problems such as low event processing efficiency, and achieve the effect of solving low event processing efficiency and improving event processing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] According to an embodiment of the present invention, an embodiment of an event processing method is provided.
[0039] Optionally, in this embodiment, the above event processing method can be applied to figure 2 In the hardware environment constituted by the server 202 and the terminal 204 as shown. figure 2 It is a schematic diagram of a hardware environment of an event processing method according to an embodiment of the present invention. Such as figure 2 As shown, the server 202 is connected to the terminal 204 through a network. The above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 204 is not limited to a PC, a mobile phone, a tablet computer, and the like. The event processing method in this embodiment of the present invention may be executed by the server 202, may also be executed by the terminal 204, and may also be executed jointly by the server 202 and the terminal 20...
Embodiment 2
[0121] The technical solutions of the present invention will be described below in conjunction with preferred embodiments. Specifically, the proxy server is Nginx for description.
[0122] The remote procedure call in this embodiment includes a multi-process model, a multi-thread model, and a dynamic RPC processing model, respectively.
[0123] The multi-process model in the remote procedure call is introduced below.
[0124] Figure 10 is a schematic diagram of a multi-process model according to an embodiment of the present invention. Such as Figure 10 As shown, Nginx adopts the master-multi-worker parent-child process model. Multiple child processes are multiple child processes that are called out (fork) after the parent process reads the configuration file and initializes, and then calls out multiple child processes to receive and Process user requests sent by multiple clients (Clients), wherein each sub-process can receive user requests sent by multiple clients. The ...
Embodiment 3
[0141] According to an embodiment of the present invention, an event processing device for implementing the above event processing method is also provided. Figure 13 is a schematic diagram of an event processing device according to an embodiment of the present invention. Such as Figure 13 As shown, the event processing device may include: a first acquisition unit 10 , a second acquisition unit 20 and a first processing unit 30 .
[0142] The first obtaining unit 10 is configured to obtain a first request, wherein the first request is used to request execution of a first target event, and the first target event is an event executed in a remote procedure call.
[0143] The second obtaining unit 20 is used to obtain the multi-process used for processing the first target event in the proxy server when the first request meets the first preset condition, wherein the number of multi-process processes is determined by the proxy server It is pre-configured, and the number of proces...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com