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

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

Active Publication Date: 2018-11-02
TENCENT TECH SHANGHAI
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The embodiment of the present invention provides an event processing method and device to at least solve the technical problem of low efficiency of event processing in the remote procedure call of the related technology

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
  • Event processing method and device
  • Event processing method and device
  • Event processing method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

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 an event processing method and device. The method comprises the following steps: acquiring a first request, wherein the first request is used for requesting the execution of afirst target event, and the first target event is the event executed in a remote procedure calling; acquiring multi-process used for processing the first target vent in a proxy server under the condition that the first request meets the first preset condition, wherein the process amount of the multi-process is preconfigured by the proxy server, and the process amount of the multi-process is corresponding to the first target event; and processing the first target event through the multi-thread corresponding to each process in multi-process, wherein the thread amount of multi-thread is preconfigured by the proxy server, and the thread amount of the multi-thread is corresponding to the first target event. Through the event processing method disclosed by the invention, the technical problem that the event processing efficiency is low in the remote procedure calling is solved.

Description

technical field [0001] The present invention relates to the field of the Internet, in particular to an event processing method and device. Background technique [0002] At present, in the event processing of the Internet, in the face of a large number of service development needs, it is difficult to build a high-performance, high-concurrency, easy-to-use, and robust background remote procedure call framework in different scenarios. Especially in scenarios such as intensive computing tasks and intensive network IO, there are different requirements for the Remote Procedure Call (Remote Procedure Call, RPC for short) framework. The usual method is to use a single-process service in a single-process mode. [0003] figure 1 It is a schematic diagram of event processing in a single process mode according to the related art. Such as figure 1 As shown, in the single-process mode, the client sends a user request according to the target event that needs to be executed by the serve...

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/54
CPCG06F9/548Y02D10/00
Inventor 邓长友赵亚峰谭国富黄飞跃吴永坚
Owner TENCENT TECH SHANGHAI
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