Event processing method and device

Through the combination of event processing framework and plug-ins, the problem of high R&D cost of event processing logic on the network platform is solved, the unified event processing process and efficiency improvement are achieved, and the R&D cost is reduced.

CN119088583APending Publication Date: 2024-12-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310664922.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the prior art, separate R&D processing logic is required for different events on the network platform, resulting in high R&D costs and the inability to effectively reduce the R&D costs of matching donations.

Method used

Using the event processing framework, by obtaining the corresponding processing plug-ins for events, these plug-ins are used to process user requests, including security verification, budget verification, event information generation, event result notification and post-event behavior processing, and other steps to achieve event processing. Unification and reuse of processes.

Benefits of technology

There is no need to develop processing logic for each event separately. Multiple events can use the same event processing framework, which effectively reduces the R&D cost of events and improves the efficiency of event processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088583A_ABST
    Figure CN119088583A_ABST
Patent Text Reader

Abstract

The invention discloses an event processing method, which comprises the following steps: receiving a first request which indicates that a first user requests to participate in a first event; after the first request is received, at least one processing plug-in corresponding to the first event can be obtained according to the event processing framework, and the first request is processed by utilizing the at least one processing plug-in. Each plug-in in the at least one processing plug-in can respectively correspond to one processing step in the event processing framework. The event processing framework is used for indicating an event processing flow, the event processing flow can be suitable for a plurality of events, and the plurality of events comprise a first event. By utilizing the scheme of the embodiment of the invention, the corresponding processing logic does not need to be researched and developed for each event, and the same event processing framework can be used by a plurality of events, so that the research and development cost of the events can be effectively reduced by utilizing the scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an event processing method and device. Background Art

[0002] Currently, corresponding events can be set through the network platform, and users can participate in the event by performing corresponding operations.

[0003] There are many kinds of events that can be set on the network platform. At present, for the events set on the network platform, it is necessary to develop a processing logic corresponding to each event separately, which has a high development cost.

[0004] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention

[0005] In order to solve or at least partially solve the above technical problems, an embodiment of the present application provides an event processing method and device.

[0006] In a first aspect, an embodiment of the present application provides an event processing method, the method comprising:

[0007] receiving a first request, wherein the first request indicates that a first user requests to participate in a first event;

[0008] According to the event processing framework, at least one processing plug-in corresponding to the first event is obtained, each of the processing plug-ins corresponds to a processing step in the event processing framework, the event processing framework includes a plurality of the processing steps, the event processing framework is used to indicate an event processing flow, the event processing flow is applicable to a plurality of events, and the plurality of events include the first event;

[0009] The first request is processed using the at least one processing plug-in.

[0010] Optionally, the at least one processing plug-in includes one or more of the following:

[0011] Security verification plug-in, budget verification plug-in, event information generation plug-in, event result notification plug-in and post-event behavior processing plug-in; among them:

[0012] The security verification plug-in is used to perform a security verification on the first user's participation in the first event;

[0013] The budget verification plug-in is used to determine whether the first user has sufficient budget to participate in the first event;

[0014] The event information generation plug-in is used to generate information about the first user participating in the first event;

[0015] The event result notification plug-in is used to generate a notification message, where the notification message is used to indicate that the first user has successfully participated in the first event;

[0016] The post-event behavior processing plug-in is used to process subsequent behaviors of the first user successfully participating in the first event.

[0017] Optionally, acquiring at least one processing plug-in corresponding to the first event according to an event processing framework includes:

[0018] The at least one processing plug-in is obtained according to the order between the plurality of processing steps indicated by the event processing framework.

[0019] Optionally, acquiring the at least one processing plug-in according to the order of the plurality of processing steps indicated by the event processing framework includes:

[0020] First, the security verification plug-in is obtained, and then the budget verification plug-in is obtained. After obtaining the budget verification plug-in, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

[0021] Optionally, the processing the first request by using the at least one processing plug-in includes:

[0022] Using the security verification plug-in, performing a security verification on the first user's participation in the first event;

[0023] After determining that the first user's participation in the first event has passed the security check, determining, through the budget check plug-in, whether the first user has sufficient budget to participate in the first event;

[0024] After determining that the first user has sufficient budget to participate in the first event, performing one or more of the following:

[0025] Using the event information generation plug-in, generating first information of the first user participating in the first event; or,

[0026] Using the event result notification plug-in, generating a first notification message, and sending the first notification message to a client corresponding to the first user, wherein the first notification message is used to indicate that the first user has successfully participated in the first event; or,

[0027] The post-event behavior processing plug-in is used to process subsequent behaviors of the first user who successfully participated in the first event.

[0028] Optionally, obtaining the budget verification plug-in includes:

[0029] After determining that the first user's participation in the first event has passed the security verification, the budget verification plug-in is obtained.

[0030] Optionally, the obtaining of one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in includes:

[0031] After determining that the first user has sufficient budget to participate in the first event, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

[0032] Optionally, the method further includes:

[0033] After determining that the first user's participation in the first event has failed the security check, a second notification message is sent to a client corresponding to the first user, where the second notification message is used to indicate that the first user has failed to participate in the first event.

[0034] Optionally, the method further includes:

[0035] After determining that the first user does not have sufficient budget to participate in the first event, a third notification message is sent to a client corresponding to the first user, where the third notification message is used to indicate that the first user has failed to participate in the first event.

[0036] Optionally, the multiple events further include a second event, and the method further includes:

[0037] receiving a second request, wherein the second request indicates that a second user requests to participate in the second event;

[0038] According to the event processing framework, obtaining a plurality of processing plug-ins corresponding to the second event, each of the plurality of processing plug-ins corresponding to a processing step in the event processing framework;

[0039] The second request is processed using the plurality of processing plug-ins.

[0040] Optionally, the first event is a matching donation event.

[0041] In a second aspect, an embodiment of the present application provides an event processing device, the device comprising:

[0042] A first receiving unit, configured to receive a first request, wherein the first request indicates that a first user requests to participate in a first event;

[0043] A first acquisition unit is configured to acquire, according to an event processing framework, at least one processing plug-in corresponding to the first event, each of the processing plug-ins corresponding to a processing step in the event processing framework, the event processing framework includes a plurality of the processing steps, the event processing framework is used to indicate an event processing flow, the event processing flow is applicable to a plurality of events, and the plurality of events include the first event;

[0044] The first processing unit is configured to process the first request using the at least one processing plug-in.

[0045] Optionally, the at least one processing plug-in includes one or more of the following:

[0046] Security verification plug-in, budget verification plug-in, event information generation plug-in, event result notification plug-in and post-event behavior processing plug-in; among them:

[0047] The security verification plug-in is used to perform a security verification on the first user's participation in the first event;

[0048] The budget verification plug-in is used to determine whether the first user has sufficient budget to participate in the first event;

[0049] The event information generation plug-in is used to generate information about the first user participating in the first event;

[0050] The event result notification plug-in is used to generate a notification message, where the notification message is used to indicate that the first user has successfully participated in the first event;

[0051] The post-event behavior processing plug-in is used to process subsequent behaviors of the first user successfully participating in the first event.

[0052] Optionally, the first acquiring unit is used to:

[0053] The at least one processing plug-in is obtained according to the order between the plurality of processing steps indicated by the event processing framework.

[0054] Optionally, the first acquiring unit is used to:

[0055] First, the security verification plug-in is obtained, and then the budget verification plug-in is obtained. After obtaining the budget verification plug-in, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

[0056] Optionally, the first processing unit is configured to:

[0057] Using the security verification plug-in, performing a security verification on the first user's participation in the first event;

[0058] After determining that the first user's participation in the first event has passed the security check, determining, through the budget check plug-in, whether the first user has sufficient budget to participate in the first event;

[0059] After determining that the first user has sufficient budget to participate in the first event, performing one or more of the following:

[0060] Using the event information generation plug-in, generating first information of the first user participating in the first event; or,

[0061] Using the event result notification plug-in, generating a first notification message, and sending the first notification message to a client corresponding to the first user, wherein the first notification message is used to indicate that the first user has successfully participated in the first event; or,

[0062] The post-event behavior processing plug-in is used to process subsequent behaviors of the first user who successfully participated in the first event.

[0063] Optionally, the first acquiring unit is used to:

[0064] After determining that the first user's participation in the first event has passed the security verification, the budget verification plug-in is obtained.

[0065] Optionally, the first acquiring unit is used to:

[0066] After determining that the first user has sufficient budget to participate in the first event, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

[0067] Optionally, the device further comprises:

[0068] A first sending unit is configured to send a second notification message to a client corresponding to the first user after determining that the first user's participation in the first event has failed a security check, wherein the second notification message is used to indicate that the first user has failed to participate in the first event.

[0069] Optionally, the device further comprises:

[0070] The second sending unit is configured to send a third notification message to a client corresponding to the first user after determining that the first user does not have sufficient budget to participate in the first event, wherein the third notification message is used to indicate that the first user has failed to participate in the first event.

[0071] Optionally, the multiple events further include a second event, and the device further includes:

[0072] A second receiving unit, configured to receive a second request, where the second request indicates that a second user requests to participate in the second event;

[0073] A second acquisition unit is used to acquire, according to the event processing framework, a plurality of processing plug-ins corresponding to the second event, each of the plurality of processing plug-ins corresponding to a processing step in the event processing framework;

[0074] The second processing unit is used to process the second request using the plurality of processing plug-ins.

[0075] Optionally, the first event is a matching donation event.

[0076] In a third aspect, an embodiment of the present application provides a device, the device comprising a processor and a memory;

[0077] The processor is used to execute instructions stored in the memory so that the device executes the method described in any one of the first aspects above.

[0078] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute any of the methods described in the first aspect above.

[0079] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.

[0080] Compared with the prior art, the embodiments of the present application have the following advantages:

[0081] The embodiment of the present application provides an event processing method, in one example, the method can be applied to the server. The method includes: receiving a first request, the first request indicating that the first user requests to participate in the first event. After receiving the first request, at least one processing plug-in corresponding to the first event can be obtained according to the event processing framework, and the first request can be processed using the at least one processing plug-in. In the embodiment of the present application, each of the at least one processing plug-in can correspond to a processing step in the event processing framework, and the event processing framework can include multiple processing steps. The event processing framework is used to indicate the event processing flow, and the event processing flow can be applicable to multiple events, including the first event. It can be seen that in the embodiment of the present application, the first request can be processed using at least one processing plug-in obtained according to the event processing framework, and the event processing framework indicates the processing flow of the event, and the event processing framework can be applicable to at least one event. Therefore, using the solution of the embodiment of the present application, there is no need to develop corresponding processing logic for each event separately, and multiple events can use the same event processing framework. Therefore, using this solution, the development cost of the event can be effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0083] Figure 1 A flowchart of an event processing method provided in an embodiment of the present application;

[0084] Figure 2 A flowchart of a method for processing a first request provided in an embodiment of the present application;

[0085] Figure 3 A flowchart of another event processing method provided in an embodiment of the present application;

[0086] Figure 4 A schematic diagram of a matching donation event processing flow provided in an embodiment of the present application;

[0087] Figure 5 A schematic diagram of a scenario of a matching donation event processing method provided in an embodiment of the present application;

[0088] Figure 6 A schematic diagram of the structure of an event processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0089] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0090] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.

[0091] Exemplary Methods

[0092] See also Figure 1 , which is a flow chart of an event processing method provided in an embodiment of the present application.

[0093] The event processing method provided in the embodiment of the present application can be applied to the server. In one example, the method can include the following steps: S101-S103.

[0094] S101: Receive a first request, where the first request indicates that the first user requests to participate in a first event.

[0095] In one example, the server may receive a first request sent by a client corresponding to a first user, the first request indicating that the first user requests to participate in a first event. In one example, the client corresponding to the first user may send the first request to the server in response to an event request operation triggered by the first user in a page corresponding to the first event. In another example, the client corresponding to the first user may send the first request to the server in response to the first user completing a task corresponding to the first event.

[0096] The embodiment of the present application does not specifically limit the message format of the first request and the content included in the first request. In one example, the first request may include the identifier of the first user and the identifier of the first event. In another example, the first request may also include other parameters related to the first event, which are not specifically limited in the embodiment of the present application.

[0097] The embodiment of the present application does not specifically limit the first event. The first event may be any event that currently exists, is currently under development, or may appear in the future and can be set in a network platform.

[0098] In one example, the first event may be a resource exchange event, for example, a user exchanges resource A for resource B. The resource mentioned here may be an item or a virtual resource in a network, which is not specifically limited in the embodiment of the present application.

[0099] In another example, the first event may be a matching donation event. Among them: matching donation events are a donation method widely used by public welfare platforms and public welfare organizations. Matching donation events can be initiated using a network platform. In an example, a matching donation event can be understood as after a user performs a corresponding operation, the matching donation object, such as a company, can further perform a corresponding donation behavior based on the operation performed by the user. Matching donation events come in various forms. At present, for matching donation events initiated using a network platform, it is necessary to develop a processing logic corresponding to each matching donation event separately, and the research and development cost is high. Accordingly, the matching donation event cannot be applied on the network platform in a timely manner. By utilizing the solution of the embodiment of the present application, the research and development cost of matching donation events can be effectively reduced.

[0100] S102: According to an event processing framework, obtain at least one processing plug-in corresponding to the first event, each of the processing plug-ins corresponds to a processing step in the event processing framework, the event processing framework includes a plurality of the processing steps, the event processing framework is used to indicate an event processing flow, the event processing flow is applicable to a plurality of events, and the plurality of events include the first event.

[0101] After receiving the first request, the server may process the request to determine whether the first user can successfully participate in the first event, and determine a subsequent processing method according to the determination result. In an embodiment of the present application, the server may process the first request using an event processing framework.

[0102] The event processing framework can be used to indicate the event processing flow. Specifically, the processing framework can include multiple processing steps, and the event processing flow can be reflected as the execution order between the multiple processing steps. In an embodiment of the present application, the event processing framework can be obtained by abstracting the processing flow of multiple events, and the event processing framework can be applicable to multiple events. In other words, the processing flows of the multiple events can all adopt the event processing flow indicated by the event processing framework, or in other words, the event processing flow indicated by the event processing framework can be used to process the multiple events. The multiple events may include a first event, that is, the event processing flow indicated by the event processing framework can be used to process the first event. Therefore, in an embodiment of the present application, the event processing framework can be used to process the first request.

[0103] In the scenario where the first event is a matching donation event, the event processing framework may be a matching donation event processing framework, which may be obtained by abstracting the processing flows of multiple matching donation events, and which may be applicable to multiple matching donation events, which may include the first event.

[0104] The embodiment of the present application does not specifically limit the processing steps included in the event processing framework. In one example, the event processing framework may include one or more of the multiple processing steps such as security verification, budget verification, event information generation, event result notification, and post-event behavior processing. Among them:

[0105] The security check is used to perform a security check on the user's participation in the event to determine whether the user's participation in the event meets the security requirements. In one example, the user's participation in the event can be security checked based on pre-set security check conditions. The embodiment of the present application does not specifically limit the security check conditions, and the security check conditions can be determined according to actual conditions. The security check conditions corresponding to different events can be different or the same, and the embodiment of the present application does not make specific limitations.

[0106] In one example, the security verification condition may include a condition for performing a risk control (referred to as risk control) verification. In another example, the security verification condition may include a condition for verifying the frequency of event participation, for example, it may be verified whether the number of times the same user participates in an event in one day exceeds a preset number.

[0107] Budget verification is used to determine whether the user has sufficient budget to participate in the event. In one example, it can be determined whether the user has sufficient budget to participate in the event based on pre-set budget processing configuration information. The budget processing configuration information is not specifically limited in the embodiment of the present application, and the budget processing configuration information can be determined according to actual conditions. The budget processing configuration information corresponding to different events can be different or the same, and the embodiment of the present application does not make specific limitations.

[0108] In one example, the budget processing configuration information may determine that the user has sufficient budget to participate in the event when the current balance is greater than or equal to the amount required by the user. In another example, other auxiliary information such as the user's attribute information may be combined to determine whether the user has sufficient budget to participate in the event. For example, when the current balance is less than the preset amount, if the user has participated in multiple events within a certain period of time, it is determined that the user does not have sufficient budget to participate in the event. For another example, when the current balance is less than the preset amount, if the user has not participated in an event within a certain period of time, it is determined that the user has sufficient budget to participate in the event.

[0109] Event information generation is used to generate information about user participation in events. The embodiments of the present application do not specifically limit the information about user participation in events, and the information can be determined based on the specific content of the event. Taking the first event in which the first user participates as a matching donation event as an example, in one example, the information about the first user's participation in the first event may include one or more of the time when the first user participated in the first event, the donation content of the first user, the content donated by the matching donation object (e.g., a matching donation enterprise), the donated object, and the like. After a user participates in different events, the information generated may be different.

[0110] After the user successfully participates in the event, the event result notification generates a notification message indicating that the user has successfully participated in the event. The present application embodiment does not specifically limit the notification message, and the notification message can be embodied in one or more of a donation certificate, a medal of honor, or an honorary portrait. The notification message corresponding to different events may be different.

[0111] Post-event behavior processing is used to process the subsequent behavior of the user's successful participation in the event. The embodiment of the present application does not specifically limit the subsequent behavior, and the subsequent behavior can be determined according to actual conditions. The subsequent behavior corresponding to different events may be different. In one example, the subsequent behavior may include, for example, the behavior performed by other objects such as companies that jointly complete the event. In another example, the subsequent behavior may include publishing information related to the event, such as an article, on a public platform.

[0112] As mentioned above, the event processing framework can be applicable to multiple events, and for each of the multiple steps included in the event processing framework, the processing strategy corresponding to each event can be different. In an embodiment of the present application, when the event processing framework is used to process the first request, the server can obtain at least one processing plug-in corresponding to the first event based on the event processing framework, each of which corresponds to a processing step in the event processing framework, and further use the at least one processing plug-in to process the first request.

[0113] In one example, if the event processing framework includes one or more of the multiple processing steps such as security verification, budget verification, event information generation, event result notification, and post-event behavior processing, then the at least one processing plug-in corresponding to the first event may include one or more of the security verification plug-in, budget verification plug-in, event information generation plug-in, event result notification plug-in, and post-event behavior processing plug-in. Among them:

[0114] The security verification plug-in corresponding to the first event can be used to perform security verification on the first user's participation in the first event. For the specific method of performing security verification on the first user's participation in the first event, please refer to the description of the security verification step above, which will not be repeated here.

[0115] The budget verification plug-in corresponding to the first event is used to determine whether the first user has sufficient budget to participate in the first event. For the specific method of determining whether the first user has sufficient budget to participate in the first event, please refer to the description of the budget verification step above, which will not be repeated here.

[0116] The event information generation plug-in corresponding to the first event is used to generate information about the first user's participation in the first event. For information about the first event, please refer to the relevant description part above, and no repeated description will be given here.

[0117] The event result notification plug-in corresponding to the first event is used to generate a notification message, and the notification message is used to indicate that the first user has successfully participated in the first event. For the notification message, please refer to the relevant description part above, and no repeated description is given here.

[0118] The post-event behavior processing plug-in corresponding to the first event is used to process the subsequent behavior of the first user successfully participating in the first event. For the subsequent behavior, please refer to the relevant description part above, and no repeated description is given here.

[0119] In one example, when obtaining at least one processing plug-in corresponding to the first event, each plug-in in the at least one processing plug-in can be obtained in sequence during specific implementation. The embodiment of the present application does not specifically limit the order in which the plug-ins are obtained. In one example, the at least one processing plug-in can be obtained according to the order between the multiple processing steps indicated by the event processing framework. In this way, according to the event processing flow, when a certain processing step is executed, the processing control corresponding to the processing step can be obtained, so that the processing control can be used to perform corresponding processing.

[0120] In an embodiment of the present application, the multiple processing steps can be divided into two types of steps. The first type of steps is a verification step for determining whether the first user can participate in the first event. The first type of steps may include the aforementioned security verification step and / or budget verification step. The second type of steps may be a processing step after determining that the first user can participate in the first event. The second type of steps may include one or more of the aforementioned event information generation step, event result notification step, and post-event behavior processing step. In an embodiment of the present application, the first type of steps may be executed before the second type of steps. When the first type of steps includes multiple processing steps, the order between the multiple processing steps included in the first type of steps is not specifically limited in the embodiment of the present application. Similarly, when the second type of steps includes multiple processing steps, the order between the multiple processing steps included in the second type of steps is not specifically limited in the embodiment of the present application.

[0121] In one example, the security verification step can be performed before the budget verification step. In this case, according to the order between the multiple processing steps indicated by the event processing framework, when obtaining the at least one processing plug-in, the security verification control corresponding to the first event can be obtained first, and then the budget verification plug-in corresponding to the first event can be obtained. After obtaining the budget verification plug-in corresponding to the first event, the processing plug-in corresponding to the aforementioned second type of step corresponding to the first event is obtained. That is: after obtaining the budget verification plug-in corresponding to the first event, one or more processing plug-ins are obtained, including the event information generation plug-in corresponding to the first event, the event result notification plug-in corresponding to the first event, and the post-event behavior processing plug-in corresponding to the first event.

[0122] S103: Process the first request using the at least one processing plug-in.

[0123] After acquiring at least one plug-in corresponding to the first event, the at least one processing plug-in may be used to process the first request. In one example, the at least one processing plug-in may be used to process the first request according to the order of the multiple processing steps indicated by the event processing framework.

[0124] In the case where the aforementioned safety verification step is performed before the budget verification step, S103 may include, for example, Figure 2 S1031-S1033 shown. Figure 2 A flowchart of a method for processing a first request provided in an embodiment of the present application.

[0125] S1031: Using the security verification plug-in, perform a security verification on the first user's participation in the first event.

[0126] Regarding the specific implementation of using the security verification plug-in to perform security verification on the first user's participation in the first event, please refer to the relevant description of the security verification steps above, and no repeated description is made here.

[0127] In one example, if the first user fails to pass the security check when participating in the first event, the server may also send a second notification message to the client corresponding to the first user, and the second notification message is used to indicate that the first user has failed to participate in the first event. Accordingly, the client of the first user may display the second notification message, so that the first user can determine that he has failed to participate in the first event.

[0128] The embodiments of the present application do not specifically limit the specific content included in the second notification message. In one example, the second notification message may include the reason why the first user failed to pass the security check for participating in the first event. For example, the reason may be that the number of times the first user participated in the first event on that day exceeded a preset number. In another example, the reason may be that the first user failed the risk control check.

[0129] In one example, if the first user's participation in the first event fails the security check, the server may no longer execute other steps after the security check in the event processing framework. In a specific example, the server may no longer execute the budget verification step. In this case, the server may also not obtain the budget verification plug-in corresponding to the first event. In other words, the server may obtain the budget verification plug-in after determining that the first user's participation in the first event passes the security check, so as to further execute the budget verification step based on the budget verification plug-in. In this way, the server does not need to obtain the various processing plug-ins corresponding to the first event in advance, but can obtain the processing control corresponding to the processing step when executing a certain processing step according to the event processing flow, so as to use the processing control to perform corresponding processing.

[0130] S1032: After determining that the first user's participation in the first event has passed the security check, determine, through the budget check plug-in, whether the first user has sufficient budget to participate in the first event.

[0131] Regarding the specific implementation of using the budget verification plug-in to determine whether the first user has sufficient budget to participate in the first event, please refer to the relevant description of the budget verification step above, and no repeated description is made here.

[0132] In one example, if the first user does not have enough budget to participate in the first event, the server may also send a third notification message to the client corresponding to the first user, and the third notification message is used to indicate that the first user has failed to participate in the first event. Accordingly, the client of the first user may display the third notification message, so that the first user can determine that he has failed to participate in the first event.

[0133] The embodiment of the present application does not specifically limit the specific content included in the third notification message. In one example, the third notification message may include the reason why the first user failed to pass the security check when participating in the first event, and the reason may be, for example, insufficient budget.

[0134] In one example, if the first user does not have enough budget to participate in the first event, the server may no longer execute other steps after the budget check in the event processing framework. In a specific example, the server may no longer execute the aforementioned second category of steps. In this case, the server may also not obtain the processing plug-in corresponding to the second category of steps. In other words, after determining that the first user has enough budget to participate in the first event, the server may obtain the processing plug-in corresponding to the second category of steps, so as to further execute the second category of steps based on the processing plug-in corresponding to the second category of steps. In this way, the server does not need to obtain the various processing plug-ins corresponding to the first event in advance, but can obtain the processing control corresponding to the processing step when executing a certain processing step according to the event processing flow, so as to use the processing control to perform corresponding processing.

[0135] S1033: After determining that the first user has sufficient budget to participate in the first event, perform one or more of the following: use the event information generation plug-in to generate first information that the first user participates in the first event; or, use the event result notification plug-in to generate a first notification message, and send the first notification message to the client corresponding to the first user, where the first notification message is used to indicate that the first user has successfully participated in the first event; or, use the post-event behavior processing plug-in to process subsequent behaviors of the first user's successful participation in the first event.

[0136] Regarding the specific implementation of using the event information generation plug-in to generate the first information of the first user participating in the first event, reference may be made to the related description of the event information generation step in the foregoing text, and no specific limitation is made here.

[0137] For a detailed description of using the event result notification plug-in to generate the first notification message, please refer to the relevant description of the event result notification step in the previous text, and no repeated description will be made here.

[0138] In an embodiment of the present application, the server sends the first notification message to the client corresponding to the first user. After receiving the first notification message, the client corresponding to the first user can display the first notification message, so that the first user can determine that he has successfully participated in the first event based on the first notification message.

[0139] Regarding the specific implementation of using the post-event behavior processing plug-in to process the subsequent behavior of the first user successfully participating in the first event, please refer to the relevant description of the post-event behavior processing steps in the previous text, and no repeated description will be made here.

[0140] It can be seen from the above description that in the embodiment of the present application, at least one processing plug-in obtained according to the event processing framework can be used to process the first request, and the event processing framework indicates the processing flow of the event, and the event processing framework can be applied to at least one event. Therefore, using the solution of the embodiment of the present application, there is no need to develop corresponding processing logic for each event separately, and multiple events can use the same event processing framework. Therefore, using this solution, the R&D cost of the event can be effectively reduced.

[0141] In one example, the event processing framework can be applied to a second event in addition to the first event. In one example, the second event can also be a matching donation event. In this case, the server can also execute Figure 3 S301-S303 shown, Figure 3 A flowchart of another event processing method provided in an embodiment of the present application.

[0142] S301: Receive a second request, where the second request indicates that a second user requests to participate in the second event.

[0143] S302: According to the event processing framework, obtain a plurality of processing plug-ins corresponding to the second event, each of the plurality of processing plug-ins corresponding to a processing step in the event processing framework.

[0144] S303: Using the plurality of processing plug-ins, process the second request.

[0145] In the embodiment of the present application, the implementation principle of S301-S303 is the same as that of S101-S103. The main difference between S301-S303 and S101-S103 is that at least one processing plug-in obtained in S102 is a processing plug-in corresponding to the first event, which is determined according to the specific content of the first event. And the several processing plug-ins obtained in S302 are processing plug-ins corresponding to the second event, which are determined according to the specific content of the second event.

[0146] Therefore, regarding the specific implementation of S301-S303, reference may be made to the above specific description of S101-S103, and no repeated description will be made here.

[0147] In the embodiment of the present application, since the event processing framework can be applicable to a variety of events, when the server corresponds to several events, these several (for example, M, M is greater than 1) events can use the event processing framework. For R&D personnel, they can develop processing plug-ins corresponding to the aforementioned multiple processing steps according to the adaptability of different events, which effectively reduces the R&D cost of developing the several events.

[0148] The above introduces the event processing method provided in the embodiment of the present application. Next, taking the aforementioned first event and second event as matching donation events as an example, the event processing method provided in the embodiment of the present application is introduced.

[0149] See also Figure 4 , which is a schematic diagram of a matching donation event processing flow provided in an embodiment of the present application. Figure 4 As shown in the figure, the matching donation event processing process includes five processing steps: security verification, matching donation budget verification, matching donation information generation, matching donation result notification, and post-donation behavior processing. The execution order of these five processing steps is: security verification → matching donation budget verification → matching donation information generation → matching donation result notification → post-donation behavior processing.

[0150] Next, combine Figure 5 The donation matching event processing method provided in the embodiment of the present application is introduced.

[0151] See also Figure 5 , Figure 5 A schematic diagram of a scenario of a matching donation event processing method provided in an embodiment of the present application.

[0152] like Figure 5 As shown, the server may include a security verification module, a matching donation budget verification module, a matching donation information generation module, a matching donation result notification module, and a post-donation behavior processing module.

[0153] After the server receives the first request, the security verification module can obtain the security verification plug-in 1 corresponding to the first event from the multiple security verification plug-ins pre-stored on the server. The multiple security verification plug-ins pre-stored on the server may include the security verification plug-in 1 corresponding to the first event and the security verification plug-in 2 corresponding to the second event.

[0154] After the security verification module obtains the security verification plug-in 1 corresponding to the first event, the security verification plug-in 1 corresponding to the first event may be used to perform a security verification on the first user's participation in the first event.

[0155] After the first user participates in the first event and passes the security verification, the matching donation budget verification module can obtain the matching donation budget verification plug-in 1 corresponding to the first event from the multiple matching donation budget verification plug-ins pre-stored on the server. The multiple matching donation budget verification plug-ins pre-stored on the server can include the matching donation budget verification plug-in 1 corresponding to the first event and the matching donation budget verification plug-in 2 corresponding to the second event.

[0156] After obtaining the matching donation budget verification plug-in 1 corresponding to the first event, the matching donation budget verification plug-in 1 corresponding to the first event can be used to determine whether the first user has sufficient matching donation budget to participate in the first event.

[0157] After determining that the first user has sufficient matching donation budget to participate in the first event, the matching donation information generation module can obtain the matching donation information generation plug-in 1 corresponding to the first event from the multiple matching donation information generation plug-ins pre-stored on the server. The multiple matching donation information generation plug-ins pre-stored on the server may include the matching donation information generation plug-in 1 corresponding to the first event and the matching donation information generation plug-in 2 corresponding to the second event.

[0158] After the matching donation information generation module obtains the matching donation information generation plug-in corresponding to the first event, it can generate first matching donation information of the first user participating in the first event.

[0159] Furthermore, the matching donation result notification module can obtain the matching donation result notification plug-in 1 corresponding to the first event from the multiple matching donation result notification plug-ins pre-stored on the server. The multiple matching donation result notification plug-ins pre-stored on the server can include the matching donation result notification plug-in 1 corresponding to the first event and the matching donation result notification plug-in 2 corresponding to the second event.

[0160] After the matching donation result notification module obtains the matching donation result notification plug-in 1 corresponding to the first event, it can generate a first notification message using the matching donation result notification plug-in 1 corresponding to the first event.

[0161] Furthermore, the post-donation behavior processing module can obtain the post-donation behavior processing plug-in 1 corresponding to the first event from the multiple post-donation behavior processing plug-ins pre-stored on the server. Among them, the multiple post-donation behavior processing plug-ins pre-stored on the server may include the post-donation behavior processing plug-in 1 corresponding to the first event and the post-donation behavior processing plug-in 2 corresponding to the second event.

[0162] After the post-donation behavior processing module obtains the post-donation behavior processing plug-in 1 corresponding to the first event, the post-donation behavior processing plug-in 1 can be used to process the subsequent behavior of the first user who successfully participates in the first event.

[0163] The server's processing flow for the second request is similar to the server's processing flow for the first request, and will not be repeated here.

[0164] In one example, in the event processing flow, some processing steps may involve writing the generated data into a database. For example, in the step of generating event information, the generated event information may be written into a database. In another example, in the steps of event result notification and post-donation behavior processing, the generated data may also be written into a database.

[0165] Considering that the server may receive many server requests at the same time, the server may need to write a lot of data into the database at the same time. In this case, in order to ensure that the aforementioned data can be written into the database, when the available resources (such as bandwidth) of the server are insufficient to write the data into the database in parallel, the server can cache part of the data that needs to be written into the database, such as caching it into a cache queue. When the available resources of the server are released, the server can continue to use its available resources to read data from the cache queue and further write the data into the database.

[0166] Exemplary Devices

[0167] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.

[0168] See also Figure 6 , which is a structural diagram of an event processing device provided in an embodiment of the present application. Figure 6 The event processing device shown can be used to execute the event processing method provided by the above method embodiment.

[0169] like Figure 6 As shown, the event processing device 600 includes: a first receiving unit 601, a first acquiring unit 602 and a first processing unit 603.

[0170] A first receiving unit 601 is configured to receive a first request, where the first request indicates that a first user requests to participate in a first event;

[0171] A first acquisition unit 602 is configured to acquire at least one processing plug-in corresponding to the first event according to an event processing framework, each of the processing plug-ins corresponding to a processing step in the event processing framework, the event processing framework includes a plurality of the processing steps, the event processing framework is used to indicate an event processing flow, the event processing flow is applicable to a plurality of events, and the plurality of events include the first event;

[0172] The first processing unit 603 is configured to process the first request using the at least one processing plug-in.

[0173] Optionally, the at least one processing plug-in includes one or more of the following:

[0174] Security verification plug-in, budget verification plug-in, event information generation plug-in, event result notification plug-in and post-event behavior processing plug-in; among them:

[0175] The security verification plug-in is used to perform a security verification on the first user's participation in the first event;

[0176] The budget verification plug-in is used to determine whether the first user has sufficient budget to participate in the first event;

[0177] The event information generation plug-in is used to generate information about the first user participating in the first event;

[0178] The event result notification plug-in is used to generate a notification message, where the notification message is used to indicate that the first user has successfully participated in the first event;

[0179] The post-event behavior processing plug-in is used to process subsequent behaviors of the first user successfully participating in the first event.

[0180] Optionally, the first acquiring unit 602 is configured to:

[0181] The at least one processing plug-in is obtained according to the order between the plurality of processing steps indicated by the event processing framework.

[0182] Optionally, the first acquiring unit 602 is configured to:

[0183] First, the security verification plug-in is obtained, and then the budget verification plug-in is obtained. After obtaining the budget verification plug-in, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

[0184] Optionally, the first processing unit 603 is configured to:

[0185] Using the security verification plug-in, performing a security verification on the first user's participation in the first event;

[0186] After determining that the first user's participation in the first event has passed the security check, determining, through the budget check plug-in, whether the first user has sufficient budget to participate in the first event;

[0187] After determining that the first user has sufficient budget to participate in the first event, performing one or more of the following:

[0188] Using the event information generation plug-in, generating first information of the first user participating in the first event; or,

[0189] Using the event result notification plug-in, generating a first notification message, and sending the first notification message to a client corresponding to the first user, wherein the first notification message is used to indicate that the first user has successfully participated in the first event; or,

[0190] The post-event behavior processing plug-in is used to process subsequent behaviors of the first user who successfully participated in the first event.

[0191] Optionally, the first acquiring unit 602 is configured to:

[0192] After determining that the first user's participation in the first event has passed the security verification, the budget verification plug-in is obtained.

[0193] Optionally, the first acquiring unit 602 is configured to:

[0194] After determining that the first user has sufficient budget to participate in the first event, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

[0195] Optionally, the device further comprises:

[0196] A first sending unit is configured to send a second notification message to a client corresponding to the first user after determining that the first user's participation in the first event has failed a security check, wherein the second notification message is used to indicate that the first user has failed to participate in the first event.

[0197] Optionally, the device further comprises:

[0198] The second sending unit is configured to send a third notification message to a client corresponding to the first user after determining that the first user does not have sufficient budget to participate in the first event, wherein the third notification message is used to indicate that the first user has failed to participate in the first event.

[0199] Optionally, the multiple events further include a second event, and the device further includes:

[0200] A second receiving unit, configured to receive a second request, where the second request indicates that a second user requests to participate in the second event;

[0201] A second acquisition unit is used to acquire, according to the event processing framework, a plurality of processing plug-ins corresponding to the second event, each of the plurality of processing plug-ins corresponding to a processing step in the event processing framework;

[0202] The second processing unit is used to process the second request using the plurality of processing plug-ins.

[0203] Optionally, the first event is a matching donation event.

[0204] Since the device 600 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 600 is based on the same concept as the above method embodiment. Therefore, for the specific implementation of each unit of the device 600, reference can be made to the description part of the above method embodiment, which will not be repeated here.

[0205] The embodiment of the present application also provides a device, the device comprising a processor and a memory;

[0206] The processor is used to execute instructions stored in the memory so that the device executes the event processing method provided by the above method embodiment.

[0207] An embodiment of the present application provides a computer-readable storage medium, including instructions, wherein the instructions instruct a device to execute the event processing method provided by the above method embodiment.

[0208] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the event processing method provided by the above method embodiment.

[0209] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0210] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0211] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. An event processing method, characterized in that: The method comprises: receiving a first request, wherein the first request indicates that a first user requests to participate in a first event; According to the event processing framework, at least one processing plug-in corresponding to the first event is obtained, each of the processing plug-ins corresponds to a processing step in the event processing framework, the event processing framework includes a plurality of the processing steps, the event processing framework is used to indicate an event processing flow, the event processing flow is applicable to a plurality of events, and the plurality of events include the first event; The first request is processed using the at least one processing plug-in.

2. The method according to claim 1, characterized in that: The at least one processing plug-in includes one or more of the following: Security verification plug-in, budget verification plug-in, event information generation plug-in, event result notification plug-in and post-event behavior processing plug-in; among them: The security verification plug-in is used to perform a security verification on the first user's participation in the first event; The budget verification plug-in is used to determine whether the first user has sufficient budget to participate in the first event; The event information generation plug-in is used to generate information about the first user participating in the first event; The event result notification plug-in is used to generate a notification message, where the notification message is used to indicate that the first user has successfully participated in the first event; The post-event behavior processing plug-in is used to process subsequent behaviors of the first user successfully participating in the first event.

3. The method according to claim 2, characterized in that The acquiring, according to the event processing framework, at least one processing plug-in corresponding to the first event includes: The at least one processing plug-in is obtained according to the sequence between the plurality of processing steps indicated by the event processing framework.

4. The method according to claim 3, characterized in that The acquiring the at least one processing plug-in according to the sequence of the plurality of processing steps indicated by the event processing framework comprises: First, the security verification plug-in is obtained, and then the budget verification plug-in is obtained. After obtaining the budget verification plug-in, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

5. The method according to claim 4, characterized in that The processing of the first request by using the at least one processing plug-in includes: Using the security verification plug-in, performing a security verification on the first user's participation in the first event; After determining that the first user's participation in the first event has passed the security check, determining, through the budget check plug-in, whether the first user has sufficient budget to participate in the first event; After determining that the first user has sufficient budget to participate in the first event, performing one or more of the following: generating first information of the first user participating in the first event by using the event information generating plug-in; or, Using the event result notification plug-in, generating a first notification message, and sending the first notification message to a client corresponding to the first user, wherein the first notification message is used to indicate that the first user has successfully participated in the first event; or, The post-event behavior processing plug-in is used to process subsequent behaviors of the first user who successfully participated in the first event.

6. The method according to claim 5, characterized in that The obtaining of the budget verification plug-in includes: After determining that the first user's participation in the first event has passed the security verification, the budget verification plug-in is obtained.

7. The method according to claim 5, characterized in that The obtaining of one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in includes: After determining that the first user has sufficient budget to participate in the first event, one or more processing plug-ins among the event information generation plug-in, the event result notification plug-in, and the post-event behavior processing plug-in are obtained.

8. The method according to claim 5, characterized in that The method further comprises: After determining that the first user's participation in the first event has failed the security check, a second notification message is sent to a client corresponding to the first user, where the second notification message is used to indicate that the first user has failed to participate in the first event.

9. The method according to claim 5, characterized in that The method further comprises: After determining that the first user does not have sufficient budget to participate in the first event, a third notification message is sent to a client corresponding to the first user, where the third notification message is used to indicate that the first user has failed to participate in the first event.

10. The method according to claim 1, characterized in that The plurality of events further includes a second event, and the method further includes: receiving a second request, wherein the second request indicates that a second user requests to participate in the second event; According to the event processing framework, obtaining a plurality of processing plug-ins corresponding to the second event, each of the plurality of processing plug-ins corresponding to a processing step in the event processing framework; The second request is processed using the plurality of processing plug-ins.

11. The method according to any one of claims 1 to 10, characterized in that: The first event is a matching donation event.

12. An event processing device, characterized in that: The device comprises: A first receiving unit, configured to receive a first request, wherein the first request indicates that a first user requests to participate in a first event; A first acquisition unit is configured to acquire, according to an event processing framework, at least one processing plug-in corresponding to the first event, each of the processing plug-ins corresponding to a processing step in the event processing framework, the event processing framework includes a plurality of the processing steps, the event processing framework is used to indicate an event processing flow, the event processing flow is applicable to a plurality of events, and the plurality of events include the first event; The first processing unit is configured to process the first request using the at least one processing plug-in.

13. A device, characterized in that: The device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the device performs the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 11.