Unlock instant, AI-driven research and patent intelligence for your innovation.

Event processing method, server and computer storage medium

An event processing and server technology, applied in the field of data processing, can solve problems such as particularly serious consequences, achieve the effects of improving efficiency and accuracy, clear business logic, and reducing resource consumption

Pending Publication Date: 2020-07-03
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the rapid operation of the client or the delay of network communication response, the server may receive multiple identical concurrent events. Due to the high concurrency of the server, the server will repeatedly process the above multiple identical concurrent events, resulting in the entity Repeated modification of data is especially serious for transaction systems, payment systems, etc.
[0003] It can be seen that there is a problem of repeated processing of concurrent events of the same entity in the prior art

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, server and computer storage medium
  • Event processing method, server and computer storage medium
  • Event processing method, server and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] See figure 1 , figure 1 It is a flowchart of an event processing method provided by an embodiment of the present invention, and the method can be applied to a server.

[0032] Such as figure 1 As shown, the method includes the following steps:

[0033] Step 101, in the case of receiving N events at the same time, generate sequence numbers of the N events, and the sequence numbers of the N events are the same;

[0034] Step 102, when the N events include M events with the same entity identifier, insert the MySQL record corresponding to the target event into the MySQL data table;

[0035] Step 103, when the MySQL record of the target event is successfully inserted, process the target event and filter M-1 events;

[0036] Wherein, the target event is an event in the M events, when inserting the MySQL record corresponding to the target event in the MySQL data table, the M-1 events are in the state of waiting for the record to be inserted, and N is greater than 1 An int...

Embodiment 2

[0049] See figure 2 , figure 2 is a flow chart of another event processing method provided by an embodiment of the present invention, and the method can be applied to a server.

[0050] Such as figure 2 As shown, the method includes the following steps:

[0051] Step 201, in the case of receiving N events at the same time, generate sequence numbers of the N events, and the sequence numbers of the N events are the same;

[0052] Step 202, when the N events include M events with the same entity identifier, insert the MySQL record corresponding to the target event into the MySQL data table;

[0053] Step 203, in the case that the MySQL record of the target event is inserted successfully, filter M-1 events, and judge whether there is a first event being processed, and the entity identifier of the first event is the same as the entity of the target event same logo;

[0054] Step 204: If there is the first event being processed, if the processing of the first event is comple...

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 embodiment of the invention provides an event processing method, a server and a computer storage medium. Uniqueness of the event is identified through the entity identifier and the serial number;events with the same entity identifiers and serial numbers are strictly executed according to a sequence; securing at the same time, only a single thread is used for processing the same entity object;according to the method, the same entity object data is prevented from being repeatedly modified, or the same entity object state is prevented from being repeatedly changed, so that the service logicof server event processing is clearer, unnecessary resource consumption caused by repeated processing of the server is also reduced, and the efficiency and the accuracy of server event processing areimproved.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to an event processing method, server and computer storage medium. Background technique [0002] In the contract middle platform system, every time a user requests an operation, the server will convert it into an event for processing. In response to different user operation requests, when the server processes different events, it will involve data query, modification, or state change. Due to the rapid operation of the client or the delay of network communication response, the server may receive multiple identical concurrent events. Due to the high concurrency of the server, the server will repeatedly process the above multiple identical concurrent events, resulting in the entity The repeated modification of data is particularly serious for transaction systems and payment systems. [0003] It can be seen that there is a problem of repeatedly processing concurrent ev...

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/54G06F16/22G06F16/28
CPCG06F9/542G06F16/284G06F16/2282G06F2209/541Y02D10/00
Inventor 艾国信宋超
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD