Business processing method, system and device, electronic equipment and storage medium

By using the configuration method of event bus and processing components in the business processing system in the digital service technology field, the problem of technicians need to rewrite code is solved, and the effect of reducing business development time and improving efficiency is achieved.

CN120029707APending Publication Date: 2025-05-23BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510126103.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-27
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the field of digital service technology, technicians need to rewrite code for the same processing process when developing different businesses, resulting in too long business development time and low development efficiency.

Method used

By providing a business processing method and system, the running order of processing components is configured according to the business processing flow of the pending services, avoiding rewriting code.

Benefits of technology

This reduces business development time and improves business development efficiency, so that when launching different businesses, you only need to reconfigure the running order of processing components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029707A_ABST
    Figure CN120029707A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a business processing method, system and device, electronic equipment and a storage medium, and relates to the technical field of digital services, and the method comprises the steps that a first processing component carries out business processing on received data according to a business processing flow of a to-be-processed business to obtain a processing result; sending the obtained processing result to an event bus; the event bus obtains a processing result, and if the first processing component is not the last processing component in the operation sequence, the processing result is sent to the next processing component of the first processing component in the operation sequence so as to operate the next processing component; and taking the processing result of the last processing component in the operation sequence as a target processing result of the to-be-processed business. When different businesses need to be online, only the operation sequence of the processing components needs to be configured again according to the business processing flow, so that the business development time is shortened, and the business development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital service technology, and in particular to a business processing method, system, device, electronic equipment and storage medium. Background Art

[0002] In the field of digital service technology, technicians can develop businesses, that is, write codes according to the business processing flow of the business. Running the written code can launch the business on the service platform. For example, the service platform can be a video platform that provides video services, a shopping platform that provides online shopping services, etc.; the business can be a marketing activity to be launched by the service platform, a questionnaire survey to be conducted, etc. The marketing activity can be a full-reduction activity, a lucky draw activity, etc. If different businesses are launched on the service platform, such as full-reduction activities and lucky draw activities, the business processing flow of the full-reduction activity may include: issuing vouchers to users when the user's shopping amount reaches a specified amount; the business processing flow of the lucky draw activity may include: providing users with a lucky draw opportunity when the user's shopping amount reaches a specified amount. Obviously, whether the user participates in the full-reduction activity or the lucky draw activity, the service platform needs to "determine whether the user's shopping amount reaches the specified amount." That is, the business processing flows of different businesses can have the same processing flow or different processing flows.

[0003] However, in the process of developing different businesses, technicians still need to rewrite the code for the same processing flow of different businesses, that is, the already written code needs to be rewritten, which takes up a lot of business development time. As a result, the business development time is too long and the development efficiency is low. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a service processing method, system, device, electronic device and storage medium to reduce service development time and improve service development efficiency. The specific technical solution is as follows:

[0005] In a first aspect of the present invention, a service processing method is provided, the method comprising:

[0006] Obtaining the processing result of the currently running processing component; wherein the processing result of a processing component is obtained based on the following method: performing business processing on the data received by the processing component according to the business processing flow of the business to be processed, and obtaining the processing result of the processing component; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed; if the currently running processing component is not the last processing component in the running order, sending the processing result to the next processing component of the currently running processing component in the running order to run the next processing component; returning to execute the step of obtaining the processing result of the currently running processing component until the processing result of the last processing component in the running order is obtained as the target processing result of the business to be processed.

[0007] Optionally, if the currently running processing component is not the last processing component in the running sequence, sending the processing result to the next processing component of the currently running processing component in the running sequence, including: if the currently running processing component is not the last processing component in the running sequence, detecting whether the data format of the processing result is a specified format; wherein the specified format is: a data format that can be processed by the next processing component of the currently running processing component in the running sequence; when the data format of the processing result is not the specified format, formatting the processing result according to the specified format; and sending the format-converted processing result to the next processing component of the currently running processing component in the running sequence.

[0008] Optionally, the method also includes: in the case of receiving a data statistics instruction carrying a data statistics cycle, each time the data statistics cycle is reached, counting the number of processing results of each category obtained in a first time period, and obtaining the data statistics result of the data statistics cycle reached this time; wherein, the first time period is: the time period from the online time when the service to be processed is online to the data statistics cycle reached this time; or, in the case of receiving a data statistics instruction indicating real-time data statistics, after each processing result is obtained, counting the number of processing results of each category obtained in a second time period, and obtaining the data statistics result when the processing result is obtained this time; wherein, the second time period is: the time period from the online time to the time when the processing result is obtained this time.

[0009] Optionally, the method also includes: in the case of receiving a number counting instruction carrying a number counting cycle, each time the number counting cycle is reached, counting the number of processing results of each processing component obtained within a third time period, and obtaining the number counting result of the number counting cycle reached this time; wherein the third time period is: the time period from the online time when the service to be processed is online to the number counting cycle reached this time; or, in the case of receiving a number counting instruction indicating real-time number counting, after each processing result is obtained, counting the number of processing results of each processing component obtained within a fourth time period, and obtaining the number counting result when the processing result is obtained this time; wherein the fourth time period is: the time period from the online time to the time when the processing result is obtained this time.

[0010] Optionally, the method also includes: when receiving a first modification instruction for the processing components included in the business processing flow, modifying the processing components included in the business processing flow according to a first modification method carried by the first modification instruction; wherein the first modification method includes at least one of the following: adding processing components included in the business processing flow, deleting processing components included in the business processing flow, and adjusting the running order of processing components included in the business processing flow.

[0011] Optionally, a processing component includes: a code template determined based on the business processing flow; a code template is used to: perform business processing on data received by the processing component to which the code template belongs according to a code preset in the code template; the business processing flow also indicates: the processing order of the code template included in each processing component on the data received by the processing component; performing business processing on the data received by the processing component according to the business processing flow of the business to be processed to obtain the processing result of the processing component includes: using the code templates included in the processing component in sequence according to the processing order corresponding to the processing component to perform business processing on the data received by the processing component to obtain the processing result of the processing component.

[0012] Optionally, the method also includes: when a second modification instruction for a code template in any processing component is obtained, modifying the processing component according to a second modification method carried by the second modification instruction; wherein the second modification method includes at least one of the following: adding a code template included in the processing component; deleting a code template included in the processing component; adjusting the processing order of each code template included in the processing component.

[0013] Optionally, a processing component is obtained based on the following method: obtaining the code templates selected by the target personnel in the display interface according to the business processing flow, and the selection order of the code templates selected by the target personnel; wherein the display interface displays the identifiers of all code templates; and integrating the selected code templates according to the selection order to obtain the processing component.

[0014] In a second aspect of the implementation of the present invention, a business processing system is provided, which includes an event bus and multiple processing components, wherein: the first processing component among the multiple processing components is used to perform business processing on received data according to the business processing flow of the business to be processed to obtain a processing result; and send the obtained processing result to the event bus; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed; the event bus is used to obtain the processing result; if the first processing component is not the last processing component in the running order, the processing result is sent to the next processing component of the first processing component in the running order to run the next processing component; until the processing result of the last processing component in the running order is obtained as the target processing result of the business to be processed.

[0015] In a third aspect of the present invention, a service processing device is provided, the device comprising:

[0016] The data acquisition module is used to obtain the processing result of the currently running processing component; wherein the processing result of a processing component is obtained based on the following method: according to the business processing flow of the business to be processed, the business processing is performed on the data received by the processing component to obtain the processing result of the processing component; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed;

[0017] A data forwarding module, configured to send the processing result to a next processing component of the currently running processing component in the running sequence if the currently running processing component is not the last processing component in the running sequence, so as to run the next processing component;

[0018] The result acquisition module is used to return to the step of executing the step of acquiring the processing result of the currently running processing component until the processing result of the last processing component in the running sequence is acquired as the target processing result of the business to be processed.

[0019] Optionally, the data forwarding module is specifically used to: if the currently running processing component is not the last processing component in the running sequence, detect whether the data format of the processing result is a specified format; wherein the specified format is: a data format that can be processed by the next processing component of the currently running processing component in the running sequence; when the data format of the processing result is not the specified format, convert the format of the processing result according to the specified format; and send the format-converted processing result to the next processing component of the currently running processing component in the running sequence.

[0020] Optionally, the device also includes: a data statistics module, which is used to, when receiving a data statistics instruction carrying a data statistics period, count the number of processing results of each category obtained in a first time period each time the data statistics period is reached, and obtain the data statistics result of the data statistics period reached this time; wherein, the first time period is: the time period from the online time when the to-be-processed business is online to the data statistics period reached this time; or, when receiving a data statistics instruction indicating real-time data statistics, after each processing result is obtained, count the number of processing results of each category obtained in a second time period to obtain the data statistics result when the processing result is obtained this time; wherein, the second time period is: the time period from the online time to the time when the processing result is obtained this time.

[0021] Optionally, the device also includes: a number statistics module, which is used to, when receiving a number statistics instruction carrying a number statistics cycle, count the number of processing results of each processing component obtained within a third time period each time the number statistics cycle is reached, and obtain the number statistics result of the number statistics cycle reached this time; wherein the third time period is: the time period from the online time when the service to be processed is online to the number statistics cycle reached this time; or, when receiving a number statistics instruction indicating real-time number statistics, after each processing result is obtained, count the number of processing results of each processing component obtained within a fourth time period to obtain the number statistics result when the processing result is obtained this time; wherein the fourth time period is: the time period from the online time to the time when the processing result is obtained this time.

[0022] Optionally, the device also includes: a first modification module, which is used to modify the processing components included in the business processing flow according to a first modification method carried by the first modification instruction when receiving a first modification instruction for the processing components included in the business processing flow; wherein the first modification method includes at least one of the following: adding processing components included in the business processing flow, deleting processing components included in the business processing flow, and adjusting the running order of processing components included in the business processing flow.

[0023] Optionally, a processing component includes: a code template determined based on the business processing flow; a code template is used to: perform business processing on data received by the processing component to which the code template belongs according to a code preset in the code template; the business processing flow further indicates: a processing order of the code template included in each processing component on the data received by the processing component;

[0024] The processing component performs business processing on the data received by the processing component according to the business processing flow of the business to be processed, and the step of obtaining the processing result of the processing component includes:

[0025] The processing component uses the code templates included in the processing component in sequence according to the processing order corresponding to the processing component, performs business processing on the data received by the processing component, and obtains the processing result of the processing component.

[0026] Optionally, the device also includes: a second modification module, which is used to modify the processing component according to a second modification method carried by the second modification instruction when a second modification instruction for a code template in any processing component is obtained; wherein the second modification method includes at least one of the following: adding a code template included in the processing component; deleting a code template included in the processing component; and adjusting the processing order of each code template included in the processing component.

[0027] Optionally, a processing component is obtained based on the following method: obtaining the code templates selected by the target personnel in the display interface according to the business processing flow, and the selection order of the code templates selected by the target personnel; wherein the display interface displays the identifiers of all code templates; and integrating the selected code templates according to the selection order to obtain the processing component.

[0028] In the fourth aspect of the implementation of the present invention, an electronic device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to implement any business processing method described in the first aspect when executing the program stored in the memory.

[0029] In a fifth aspect of the implementation of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the business processing method described in any one of the first aspects is implemented.

[0030] In another aspect of the implementation of the present invention, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the business processing methods described in the first aspect.

[0031] A business processing system provided by an embodiment of the present invention comprises a first processing component that performs business processing on received data according to a business processing flow of a business to be processed to obtain a processing result; the obtained processing result is sent to an event bus; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed; the event bus obtains the processing result; if the first processing component is not the last processing component in the running order, the processing result is sent to the next processing component of the first processing component in the running order to run the next processing component; until the processing result of the last processing component in the running order is obtained as the target processing result of the business to be processed.

[0032] Based on the above processing, the business processing flow indicates the running order of each processing component that performs business processing on the business to be processed. After the first processing component receives the data, it performs business processing on the received data according to the business processing flow to obtain the processing result. Then, the event bus can forward the processing result of the first processing component according to the business processing flow, so that in the running order, the next processing component of the first processing component continues to process the data received by itself according to the business processing flow. This cycle is repeated until the processing result of the last processing component in the running order is obtained, that is, the target processing result of the business to be processed is obtained. Obviously, when developing a business, it is only necessary to configure the running order of the processing components according to the business processing flow of the business, without rewriting the code for the processing flow. Naturally, when launching different businesses, it is only necessary to reconfigure the running order of the processing components according to the business processing flow, which can reduce business development time and improve business development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0034] Figure 1 A structural diagram of a business processing system provided by an embodiment of the present invention;

[0035] Figure 2 A first flow chart of a business processing method provided by an embodiment of the present invention;

[0036] Figure 3 A second flow chart of the service processing method provided by an embodiment of the present invention;

[0037] Figure 4 A first schematic diagram of a service processing method provided by an embodiment of the present invention;

[0038] Figure 5 A second schematic diagram of the service processing method provided by an embodiment of the present invention;

[0039] Figure 6 A structural diagram of a service processing device provided by an embodiment of the present invention;

[0040] Figure 7 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0042] In the prior art, technicians can develop services, that is, write codes according to the business process flow of the services, and run the written codes to launch the services on the service platform. For example, the services that need to be launched can be modern marketing activities, such as full-reduction activities, lottery activities, etc. Launching modern marketing activities can meet user needs and improve user retention, that is, it can meet market demand. The service platform that needs to launch modern marketing activities can also be called a modern marketing activity platform. Modern marketing activity platforms can be video platforms, shopping platforms, etc.

[0043] When responding to market demand, modern marketing activity platforms face the problems of loose connection and repeated development between systems. That is, even if different activities have part of the same processing flow, technicians need to write corresponding codes for different activities respectively, that is, the same processing flow also needs to be rewritten. This development mode can be called a tightly coupled development mode. As a result, every time a new business is developed, or when the original business is adjusted, a large amount of modification and testing of the business code is required, which consumes a lot of time and manpower costs, is time-consuming and labor-intensive, and the efficiency of development activities is not high. This will make the modern marketing activity platform unable to respond to market demand quickly, that is, unable to respond to market changes quickly. And with the diversification and ambiguity of user needs, if users repeatedly participate in old modern marketing activities, it will lead to poor user experience and reduce the effect of modern marketing activities. Therefore, it is necessary to launch new modern marketing activities. As mentioned above, when developing activities based on traditional methods (that is, using a tightly coupled development mode), the development time of the activities is too long and the development efficiency is not high, which makes it difficult for the service platform (which can be called a traditional platform) that develops activities based on traditional methods to efficiently arrange and manage activities. And because the code is highly coupled, it also makes it difficult to maintain and upgrade the business.

[0044] In order to solve the above problems, the embodiment of the present invention provides a business processing system. Figure 1 , Figure 1 A structural diagram of a business processing system provided in an embodiment of the present invention, the business processing system includes an event bus 101 and multiple processing components 102. The business processing system orchestrates and manages each processing component 102 through the event bus 101, and the business processing system can adopt a microservice architecture to decouple the processing components 102. The event bus 101 and each processing component 102 can be deployed in the same electronic device; or, they can also be deployed in different electronic devices. The present invention is not limited to this. When the event bus 101 and the processing components 102 are deployed in different electronic devices, the different electronic devices interact through the routing device, thereby realizing the interaction between the event bus 101 and the processing components 102.

[0045] In this embodiment, the currently running processing component 102 is specifically the first processing component 1021 as an example for description.

[0046] The first processing component 1021 is used to perform business processing on the received data according to the business processing flow of the business to be processed, and obtain the processing result; send the obtained processing result to the event bus 101; the business processing flow indicates: the operation order of each processing component 102 that performs business processing on the business to be processed;

[0047] The event bus 101 is used to obtain the processing result; if the first processing component 1021 is not the last processing component 102 in the running sequence, the processing result is sent to the next processing component 102 of the first processing component 1021 in the running sequence to run the next processing component 102; until the processing result of the last processing component 102 in the running sequence is obtained as the target processing result of the business to be processed.

[0048] Based on the business processing system provided by the embodiment of the present invention, the business processing flow indicates the running order of each processing component that performs business processing on the business to be processed. After the first processing component receives the data, it performs business processing on the received data according to the business processing flow to obtain the processing result. Then, the event bus can forward the processing result of the first processing component according to the business processing flow, so that in the running order, the next processing component of the first processing component continues to process the data received by itself according to the business processing flow. This cycle is repeated until the processing result of the last processing component in the running order is obtained, that is, the target processing result of the business to be processed is obtained. Obviously, when developing a business, it is only necessary to configure the running order of the processing components according to the business processing flow of the business, without having to rewrite the code for the processing flow. Naturally, when different businesses are to be launched, it is only necessary to reconfigure the running order of the processing components according to the business processing flow, which can reduce business development time and improve business development efficiency.

[0049] Based on the same inventive concept, an embodiment of the present invention further provides a business processing method, which can be applied to an event bus, and the event bus can be the event bus 101 in the above-mentioned business processing system.

[0050] See also Figure 2 , Figure 2 A first flow chart of a service processing method provided by an embodiment of the present invention, the method may include the following steps:

[0051] S201: Obtain the processing result of the currently running processing component.

[0052] Among them, the processing result of a processing component is obtained based on the following method: according to the business processing flow of the business to be processed, the data received by the processing component is processed to obtain the processing result of the processing component; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed.

[0053] S202: If the currently running processing component is not the last processing component in the running sequence, the processing result is sent to the next processing component of the currently running processing component in the running sequence to run the next processing component.

[0054] S203: Return to the step of obtaining the processing result of the currently running processing component, until the processing result of the last processing component in the running sequence is obtained as the target processing result of the business to be processed.

[0055] Based on the business processing method provided by the embodiment of the present invention, the business processing flow indicates the running order of each processing component that performs business processing on the business to be processed. After the first processing component receives the data, it performs business processing on the received data according to the business processing flow to obtain the processing result. Then, the event bus can forward the processing result of the first processing component according to the business processing flow, so that in the running order, the next processing component of the first processing component continues to process the data received by itself according to the business processing flow. This cycle is repeated until the processing result of the last processing component in the running order is obtained, that is, the target processing result of the business to be processed is obtained. Obviously, when developing a business, it is only necessary to configure the running order of the processing components according to the business processing flow of the business, without having to rewrite the code for the processing flow. Naturally, when different businesses are to be launched, it is only necessary to reconfigure the running order of the processing components according to the business processing flow, which can reduce business development time and improve business development efficiency.

[0056] With respect to step S201, the event bus can interact with multiple processing components, and forward, count, and process the processing results of the received processing components. For example, the event bus and the processing components can be deployed in different electronic devices. After the processing component performs business processing on the received data and obtains the processing result, the electronic device deployed with the processing component can send the processing result to the electronic device deployed with the event bus (which can be called the central device) through the routing device. When the central device receives the processing result, the event bus deployed in the central device obtains the processing result.

[0057] Each processing component can perform business processing on the data it receives according to the business processing flow. A processing component can perform a preset type of business processing and realize a preset type of function. For example, a processing component may include code pre-written by a developer and can be called through an interface. When developing different businesses, the target personnel can directly call the processing component as required. The target personnel and the developer can be the same person or different persons, and the present invention is not limited to this. The specific manner in which each processing component performs business processing on the data it receives according to the business processing flow can be found in the detailed description of the subsequent embodiments and will not be repeated here.

[0058] For example, the processing component may be an order component that responds to the user's order operation, that is, the order component performs business processing on the order operation to realize the order function. For example, the order function may include generating an order, completing the payment operation, notifying the warehouse to ship the goods, etc.

[0059] For example, the processing component can be a fission component that responds to the user's fission operation. For example, the fission component can count the number of times the user shares the active interface, count the number of likes from other users for the interface shared by the user, etc.

[0060] For example, the processing component may be a reward component for issuing rewards to users. For example, through the reward component, it is possible to detect whether the user is eligible to receive the reward, issue physical rewards to the user, issue virtual rewards to the user, etc.

[0061] Obviously, the functions that can be realized by the processing component are diverse and can be flexibly set according to the business requirements in the actual application scenario. For example, the processing component can also be a registration component that manages user registration information, a ranking component that obtains user rankings and maintains activity ranking data, a security component that detects whether a user is a malicious user, etc. The present invention does not specifically limit this.

[0062] Obviously, the actual scenario may include multiple processing components. When processing the pending business to obtain the target processing result corresponding to the pending business, it may not be necessary to call all the processing components. That is, when processing the pending business, the running order of each processing component indicated by the business processing flow may only include the running order of some processing components.

[0063] For example, processing components may include order components, fission components, reward components, and registration components. If the business processing flow is: after the user places an order, the user is allowed to fission; after the user fission is completed, the user is rewarded. The running order indicated by the business processing flow is: order component-fission component-reward component.

[0064] If the business process flow is: after the user successfully registers, the user is allowed to place an order; after the user places the order, the user is rewarded. Then the running order indicated by the business process flow is: registration component-order component-reward component. It can be understood that the specific business process flow can be flexibly set according to the business needs in the actual application scenario, and the present invention does not specifically limit this.

[0065] The currently running processing component is: among the multiple processing components, the processing component currently used to perform business processing on the business to be processed. For ease of description, the following description is made by taking the currently running processing component as the first processing component as an example. It can be understood that the first processing component can be any processing component among the multiple processing components, and the present invention does not specifically limit this.

[0066] The pending business may be a business that is actively triggered by the user, such as a user actively clicking an option in the promotion interface of the business to trigger the pending business. The pending business may also be a business that does not require user triggering, such as being automatically triggered when the business triggering time is reached. The specific triggering method of the pending business may be flexibly set according to the business requirements in the actual application scenario, and the present invention does not specifically limit this.

[0067] The first processing component may be: the first processing component that processes the business to be processed (hereinafter referred to as the starting component); or it may be other processing components (hereinafter referred to as intermediate components).

[0068] The data received by the starting component is the data that triggers the pending service. Taking the case where the user actively triggers the pending service as an example, the data that triggers the pending component is the interactive information of the user triggering the pending service. The specific type of interactive information is also determined by the service processing flow.

[0069] If the business to be processed is a lucky draw, the business processing flow includes: when the user's shopping amount reaches a specified amount, provide the user with a lucky draw opportunity. Obviously, to trigger the lucky draw, the user needs to shop first. And it can be understood that when the user is shopping, he needs to click the "order" or "buy" button for the product first, and then enter the payment password. After the payment is successful, the shopping is completed. It can be seen that the interactive information that triggers the lucky draw at this time is: the information generated after the user clicks the "order" or "buy" button for the product. At this time, it can be said that the user has placed an order; the interactive information that triggers the lucky draw is the order information of the user's order operation. The order information may include the UID (User IDentifier) ​​of the user who triggered the order operation, the time when the order operation was triggered, the product identification of the ordered product, the total amount of the ordered product, etc., but is not limited to this.

[0070] In actual scenarios, users can input a variety of interactive information into the service platform. The service platform can determine whether the interactive information is information that triggers the pending business based on the type of interactive information received. If the interactive information is triggered in the promotion interface of the pending business, the service platform can determine that the interactive information triggers the pending business and forward the interactive information to the starting component. As in the above example, when the service platform receives the user's order information, it can send the order information to the order component.

[0071] The data received by the intermediate component can be obtained based on the processing result of the previous processing component of the intermediate component in the running order. If the running order is: order component-fission component-reward component, then the fission component and the reward component are both intermediate components; the data received by the fission component is obtained based on the processing result of the order component (hereinafter referred to as the order result); the data received by the reward component is obtained based on the processing result of the fission component (hereinafter referred to as the fission result).

[0072] After the first processing component performs business processing on the received data and obtains the processing result, it can send the obtained processing result to the event bus. For example, the first processing component can add the processing result to the message queue, and the event bus can obtain the earliest added processing result in the current message queue according to the order in which each processing result is added to the message queue. In this way, the first processing component will also send the processing result to the event bus, and the event bus can use the obtained processing result as the current data to be processed. For example, the message queue can be RocketMQ (Rocket Message Queue).

[0073] For step S202 and step S203, when the first processing component is the last processing component in the running sequence, such as the above example, when the running sequence is: registration component-order component-reward component, if the first processing component is the reward component, the processing result of the reward component indicates: the reward has been issued to the user, that is, the business processing result of the user participating in the marketing activity has been obtained. At this time, the processing result of the reward component is: the target processing result obtained by performing business processing on the business to be processed based on the business processing flow.

[0074] In the case where the first processing component is not the last processing component in the running order, as in the above example, if the first processing component is a fission component, the fission result indicates that the user has completed fission. Obviously, the reward has not been issued to the user at this time, that is, the business processing result of the user's participation in the marketing activity has not been obtained, and the fission result needs to be processed further. Therefore, the event bus sends the fission result to the next processing component (i.e., the reward component) of the fission component in the running order to run the reward component.

[0075] At this point, in the running sequence, the next processing component of the first processing component (hereinafter referred to as the component to be run) receives the data and can run the component to be run. That is, the component to be run is used as the new first processing component. The event bus can continue to obtain the processing result of the first processing component and continue to determine whether the first processing component is the last processing component in the running sequence. This cycle is repeated until the processing result of the last processing component in the running sequence is obtained, that is, the target processing result of the business to be processed is obtained, and the business processing of the business to be processed is completed.

[0076] In some embodiments, a processing component includes: a code template determined based on a business processing flow; a code template is used to: perform business processing on data received by the processing component to which the code template belongs according to a code preset in the code template; the business processing flow also indicates: the order in which the code template included in each processing component processes the data received by the processing component.

[0077] Correspondingly, the aforementioned performing business processing on the data received by the processing component according to the business processing flow of the business to be processed to obtain the processing result of the processing component may include the following steps: according to the processing order corresponding to the processing component, using the code templates included in the processing component in sequence to perform business processing on the data received by the processing component to obtain the processing result of the processing component.

[0078] As mentioned above, a processing component can perform a preset type of business processing and realize a preset type of function. It is understandable that in actual scenarios, a type of business processing can include multiple specific business processing methods; a type of function can include multiple specific functions.

[0079] For each processing component, according to a type of function to be implemented by the processing component, multiple code templates (hereinafter referred to as alternative templates) that can be configured in the processing component are determined, and a code template can implement a specific function in this type of function. For example, a technician can use the method specified by the programming syntax to write: a code that can be called through an interface and is used to implement a specific function, that is, a code template is obtained. Then the code template can perform business processing on the data received by the processing component to which the code template belongs according to its own preset code. For example, a type of function may include: supporting the user's order operation; then the specific functions may include: detecting whether the user holds a voucher; detecting whether the user has shopping authority; detecting whether the user has completed payment, etc.

[0080] A processing component can correspond to multiple alternative templates. According to the business processing flow, the function to be implemented by the processing component can be determined, that is, the alternative templates (hereinafter referred to as effective templates) that participate in the business processing of the business to be processed can be determined. The specific functions that can be implemented by the effective template are the functions to be implemented by the processing component. In actual scenarios, it may be possible to obtain the processing results of the processing component by only using some of the alternative templates to process the business to be processed. That is, the number of effective templates in a processing component is determined based on the business processing flow in the actual scenario, which can be one or more. For the specific method of determining the effective template according to the business processing flow, please refer to the detailed introduction of the subsequent embodiments.

[0081] If the processing component can be the aforementioned order component, the alternative templates corresponding to the order component may include: code template 1 for detecting whether the user is a VIP user, code template 2 for detecting whether the user holds a voucher, code template 3 for detecting whether the user has completed payment, code template 4 for notifying the warehouse to prepare the goods, code template 5 for detecting whether the user has completed registration, etc. If the specific function to be implemented by the order component is: if the user is a VIP user, respond to the user's order operation, and notify the warehouse to prepare the goods after the user completes payment. At this time, the processing order corresponding to the order component is: code template 1, code template 3, code template 4. Similarly, if the specific function to be implemented by the order component is: if the user holds a voucher, if the user has completed registration, allow the user to complete the order, and notify the warehouse to prepare the goods after the user completes payment. At this time, the processing order corresponding to the order component is: code template 2, code template 3, code template 4, code template 5.

[0082] If the processing component can be the aforementioned fission component, the alternative templates corresponding to the fission component may include: code template a for detecting whether the user likes the service, code template b for detecting whether the user shares the service with other users, code template c for detecting the number of times other users like the service, etc. If the specific function to be implemented by the fission component is: when the user likes the service, determine that the user fission is complete. At this time, the processing order corresponding to the fission component is: code template a. Similarly, if the specific function to be implemented by the fission component is: when the number of times other users like the service is greater than the specified number, determine that the user fission is complete. At this time, the processing order corresponding to the fission component is: code template b, code template c.

[0083] If the processing component can be the aforementioned reward component, the alternative templates corresponding to the reward component may include: code template A for detecting whether the user meets the reward issuance conditions, code template B for detecting the type of reward obtained by the user, code template C for issuing virtual gifts to the user, code template D for notifying the warehouse to issue physical gifts to the user, code template E for detecting the number of times the user has received the reward, etc. If the specific function to be implemented by the reward component is: when the user meets the reward issuance conditions and the number of times the user has received the reward is not greater than the preset number of times, the user is issued VIP privileges for a specified period of time. At this time, the corresponding processing order of the reward component is: code template A, code template B, code template C, code template E. Similarly, if the specific function to be implemented by the reward component is: when the user meets the reward issuance conditions, the user is issued a physical prize, such as a cup. At this time, the corresponding processing order of the reward component is: code template A, code template B, code template D.

[0084] Obviously, according to the business needs of the actual scenario, the alternative templates corresponding to the processing components can be adjusted; according to the business process flow, the valid templates in the processing components and the processing order of each processing component can also be flexibly determined. The present invention does not specifically limit this.

[0085] For each processing component, according to the business processing flow, determine the valid templates in the processing component and the processing order of each valid template on the data received by the processing component. Then, according to the processing order corresponding to the processing component, the code templates included in the processing component can be used in sequence to perform business processing on the data received by the processing component.

[0086] Exemplarily, each code template may be provided with a position to be filled with data, and after the data is filled in the position to be filled, the code template becomes a complete executable code. The complete executable code is run to obtain the business processing result of the filled data through the code template.

[0087] The first valid template in the processing sequence (hereinafter referred to as the first template) first performs business processing on the data received by the processing component, that is, fills the data received by the processing component into its own to-be-filled position. The first template filled with data is run, that is, the first template performs business processing on the data received by the processing component according to its own preset code to obtain the first data.

[0088] The second valid template in the processing sequence (hereinafter referred to as the second template) fills the first data into its own position to be filled in. The second template filled with the first data is run, that is, the second template performs business processing on the data received by the processing component according to its own preset code to obtain the second data.

[0089] The third valid template in the processing sequence (hereinafter referred to as the third template) fills the second data into its own position to be filled in. The third template filled with the second data is run, that is, the third template performs business processing on the data received by the processing component according to its own preset code to obtain the third data.

[0090] By analogy, that is, according to the processing sequence corresponding to the processing component, the code templates included in the processing component are used in sequence to process the data received by the processing component. The last valid template in the processing sequence performs business processing on the data received by the processing component, and the processing result obtained is: the processing result of the processing component.

[0091] In actual scenarios, the processing order indicated by the business processing flow may also include the logical relationship between valid templates. For example, when the processing result of valid template 1 is x, x is processed by valid template 2; when the processing result of valid template 1 is y, y is processed by valid template 3. Obviously, the logical relationship between valid templates is not limited to this, and the present invention is not limited to this.

[0092] Based on the above processing and the business processing flow, the valid templates of each processing component and the processing order of the valid templates can be determined. That is, the functions of the processing components can be configured according to the business needs of the actual scenario. When developing a business, you can also configure the functions that the processing component itself can achieve according to the business processing flow to achieve more personalized business development. Moreover, when developing a business, you only need to configure the valid templates in each processing component and the processing order of the valid templates according to the business processing flow, and there is no need to rewrite the code template itself. Naturally, when you want to launch different businesses, you only need to reconfigure the valid templates in each processing component and the processing order of the valid templates, without having to write the code template again, which can reduce business development time and improve business development efficiency.

[0093] In some embodiments, a processing component is obtained based on the following method: obtaining the code templates selected by the target personnel in the display interface according to the business processing flow, and the selection order of the target personnel selecting each code template; wherein the display interface displays the identifications of all code templates; and integrating the selected code templates according to the selection order to obtain the processing component.

[0094] The target person may be a technician who develops the business, such as the target person may use a computer to develop the business. The computer used to develop the business and the electronic device for deploying the processing components (hereinafter referred to as the execution device) may be the same device or different devices. In the case where the computer and the execution device are not the same device, the computer may send the identifier of the code template (i.e., the aforementioned valid template) selected by the target person to the execution device via the network, as well as the selection order of each code template. The target person may also be the user to whom the interactive information that triggers the business to be processed in the aforementioned embodiment belongs, and the present invention is not limited to this.

[0095] The candidate templates can be stored in the execution device. After the execution device obtains the identifiers and selection order of the valid templates, it can directly determine the valid template from the candidate templates according to the obtained identifiers; and integrate the valid templates based on the selection order to obtain the processing component.

[0096] A display interface including the identification of all code templates may be displayed on the display screen of the computer. For example, the display interface may include identifications of multiple selectable processing components to be configured; for each processing component to be configured, the identification of the alternative template corresponding to the processing component is displayed in the display area corresponding to the processing component. The target person may make a selection in the display interface according to the business processing flow, such as the target person may click the identification of the code template to be selected displayed in the display interface, check the selection box corresponding to the identification of the selected code template, etc., and the present invention is not limited to this.

[0097] Furthermore, since there can be multiple valid templates in a processing component, the target personnel can select multiple code templates on the display interface for each processing component to be configured. For example, the target personnel can determine the processing order corresponding to the processing component according to the business processing flow, and then select the valid template of the processing component according to the processing order; or, the target personnel can first select the valid template of the processing component, and then sort the selected valid templates according to the processing order corresponding to the processing component, so as to obtain the selection order of the target personnel to select each code template.

[0098] It is understandable that the target person can also input the integration method between valid templates in the display interface. For example, the target person can set: when code template 1 obtains a detection result indicating that the user is a VIP user, the next code template of code template 1 in the processing order is code template 3; when code template 1 obtains a detection result indicating that the user is not a VIP user, the next code template of code template 1 in the processing order is a code template for displaying prompt information, such as the prompt information can be "You are not a VIP user yet, you cannot purchase the current product". Furthermore, for each processing component to be configured, the code templates selected by the target person and belonging to the processing component to be configured can be integrated according to the selection order of the target person, and the integration result is the configured processing component.

[0099] Based on the above processing, the target personnel can develop business through a visual display interface and a simple selection method. The target personnel can operate simply, which can reduce business development time, improve business development efficiency, and save labor costs.

[0100] In some embodiments, the method may further include the following steps: when a second modification instruction for a code template in any processing component is obtained, the processing component is modified according to a second modification method carried by the second modification instruction. The second modification method includes at least one of the following: adding a code template included in the processing component; deleting a code template included in the processing component; and adjusting the processing order of each code template included in the processing component.

[0101] The target person can also input the second modification instruction for the code template in any processing component into the computer in a simple selection manner through the above-mentioned visual display interface.

[0102] If it is necessary to adjust the valid templates in the first processing component, the target person can view the selected code templates corresponding to the first processing component and the selection order of the selected code templates through the visual display interface. Then, the target person can make a selection in the display interface, such as clicking on the logo of the unselected code template to add the code template included in the first processing component; clicking on the logo of the selected code template to delete the code template included in the first processing component; re-sorting the selected code templates to adjust the processing order of the code templates included in the first processing component. Obviously, the specific modification method is not limited to this.

[0103] Based on the above processing, the target personnel can adjust the business through a visual display interface and a simple selection method to add, delete and adjust functions. The target personnel can operate simply, which can reduce the business adjustment time, improve the business adjustment efficiency and save labor costs.

[0104] In some embodiments, the method may further include the following steps: upon receiving a first modification instruction for a processing component included in a business processing flow, modifying the processing component included in the business processing flow according to a first modification method carried by the first modification instruction; wherein the first modification method includes at least one of the following: adding processing components included in the business processing flow, deleting processing components included in the business processing flow, and adjusting the running order of processing components included in the business processing flow.

[0105] The target person can also input the first modification instruction for the processing components included in the business processing flow into the computer in a simple selection manner through the above-mentioned visual display interface.

[0106] If it is necessary to adjust the processing components involved in processing the pending business, the target personnel can view the selected processing components and the selection order of the selected processing components through the visual display interface. Then, the target personnel can make a selection in the display interface, such as clicking on the logo of the unselected processing component to add the processing components included in the business processing flow. Subsequently, the technical staff can also configure the valid templates in the newly added processing components. Alternatively, the target personnel can click on the logo of the selected processing component to delete the processing components included in the business processing flow; alternatively, the target personnel can also re-sort the selected processing components to adjust the running order of the processing components included in the business processing flow. Obviously, the specific modification method is not limited to this.

[0107] Based on the above processing, the target personnel can adjust the business through a visual display interface and a simple selection method to add, delete and adjust functions. The target personnel can operate simply, which can reduce the business adjustment time, improve the business adjustment efficiency and save labor costs.

[0108] In some embodiments, Figure 2 Based on Figure 3 , step S202 may include the following steps:

[0109] S2021: If the currently running processing component is not the last processing component in the running order, check whether the data format of the processing result is a specified format.

[0110] The specified format is: a data format that can be processed by the next processing component of the currently running processing component in the running sequence.

[0111] S2022: When the data format of the processing result is not in the specified format, convert the format of the processing result according to the specified format.

[0112] S2023: Sending the format-converted processing result to the next processing component of the currently running processing component in the running order, so as to run the next processing component.

[0113] It is understandable that the various processing components involved in the present invention are decoupled, that is, there is no close connection between different processing components, which may lead to the problem that different processing components can process different data formats. For example, if the event bus sends the processing result of the order component to the fission component, if the processing result of the order component carries the user's identity as the user's UID, but the data format of the user's identity that the fission component can process is ID (Identity Document), although the user's UID and ID are unique and directly point to the user's identification, the data formats of the two are different. If the event bus directly sends the processing result of the order component to the fission component, the fission component may not be able to process the received data, that is, the business processing process cannot continue.

[0114] Therefore, if the currently running processing component is not the last processing component in the running order, that is, the event bus needs to send the obtained processing result to the component to be run, the event bus detects whether the data format of the obtained processing result is the specified format that can be processed by the component to be run. If the data format of the obtained processing result is not the specified format, the event bus can convert the format of the processing result according to the specified format, and then send the format-converted processing result to the component to be run. In this way, the situation where the component to be run cannot process the received data can be avoided, and the business processing process can proceed normally.

[0115] In some embodiments, when a processing component includes: a code template determined based on a business processing flow, the specified format that the processing component can process, that is, the data format that the first code template can process in the processing sequence corresponding to the processing component.

[0116] In some embodiments, the event bus can also determine the data involved in the business processing of the pending business according to the business processing flow, and then remove the data that is not involved in the business processing of the pending business. For example, the business processing flow indicates: after the user completes the order, the user is rewarded. Obviously, when processing the pending business, it may not be necessary to use data indicating whether the user is a VIP user. If the order information obtained by the event bus carries data indicating whether the user is a VIP user, the event bus can remove the data and send the processing result with the data removed to the reward component. In this way, the amount of data to be sent through the event bus can be reduced, and the efficiency of business processing can be improved.

[0117] The process of format conversion and the process of removing irrelevant data are both considered data cleaning.

[0118] In some embodiments, the method may further include the following steps: upon receiving a data statistics instruction carrying a data statistics cycle, each time the data statistics cycle is reached, counting the number of processing results of each category obtained within a first time period to obtain the data statistics result of the data statistics cycle reached this time; wherein the first time period is: the time period from the time when the service to be processed is online to the data statistics cycle reached this time; or, upon receiving a data statistics instruction indicating real-time data statistics, after each processing result is obtained, counting the number of processing results of each category obtained within a second time period to obtain the data statistics result when the processing result is obtained this time; wherein the second time period is: the time period from the time when the service to be processed is online to the time when the processing result is obtained this time.

[0119] When receiving the data statistics instruction, the event bus can count the obtained processing results according to the category of the processing results. For example, the event bus can classify the processing results pointing to the same user into one category, classify the processing results received on the same day into one category, etc. That is, the event bus has data statistics capabilities. As shown in the aforementioned display interface, a data statistics logo and a selection box for the data statistics method can also be displayed. The target person can select the data statistics logo and select the required data statistics method through the selection box for the data statistics method. Then the event bus can obtain the data statistics instruction carrying the data statistics method. The data statistics method can include: periodic statistics and real-time data statistics.

[0120] When the target person selects periodic statistics, the event bus can receive a data statistics instruction carrying a data statistics period. The event bus can periodically perform statistics on the acquired processing results. For example, the data statistics period is one hour, thirty minutes, etc.; the data statistics period can be a default period, or a period personalized by the target person, which is not limited by the present invention.

[0121] Each time a data statistical cycle is reached, the event bus can determine: the number of processing results of each category obtained in the first time period between the online time of the service to be processed and the data statistical cycle reached this time, that is, the data statistical results of the data statistical cycle reached this time.

[0122] Exemplarily, the event bus can re-count the number of processing results of each category obtained in the first time period to obtain the data statistical results of the data statistical period reached this time. Alternatively, the event bus can also count: the number of processing results of each category obtained in the time period between the last time the data statistical period was reached and the time when the data statistical period is reached this time, as the data adjustment amount; then use the data adjustment amount to update the data statistical results of the last data statistical period reached to obtain the data statistical results of the data statistical period reached this time. That is, the data statistical results of the last data statistical period are updated periodically.

[0123] When the target personnel choose to perform data statistics in real time, the event bus can count the number of processing results of each category obtained in the second time period from the time of going online to the time when the processing results are obtained this time after each processing result is obtained, and obtain the data statistics result when the processing results are obtained this time.

[0124] Exemplarily, the event bus can re-count the number of processing results of each category obtained in the second time period to obtain the data statistics results when the processing results are obtained this time. Alternatively, the event bus can also use the processing results obtained this time to update the data statistics results when the processing results were obtained last time. That is, the data statistics results when the processing results were obtained last time are updated in real time.

[0125] Subsequently, when the event bus receives a data statistics result acquisition request carrying a category from any processing component, it can return the processing result of the category and the data statistics result of the processing result of the category to the processing component that sent the data statistics result acquisition request. That is, the event bus has the event pull capability and can support the event pull request of the processing component. Subsequently, the processing component can perform statistical analysis of big data based on the event pull request, such as obtaining user portraits.

[0126] In some embodiments, the method may further include the following steps: in the case of receiving a number counting instruction carrying a number counting cycle, each time the number counting cycle is reached, counting the number of processing results of each processing component obtained within a third time period, and obtaining the number counting result of the number counting cycle reached this time; wherein the third time period is: the time period from the online time when the service to be processed is online to the number counting cycle reached this time; or, in the case of receiving a number counting instruction indicating real-time number counting, after each processing result is obtained, counting the number of processing results of each processing component obtained within a fourth time period, and obtaining the number counting result when the processing result is obtained this time; wherein the fourth time period is: the time period from the online time to the time when the processing result is obtained this time.

[0127] When receiving the number counting instruction, the event bus can count the obtained processing results according to the processing components to obtain the number of processing results of each processing component. And it can be understood that only the processing components that interact with the event bus have the corresponding number of processing results, that is, the event bus is also counting the number of processing components that interact with itself. That is, the event bus has the ability to count numbers.

[0128] As shown in the above display interface, a number counting mark and a selection box for the number counting method can also be displayed. The target person can select the number counting mark and select the required number counting method through the selection box for the number counting method. Then the event bus can obtain the data counting instruction carrying the number counting method. The number counting method can include: periodic statistics and real-time number counting. The number counting method and the above data counting method can be the same or different, and the present invention is not limited to this.

[0129] In the case where the target person selects periodic statistics, the event bus can receive a number statistics instruction carrying a number statistics cycle. The event bus can periodically count the number of processing results of each processing component obtained. For example, the number statistics cycle can be one hour, two hours, etc.; the data statistics cycle can be a default cycle, or a cycle personalized by the target person; the number statistics cycle and the data statistics cycle can be the same or different, and the present invention is not limited to this.

[0130] Each time a number counting cycle is reached, the event bus can determine: the number of processing results of each processing component obtained in the third time period from the online time to the number counting cycle reached this time, that is, the number counting result of the number counting cycle reached this time.

[0131] Exemplarily, the event bus can re-count the number of processing results of each processing component obtained in the third time period to obtain the number statistics result of the number statistics cycle reached this time. Alternatively, the event bus can also count: the number of processing results of each processing component obtained in the time period between the last time the number statistics cycle was reached and the time when the number statistics cycle is reached this time, as the number adjustment amount; then use the number adjustment amount to update the number statistics result of the last number statistics cycle reached, and obtain the number statistics result of the number statistics cycle reached this time. That is, the number statistics result of the last number statistics cycle is periodically updated.

[0132] When the target personnel choose to perform real-time number statistics, the event bus can count the number of processing results of each processing component obtained in the fourth time period from the time of going online to the time when the processing results are obtained this time after each processing result is obtained, and obtain the number statistics result when the processing results are obtained this time.

[0133] Exemplarily, the event bus can re-count the number of processing results of each processing component obtained in the fourth time period to obtain the number statistics result when the processing result is obtained this time. Alternatively, the event bus can also use the processing result obtained this time to update the number statistics result when the processing result was obtained last time. That is, the number statistics result when the processing result was obtained last time is updated in real time.

[0134] Later, the target personnel can view the statistical results of the event bus and analyze the current operation status of the event bus based on the statistical results. For example, if the event bus rarely interacts with the order component, the operation of the order component may have failed. The target personnel can check and maintain the order component in time to improve the stability of the entire business processing system.

[0135] In some embodiments, the business processing system may also include a panel for displaying the operating status of the service platform and the business processing system, such as a panel that can be displayed on the display screen of a computer used by the target person. The business processing system may also include a statistical module for statistically analyzing the data involved in the operation of the service platform and the business processing system, such as collecting interactive information input by users to the service platform and information displayed by the service platform to users (hereinafter collectively referred to as front-end information) through page pingback (broadcast); and collecting processing results of processing components (hereinafter collectively referred to as back-end information) through back-end pingback. Subsequently, the front-end information and back-end information may be displayed in the panel, or the collected front-end information and back-end information may be stored in a preset database. Storing the front-end information and back-end information may also be referred to as event logging. Subsequently, the event log may be analyzed to optimize the user experience and the design of the business processing flow of the subsequently developed business.

[0136] In some embodiments, when developing a business, the target personnel can also input the business tag of the business into the event bus. Subsequently, when the event bus receives a tag acquisition request sent by any processing component, the event bus can return the business tag of the business to the processing component that sent the tag acquisition request, thereby realizing the business requirement of acquiring the business tag.

[0137] See also Figure 4 , Figure 4 The first principle diagram of the business processing method provided by the embodiment of the present invention. The aforementioned business processing flow can also be called business rules. Figure 4 As shown, the user uses the client to place an order, triggering the pending business. The order component determines whether the user meets the activity participation conditions based on its own valid template and the user's crowd conditions. For example, if the business processing flow includes: only VIP users can place an order, that is, the activity participation condition is: the user who triggers the pending business must be a VIP user. Then the crowd condition corresponding to the order component indicates: whether the user who triggers the pending business is a VIP user.

[0138] After determining that the user meets the conditions for participating in the activity and the user completes the payment, the order component injects the order completion event into the event bus, that is, Figure 4 Injection of events (order, order completion) in the order component. The order component supports the ability of users to complete payment and shopping, that is, the order capability; the order completion event is an event indicating that the user has completed the order based on the order monitoring capability of the order component, that is, the processing result of the order component. Event injection means that the processing component in the above embodiment sends the processing result to the event bus based on the message queue.

[0139] Then, the event bus determines that the next processing component of the order component is the fission component in the running order according to the business processing flow of the business to be processed, and sends the processing result of the order component (i.e., the order completion event) to the fission component. The fission component obtains the order completion event from the event bus, i.e. Figure 4 Then, the fission component determines whether the user meets the fission conditions based on its own valid template and the user's crowd conditions. For example, if the business processing flow includes: only users who have placed orders can perform fission, that is, the fission condition is: the user who performs fission must complete the order. Then the crowd condition corresponding to the fission component indicates: whether the user who performs fission has completed the order.

[0140] If the user meets the fission conditions, the user can obtain fission qualifications, that is, the user is allowed to invite other users to participate in the activity, such as inviting other users to like the activity. When the fission component monitors that the user's fission result meets the conditions, such as inviting a specified number of other users to like the activity, the fission component injects the fission completion event into the event bus, that is, Figure 4 The trigger event (completing the grouping) in the , instructs the user to complete the grouping. The fission component supports the user's ability to perform fission, namely, the fission capability.

[0141] Then, the event bus determines that the next processing component of the fission component in the running order is the reward component according to the business processing flow, and sends the processing result of the fission component (i.e., the fission completion event) to the reward component. The reward component obtains the fission completion event from the event bus, i.e. Figure 4 Then, the reward component determines whether the user meets the reward conditions based on its own valid template and the user's crowd conditions. For example, if the business process includes: only users who have received rewards no more than 3 times can receive rewards, that is, the reward condition is: the number of times the user has received rewards must not exceed 3 times. Then the crowd condition corresponding to the reward component indicates: whether the number of times the user has received rewards is greater than 3 times.

[0142] If the user meets the reward conditions, the user can obtain the reward qualification, that is, the user is allowed to receive the reward. For example, the user can draw the preset rewards in the prize pool through a lottery. The preset rewards set in the prize pool can be rewards that maximize the revenue of the service platform determined by AB testing. This way of setting rewards is the AB capability of the reward component. After the user draws the reward, the reward component can issue the user the reward drawn. Then, the reward component can inject the reward completion event into the event bus, that is, Figure 4 The trigger event (incentive completion) in indicates that the user has received the reward. The ability of the reward component to issue rewards is the core capability.

[0143] The ability of the event bus to transmit messages between different processing components can be called event push capability. The event bus can also have the event pull capability, data statistics capability, number statistics capability, etc. in the aforementioned embodiments, and the present invention is not limited to this.

[0144] Based on the above processing, the business processing flow indicates the running order of each processing component that performs business processing on the business to be processed. After the first processing component receives the data, it performs business processing on the received data according to the business processing flow to obtain the processing result. Then, the event bus can forward the processing result of the first processing component according to the business processing flow, so that in the running order, the next processing component of the first processing component continues to process the data received by itself according to the business processing flow. This cycle is repeated until the processing result of the last processing component in the running order is obtained, that is, the target processing result of the business to be processed is obtained. Obviously, when developing a business, it is only necessary to configure the running order of the processing components according to the business processing flow of the business, without rewriting the code for the processing flow. Naturally, when launching different businesses, it is only necessary to reconfigure the running order of the processing components according to the business processing flow, which can reduce business development time and improve business development efficiency.

[0145] See also Figure 5 , Figure 5 A second principle diagram of the service processing method provided in an embodiment of the present invention.

[0146] like Figure 5 As shown, the Publisher (sponsor) is the user in the aforementioned embodiment. The interactive information obtained by the processing component based on the event SDK (Software Development Kit) may include the user's like operation information, the user's order operation information, the user's movie streaming information, the user's registration information, etc. Obviously, there may be information in this information that will not be used in business processing. Therefore, in the running order indicated by the business processing flow, after the first processing component obtains this interactive information, it can send the processing results carrying this interactive information to the event bus. The event bus can determine the data type involved in the business processing according to the business processing flow, and remove the interactive information that is not needed for business processing. That is, event collection and cleaning are performed.

[0147] Then, based on the business processing method provided by the present invention, through the event management capability of the event bus (i.e., the aforementioned event push capability), the interactive information is processed according to the business processing flow based on the processing component to obtain the target processing result, i.e. Figure 5The processing results corresponding to the Subscriber in the target processing result can indicate: different processing results are obtained when different rules are met. That is, different processing results are determined based on the business processing flow under different conditions, that is, one event source corresponds to multiple rules, and one rule corresponds to multiple event targets. For example, the business processing flow indicates: if the interactive information meets condition 1 and condition 2 (that is, rule 1), then the like is triggered and a lottery opportunity is provided, that is, the user is given a like based on the event SDK, and the lottery opportunity is provided to the user based on the event SDK. If the interactive information meets condition 1 but does not meet condition 2 (that is, rule 2), the user is provided with a forwarding lottery opportunity, that is, when the user forwards the activity to other users, the user is provided with a lottery opportunity based on the event SDK. If the interactive information does not meet condition 1 but meets condition 2 (that is, rule 3), the user is given voting qualifications, and subsequent users can obtain lottery opportunities based on the event SDK by voting. If the interactive information does not meet condition 1 and does not meet condition 2 (that is, rule 4), the user is given a consolation prize lottery opportunity, and subsequent users can draw lottery based on the event SDK.

[0148] Furthermore, the event bus can also perform event storage, that is, the collected front-end information and back-end information are stored in a preset database in the aforementioned embodiment.

[0149] Based on the above processing, the business processing flow indicates the running order of each processing component that performs business processing on the business to be processed. After the first processing component receives the data, it performs business processing on the received data according to the business processing flow to obtain the processing result. Then, the event bus can forward the processing result of the first processing component according to the business processing flow, so that in the running order, the next processing component of the first processing component continues to process the data received by itself according to the business processing flow. This cycle is repeated until the processing result of the last processing component in the running order is obtained, that is, the target processing result of the business to be processed is obtained. Obviously, when developing a business, it is only necessary to configure the running order of the processing components according to the business processing flow of the business, without rewriting the code for the processing flow. Naturally, when different businesses are to be launched, it is only necessary to reconfigure the running order of the processing components according to the business processing flow, which can reduce business development time and improve business development efficiency. In addition, in the business processing system of the present invention, common activity functions are abstracted into independent processing components, which is convenient for the combination and reuse of processing components. Adding or adjusting functions only requires modifying the corresponding components, reducing development and testing time. Each processing component is independently developed and maintained, reducing system complexity and maintenance costs. The business processing system of the present invention is an event-driven architecture, which can achieve decoupling and flexible arrangement between various processing components through the event bus; improve the deployment speed of marketing activities: through componentization and event-driven architecture, quickly respond to market demand. Each processing component adopts a microservice architecture, so that each component does not affect each other, reduces the risk of single point failure, and improves the overall stability and flexibility of the system. In addition, the subsequent data statistical results obtained based on statistics can be used for event tracking and data analysis, optimize activity design, and improve user participation and satisfaction.

[0150] Based on the same inventive concept as the above service processing method, the embodiment of the present invention also provides a service processing device. Figure 6 , Figure 6 A first structural diagram of a service processing device provided by an embodiment of the present invention, the device includes:

[0151] The data acquisition module 601 is used to obtain the processing result of the currently running processing component; wherein the processing result of a processing component is obtained based on the following method: according to the business processing flow of the business to be processed, the business processing is performed on the data received by the processing component to obtain the processing result of the processing component; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed;

[0152] The data forwarding module 602 is configured to send the processing result to the next processing component of the currently running processing component in the running sequence if the currently running processing component is not the last processing component in the running sequence, so as to run the next processing component;

[0153] The result acquisition module 603 is used to return to the step of executing the step of acquiring the processing result of the currently running processing component until the processing result of the last processing component in the running sequence is acquired as the target processing result of the business to be processed.

[0154] Optionally, the data forwarding module 602 is specifically used to: if the currently running processing component is not the last processing component in the running sequence, detect whether the data format of the processing result is a specified format; wherein the specified format is: a data format that can be processed by the next processing component of the currently running processing component in the running sequence; when the data format of the processing result is not the specified format, convert the format of the processing result according to the specified format; and send the format-converted processing result to the next processing component of the currently running processing component in the running sequence.

[0155] Optionally, the device also includes: a data statistics module, which is used to, when receiving a data statistics instruction carrying a data statistics period, count the number of processing results of each category obtained in a first time period each time the data statistics period is reached, and obtain the data statistics result of the data statistics period reached this time; wherein, the first time period is: the time period from the online time when the to-be-processed business is online to the data statistics period reached this time; or, when receiving a data statistics instruction indicating real-time data statistics, after each processing result is obtained, count the number of processing results of each category obtained in a second time period to obtain the data statistics result when the processing result is obtained this time; wherein, the second time period is: the time period from the online time to the time when the processing result is obtained this time.

[0156] Optionally, the device also includes: a number statistics module, which is used to, when receiving a number statistics instruction carrying a number statistics cycle, count the number of processing results of each processing component obtained within a third time period each time the number statistics cycle is reached, and obtain the number statistics result of the number statistics cycle reached this time; wherein the third time period is: the time period from the online time when the service to be processed is online to the number statistics cycle reached this time; or, when receiving a number statistics instruction indicating real-time number statistics, after each processing result is obtained, count the number of processing results of each processing component obtained within a fourth time period to obtain the number statistics result when the processing result is obtained this time; wherein the fourth time period is: the time period from the online time to the time when the processing result is obtained this time.

[0157] Optionally, the device also includes: a first modification module, which is used to modify the processing components included in the business processing flow according to a first modification method carried by the first modification instruction when receiving a first modification instruction for the processing components included in the business processing flow; wherein the first modification method includes at least one of the following: adding processing components included in the business processing flow, deleting processing components included in the business processing flow, and adjusting the running order of processing components included in the business processing flow.

[0158] Optionally, a processing component includes: a code template determined based on the business processing flow; a code template is used to: perform business processing on data received by the processing component to which the code template belongs according to a code preset in the code template; the business processing flow further indicates: a processing order of the code template included in each processing component on the data received by the processing component;

[0159] The processing component performs business processing on the data received by the processing component according to the business processing flow of the business to be processed, and the step of obtaining the processing result of the processing component includes: the processing component uses the code templates included in the processing component in sequence according to the processing order corresponding to the processing component to perform business processing on the data received by the processing component to obtain the processing result of the processing component.

[0160] Optionally, the device also includes: a second modification module, which is used to modify the processing component according to a second modification method carried by the second modification instruction when a second modification instruction for a code template in any processing component is obtained; wherein the second modification method includes at least one of the following: adding a code template included in the processing component; deleting a code template included in the processing component; and adjusting the processing order of each code template included in the processing component.

[0161] Optionally, a processing component is obtained based on the following method: obtaining the code templates selected by the target personnel in the display interface according to the business processing flow, and the selection order of the code templates selected by the target personnel; wherein the display interface displays the identifiers of all code templates; and integrating the selected code templates according to the selection order to obtain the processing component.

[0162] Based on the business processing device provided by the embodiment of the present invention, the business processing flow indicates the running order of each processing component that performs business processing on the business to be processed. After the first processing component receives the data, it performs business processing on the received data according to the business processing flow to obtain the processing result. Then, the event bus can forward the processing result of the first processing component according to the business processing flow, so that in the running order, the next processing component of the first processing component continues to process the data received by itself according to the business processing flow. This cycle is repeated until the processing result of the last processing component in the running order is obtained, that is, the target processing result of the business to be processed is obtained. Obviously, when developing a business, it is only necessary to configure the running order of the processing components according to the business processing flow of the business, without having to rewrite the code for the processing flow. Naturally, when different businesses are to be launched, it is only necessary to reconfigure the running order of the processing components according to the business processing flow, which can reduce business development time and improve business development efficiency.

[0163] The embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704, and the memory 703 is used to store computer programs; the processor 701 is used to implement the steps of any business processing method in the above embodiments when executing the program stored in the memory 703.

[0164] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0165] The communication interface is used for communication between the above electronic device and other devices.

[0166] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0167] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0168] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the business processing method described in any one of the above embodiments is implemented.

[0169] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the business processing method described in any one of the above embodiments.

[0170] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0171] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0172] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system, device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0173] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A business processing method, characterized in that: The method comprises: Obtaining the processing result of the currently running processing component; wherein the processing result of a processing component is obtained based on the following method: performing business processing on the data received by the processing component according to the business processing flow of the business to be processed, and obtaining the processing result of the processing component; the business processing flow indicates: the running order of each processing component performing business processing on the business to be processed; If the currently running processing component is not the last processing component in the running sequence, sending the processing result to the next processing component of the currently running processing component in the running sequence to run the next processing component; Return to the step of obtaining the processing result of the currently running processing component until the processing result of the last processing component in the running sequence is obtained as the target processing result of the business to be processed.

2. The method according to claim 1, characterized in that: If the currently running processing component is not the last processing component in the running sequence, sending the processing result to the next processing component of the currently running processing component in the running sequence includes: If the currently running processing component is not the last processing component in the running sequence, detecting whether the data format of the processing result is a specified format; wherein the specified format is: a data format that can be processed by the next processing component of the currently running processing component in the running sequence; When the data format of the processing result is not the specified format, converting the format of the processing result according to the specified format; The format-converted processing result is sent to a processing component next to the currently running processing component in the running sequence.

3. The method according to claim 1, characterized in that The method further comprises: In the case of receiving a data statistics instruction carrying a data statistics cycle, each time the data statistics cycle is reached, the number of processing results of each category obtained in the first time period is counted to obtain the data statistics result of the data statistics cycle reached this time; wherein the first time period is: the time period from the online time when the service to be processed is online to the data statistics cycle reached this time; or, When a data statistics instruction instructing real-time data statistics is received, after each processing result is obtained, the number of processing results of each category obtained within the second time period is counted to obtain the data statistics result when the processing result is obtained this time; wherein, the second time period is: the time period from the online time to the time when the processing result is obtained this time.

4. The method according to claim 1, characterized in that: The method further comprises: In the case of receiving a number counting instruction carrying a number counting cycle, each time the number counting cycle is reached, the number of processing results of each processing component obtained in a third time period is counted to obtain the number counting result of the number counting cycle reached this time; wherein the third time period is: the time period from the online time when the service to be processed is online to the number counting cycle reached this time; or, When a number counting instruction instructing real-time number counting is received, after each processing result is obtained, the number of processing results of each processing component obtained within a fourth time period is counted to obtain the number counting result when the processing result is obtained this time; wherein, the fourth time period is: the time period from the online moment to the moment when the processing result is obtained this time.

5. The method according to claim 1, characterized in that The method further comprises: When a first modification instruction for a processing component included in the business processing flow is received, the processing component included in the business processing flow is modified according to a first modification method carried by the first modification instruction; wherein the first modification method includes at least one of the following: adding processing components included in the business processing flow, deleting processing components included in the business processing flow, and adjusting the running order of processing components included in the business processing flow.

6. The method according to claim 1, characterized in that A processing component includes: a code template determined based on the business processing flow; a code template is used to: perform business processing on data received by the processing component to which the code template belongs according to a code preset in the code template; the business processing flow also indicates: the order in which the code template included in each processing component processes the data received by the processing component; The step of performing business processing on the data received by the processing component according to the business processing flow of the business to be processed to obtain the processing result of the processing component includes: According to the processing sequence corresponding to the processing component, the code templates included in the processing component are used in sequence to perform business processing on the data received by the processing component to obtain the processing result of the processing component.

7. The method according to claim 6, characterized in that The method further comprises: When a second modification instruction for a code template in any processing component is obtained, the processing component is modified according to a second modification method carried by the second modification instruction; wherein the second modification method includes at least one of the following: adding a code template included in the processing component; deleting a code template included in the processing component; adjusting the processing order of each code template included in the processing component.

8. The method according to claim 6, characterized in that A processing component is obtained based on: Acquire the code templates selected by the target person in the display interface according to the business processing flow, and the selection order of the code templates selected by the target person; wherein the display interface displays the identifiers of all code templates; The selected code templates are integrated according to the selection order to obtain processing components.

9. A business processing system, characterized in that: The business processing system includes an event bus and multiple processing components, wherein: The first processing component among the multiple processing components is used to perform business processing on the received data according to the business processing flow of the business to be processed to obtain a processing result; and send the obtained processing result to the event bus; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed; The event bus is used to obtain the processing result; if the first processing component is not the last processing component in the running sequence, the processing result is sent to the next processing component of the first processing component in the running sequence to run the next processing component; until the processing result of the last processing component in the running sequence is obtained as the target processing result of the business to be processed.

10. A service processing device, characterized in that: The device comprises: The data acquisition module is used to obtain the processing result of the currently running processing component; wherein the processing result of a processing component is obtained based on the following method: according to the business processing flow of the business to be processed, the business processing is performed on the data received by the processing component to obtain the processing result of the processing component; the business processing flow indicates: the running order of each processing component that performs business processing on the business to be processed; A data forwarding module, configured to send the processing result to a next processing component of the currently running processing component in the running sequence if the currently running processing component is not the last processing component in the running sequence, so as to run the next processing component; The result acquisition module is used to return to the step of executing the step of acquiring the processing result of the currently running processing component until the processing result of the last processing component in the running sequence is acquired as the target processing result of the business to be processed.

11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-8 when executing a program stored in a memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.