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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


