A business processing method and apparatus
The method and apparatus enhance business platform efficiency by visualizing and dynamically arranging business rules using SDKs and ZooKeeper notifications, addressing compile-time inefficiencies and rule representation issues.
Patent Information
- Application Number
- CN202110097791.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-25
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2041-01-25
AI Technical Summary
In the existing technology, the business middle platform logic cannot be visualized, the scalability is poor, the development efficiency is low, and the code-level process orchestration cannot be visually exposed, resulting in high development and maintenance costs and difficult to sort out historical processes.
By receiving application access requests and data requests, obtaining label information, using SDK to pull and orchestrate business rule items, combining the visual business rule configuration end and zookeeper configuration, visual display and real-time update of business rules, and adopting the responsibility chain model to orchestrate and execute business rules.
It realizes visual display and real-time update of business rules, improves development efficiency, reduces duplicate development, improves the reuse and isolation of business rules, and ensures accurate transmission and rapid response of business knowledge.
Smart Images

Figure CN113741888B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a service processing method and apparatus. Background Art
[0002] With the popularization of mobile Internet and smart phones, e-commerce scenarios have emerged continuously. This requires e-commerce enterprises to have faster and better response and service capabilities. Facing such challenges, the strategy of large middle platforms and small front desks (for example, the front-end maintenance mini-programs of emerging services such as community shopping rely on the construction of large middle platforms including most underlying logics) has emerged. The reusable service logics are sunk to the middle platform to continuously strengthen the capabilities of the middle platform. Thus, the workload of the front desk is simplified, enabling the front desk facing scenarios to be quickly built to seize the market.
[0003] When facing multiple service scenarios, the purpose of the unified middle platform is to reduce duplication and improve efficiency. However, in implementation, to ensure quick response to the front desk and logical isolation of each front desk, a large number of code duplication and copying operations are carried out, violating the original design intention.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] Currently, the process orchestration during compilation has very poor scalability. When the order of two processes needs to be adjusted or a certain process wants to be prohibited, the code or configuration file must be modified and then released online. The whole process is long and inefficient. In addition, the process orchestration at the code level cannot visually expose the rules. At the same time, with different implementation methods, some process orchestration rules are very obscurely hidden, resulting in a large amount of time consumption for both subsequent developers and product parties to sort out the historical processes, wasting a lot of time. Summary of the Invention
[0006] In view of this, embodiments of the present invention provide a service processing method and apparatus, which can solve the problems that the existing service middle platform logic cannot be visualized, has poor scalability, and low development efficiency.
[0007] To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a service processing method, including receiving an application access request, obtaining the identification information of the application access request, determining the corresponding service rule item, so that the SDK embedded in the corresponding application pulls the service rule item; receiving an application data request, obtaining the identification information of the application data request, so that the SDK searches for the corresponding service rule item based on the identification information, and then orchestrates the service rule item according to the service line of the application, and executes the application data request.
[0008] Optionally, determining the corresponding service rule item includes:
[0009] Pull the corresponding business rule items according to the marked information;
[0010] Render the business rule items for selection, and then obtain the selected business rule items.
[0011] Optionally, before determining the corresponding business rule items, it includes:
[0012] Load the business rule items of the business line persisted on the disk to warm up the business rule items.
[0013] Optionally, it includes:
[0014] Pull the business rule items through the SDK embedded in the corresponding application to save the mapping relationship between the business rule items and the application marked information to the disk for persistent processing;
[0015] When receiving an application data request, find the corresponding business rule items from the disk based on the marked information.
[0016] Optionally, arranging the business rule items according to the business line of the application includes:
[0017] Call a preset dynamic rule orchestrator to orchestrate the business rule items based on the responsibility chain pattern according to the business line of the application.
[0018] Optionally, it includes:
[0019] Receive multiple application data requests, and respectively obtain the marked information of the application data requests;
[0020] Concurrently enable the SDK to find the corresponding business rule items based on the marked information, arrange the business rule items according to the business line of the application, and execute the application data requests respectively.
[0021] Optionally, it further includes:
[0022] Determine the corresponding business rule items, and then trigger the notification of the zookeeper configuration business rule change event to enable the SDK embedded in the corresponding application to pull the business rule items.
[0023] In addition, the present invention also provides a business processing device, including: an access module for receiving an application access request, obtaining the marked information of the application access request, determining the corresponding business rule items to enable the SDK embedded in the corresponding application to pull the business rule items; a processing module for receiving an application data request, obtaining the marked information of the application data request to enable the SDK to find the corresponding business rule items based on the marked information, and then arranging the business rule items according to the business line of the application and executing the application data request.
[0024] One embodiment of the above invention has the following advantages or beneficial effects: By determining the corresponding business rule items, enabling the SDK embedded in the corresponding application to pull the business rule items, and arranging the business rule items according to the business line of the application, the present invention realizes the precipitation of duplicate business rules, improves the reuse degree and efficiency; by configuring unique identification information for the application, it realizes rule isolation according to a unique identity, achieving the purpose of isolation while meeting the requirement of no duplicate development; through the visual business rule interface, all parties can directly obtain business knowledge, improving efficiency and reducing the distortion of business knowledge during the multi-level transmission process; at the same time, the SDK searches for the corresponding business rule items based on the identification information, arranges the business rule items according to the business line of the application, realizes real-time change of the business rules and takes effect immediately in the code.
[0025] The further effects of the above non-conventional alternative methods will be described below in combination with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings are used to better understand the present invention and do not constitute an improper limitation to the present invention. Among them:
[0027] Figure 1 is a schematic diagram of the main process of the business processing method according to the first embodiment of the present invention;
[0028] Figure 2 is a schematic diagram of the main process of the business processing method according to the second embodiment of the present invention;
[0029] Figure 3 is a schematic diagram of the main process of the business processing method according to the third embodiment of the present invention;
[0030] Figure 4 is a schematic diagram of the arrangement of business rule items according to the embodiment of the present invention;
[0031] Figure 5 is a schematic diagram of the main modules of the business processing device according to the embodiment of the present invention;
[0032] Figure 6 is an exemplary system architecture diagram to which the embodiment of the present invention can be applied;
[0033] Figure 7 is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings. Various details of the embodiments of the present invention are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, descriptions of well-known functions and structures are omitted in the following description for clarity and conciseness.
[0035] Figure 1 is a schematic diagram of the main process of the service processing method according to the first embodiment of the present invention. As Figure 1 shown, the service processing method includes:
[0036] Step S101, receive an application access request, obtain the identification information of the application access request, and determine the corresponding service rule item, so that the SDK embedded in the corresponding application pulls the service rule item.
[0037] In some embodiments, to determine the corresponding service rule item, the specific implementation process includes pulling the corresponding service rule item according to the identification information (such as the identity ID); rendering the service rule item for selection, and then obtaining the selected service rule item. Preferably, the present invention renders in a graphical and readable manner in a browser according to a preset visualization method for selection and browsing. In addition, service rule items can be imported in various ways, such as by excel file, json file, and manual entry, etc. Therefore, this embodiment realizes the visualization display and provides editing configuration of service rule items in a browser.
[0038] Preferably, through front-end drawing technology (such as the front-end canvas tag), the service rule items are rendered in real time in the browser, and then the service rule items are visually displayed, and have an online visual modification function and take effect in real time.
[0039] As another embodiment, before determining the corresponding service rule item, it includes loading the service rule items of the business line persisted on the disk to preheat the service rule items. It can be seen that the present invention actively loads the service rules of all business lines persisted on the disk and preheats them when the business application access process starts, including refreshing and synchronizing the latest service rule items to the disk. Therefore, this embodiment realizes the preloading of service rule items, and can achieve the purpose of directly using the service rule items without creation when using them, thereby improving performance.
[0040] It should be noted that the SDK embedded in the corresponding application pulls the business rule item to save the mapping relationship between the business rule item and the application identification information to the disk for persistent processing. After that, when an application data request is received, the corresponding business rule item is searched from the disk based on the identification information. Preferably, the format for saving the mapping relationship between the business rule item and the application identification information is: identification ID + orchestrated business rule. Among them, disk persistence uses the disk as a permanent storage medium and takes advantage of the characteristic that data on the disk is not lost after the application and the machine are restarted to permanently store data, and at the same time, it can be quickly loaded by the process.
[0041] Step S102, receive an application data request, obtain the identification information of the application data request, so that the SDK searches for the corresponding business rule item based on the identification information, and then orchestrates the business rule item according to the business line of the application, and executes the application data request.
[0042] In some embodiments, orchestrating the business rule item according to the business line of the application includes calling a preset dynamic rule orchestrator to orchestrate the business rule item based on the responsibility chain pattern according to the business line of the application. Among them, the responsibility chain pattern is formed by the reference of each object to its successor to form a chain.
[0043] As another embodiment, determine the corresponding business rule item, and then trigger a notification of the zookeeper configuration business rule change event, so that the SDK embedded in the corresponding application pulls the business rule item. Among them, zookeeper is a distributed and highly available application coordination service. Preferably, a zookeeper cluster can be used to achieve distributed locks and listening for a large number of business rule change event notifications.
[0044] It should be noted that the present invention can receive multiple application data requests, respectively obtain the identification information of the application data requests; concurrently enable the SDK to search for the corresponding business rule items based on the identification information, to orchestrate the business rule items according to the business lines of the applications, and respectively execute the application data requests. Preferably, the business line corresponding to the application can be stored in the cloud.
[0045] In summary, the present invention realizes visual dynamic real-time effective business orchestration, solves similar scenarios where mid-backend business codes are docked with multiple front-ends. And, it realizes the extraction of business rules and visual display, and at the same time, the isolation of the same business rules based on the unique identification information. In addition, the configuration, refresh and warm-up of the resource disk, and the business rule resources can be directly used.
[0046] Figure 2 It is a schematic diagram of the main process of the business processing method according to the second embodiment of the present invention. The business processing method may include:
[0047] Step S201: Receive an application access request and obtain the identification information of the application access request.
[0048] Step S202: Load the business rule items of the business line persisted on the disk to warm up the business rule items.
[0049] Step S203: Pull the corresponding business rule items according to the identification information.
[0050] Step S204: Render the business rule items for selection, and then obtain the selected business rule items.
[0051] Step S205: Trigger the notification of the zookeeper configuration business rule change event, so that the SDK embedded in the corresponding application pulls the business rule items.
[0052] Step S206: Save the mapping relationship between the business rule items and the application identification information to the disk for persistent processing.
[0053] Step S207: Receive an application data request and obtain the identification information of the application data request.
[0054] Step S208: The SDK embedded in the corresponding application searches for the corresponding business rule items from the disk based on the identification information.
[0055] Step S209: Call a preset dynamic rule orchestrator to orchestrate the business rule items based on the responsibility chain pattern according to the business line of the application, and execute the application data request.
[0056] It should be noted that in the embodiments of the present invention, the business rule items are original business units that have not been configured for specific business lines. They are original values that can be used and configured for all business lines, but whether they take effect specifically depends on the requirements of each business line. Each business rule item corresponds to an independent and reusable business unit in the code. Preferably, all business rule items are optional: divided into selected and unselected, and at the same time, the order of the business rules can also be adjusted. For example: in the common order business application in e-commerce, the format of the business rule items that can be orchestrated is as follows:
[0057] Business rule item 1: Verify user balance
[0058] Business rule item 2: Calculate promotions
[0059] Business rule item 3: Check inventory
[0060] Business rule item 4: Whether to send an email notification when shipping
[0061] Business rule item 5: Verify the delivery address
[0062] Business rule item 6: Whether to send a text message notification when shipping
[0063] Business rule item 7: Verify the payment method
[0064] Among them, each rule item corresponds to an independent and runnable code snippet in the application. These code snippets are marked with an id. And they are entered into the visual business rule configuration terminal for visual display, and are entrusted to the SDK for scheduling and orchestration at runtime.
[0065] Figure 3 It is a schematic diagram of the main process of the service processing method according to the third embodiment of the present invention. The service processing method may include:
[0066] The visual business rule configuration terminal receives an application access request, obtains the identification information of the application access request, determines the corresponding business rule item, and triggers a notification of the business rule change event configured by the nodes in the zookeeper cluster, so that the SDK embedded in the corresponding application pulls the business rule item (preferably, the business application can be set in a container). When receiving an application data request, obtain the identification information of the application data request, so that the SDK searches for the corresponding business rule item based on the identification information, and then arranges the business rule item according to the business line of the application, and executes the application data request. For example: as Figure 4 shown, for two application instances accessing two different scenarios, based on the requirements of the two front-ends, the business rule items can be selected according to the identity identification information of the two front-ends in the visual business rule configuration terminal. The visual business rule configuration terminal will trigger a notification of the configuration change event by the nodes in the zookeeper cluster. Thereafter, the SDK embedded in the corresponding application will pull the business rule items from the visual business rule configuration terminal, and save and persist the mapping relationship between the application access and the business rule items in the memory and disk for use in subsequent business rule orchestration. When the front-end requests the corresponding application, it will carry the relevant identity ID, that is, the identification information. The embedded SDK will search for the corresponding business rule item based on the identity ID, and then perform real-time process orchestration on the business rule item based on the responsibility chain pattern to provide services externally.
[0067] Among them, the visual business rule configuration terminal can implement functions such as visual display, business rule configuration, business rule item management, and business rule distribution. When implementing the visual display, the business rule items are rendered in a graphical and readable manner in the browser according to the preset visual method, and configuration operations are provided. In addition, the business rule items can be imported in various ways. When implementing the business rule configuration, the newly connected applications can be customized with business lines and business rules can be configured dynamically. At the same time, when new or modified business line rules are added, a business rule item update event is also triggered to the zookeeper cluster in real time, enabling the client SDK to pull the business rule items from the visual business rule configuration terminal.
[0068] When the visual business rule configuration terminal implements the business rule item management, it provides the function of managing the business rule items and business lines that can be externally provided by a certain business application, configures a unique identifier for the business application, and provides query, traversal, and configuration operations according to the business application. In addition, the business rule distribution function of the visual business rule configuration terminal is to provide an operation for the SDK embedded in the business application to pull the business rules corresponding to the specified business line and the full set of business lines.
[0069] Among them, the SDK embedded in the business application can implement business rule warm-up persistence, business rule listening, and dynamic rule orchestration. Further, implementing business rule warm-up persistence is to actively load the business rules of all business lines persisted on the disk and warm them up when the business application process starts, and at the same time include refreshing and synchronizing the latest business rules to the disk. Business rule listening is to listen to the events of the zookeeper cluster in real time to actively call the interface of the visual business rule configuration terminal to pull the latest configuration. Dynamic rule orchestration is to call the dynamic orchestrator to orchestrate according to the business rules corresponding to the specific business line in sequence after pulling the latest configuration items, and take effect in real time during code runtime, changing the corresponding runtime logic and providing services externally.
[0070] Figure 5 It is a schematic diagram of the main modules of the business processing device according to an embodiment of the present invention, as Figure 5 shown, the business processing device 500 includes an access module 501 and a processing module 502. Among them, the access module 501 receives an application access request, obtains the identification information of the application access request, determines the corresponding business rule items, so that the SDK embedded in the corresponding application pulls the business rule items; the processing module 502 receives an application data request, obtains the identification information of the application data request, so that the SDK searches for the corresponding business rule items based on the identification information, and then orchestrates the business rule items according to the business line of the application, and executes the application data request.
[0071] In some embodiments, the access module 501 determines corresponding service rule items, including:
[0072] Pull corresponding service rule items according to the identification information; render the service rule items for selection, and then obtain the selected service rule items.
[0073] Before the access module 501 determines the corresponding service rule items in some embodiments, it includes: loading the service rule items of the service line persisted on the disk to warm up the service rule items.
[0074] In some embodiments, the access module 501 is embedded in the SDK of the corresponding application to pull the service rule items, save the mapping relationship between the service rule items and the application identification information to the disk for persistent processing; the processing module 502 waits to receive an application data request and looks up the corresponding service rule items from the disk based on the identification information.
[0075] In some embodiments, the processing module 502 arranges service rule items according to the service line of the application, including calling a preset dynamic rule arranger to arrange service rule items based on the responsibility chain pattern according to the service line of the application.
[0076] In some embodiments, the processing module 502 receives multiple application data requests, respectively obtains the identification information of the application data requests; concurrently enables the SDK to look up the corresponding service rule items based on the identification information, arranges service rule items according to the service line of the application, and respectively executes the application data requests.
[0077] In some embodiments, the access module 501 determines the corresponding service rule items, and then triggers a notification of the zookeeper configuration service rule change event to enable the SDK embedded in the corresponding application to pull the service rule items.
[0078] It should be noted that there is a corresponding relationship between the service processing method and the service processing device of the present invention in specific implementation contents, so the repeated contents will not be described again.
[0079] Figure 6 An exemplary system architecture 600 to which the service processing method or service processing device of the embodiments of the present invention can be applied is shown.
[0080] As Figure 6 shown, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used to provide a medium for communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.
[0081] Users can use terminal devices 601, 602, and 603 to interact with server 605 via network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603.
[0082] Terminal devices 601, 602, and 603 can be various electronic devices with a service processing screen and supporting web browsing, including but not limited to smartphones, tablets, laptop computers, and desktop computers, etc.
[0083] Server 605 can be a server that provides various services, such as a background management server (only for example) that supports users using terminal devices 601, 602, and 603. The background management server can analyze and process data such as product information query requests received, and feedback the processing results (such as target push information, product information - only for example) to the terminal device.
[0084] It should be noted that the service processing method provided by the embodiments of the present invention is generally executed by server 605. Correspondingly, the computing device is generally disposed in server 605.
[0085] It should be understood that Figure 6 the numbers of terminal devices, networks, and servers in
[0086] are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers. Figure 7 Shown below is a schematic structural diagram of a computer system 700 of a terminal device suitable for implementing the embodiments of the present invention with reference to Figure 7 The shown terminal device is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.
[0087] As Figure 7 shown, computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage section 708 into the random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. The input / output (I / O) interface 705 is also connected to the bus 704.
[0088] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as required. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the drive 710 as required so that a computer program read out therefrom is installed into the storage section 708 as required.
[0089] Specifically, according to an embodiment disclosed by the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment disclosed by the present invention includes a computer program product which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from the removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, the above-described functions defined in the system of the present invention are performed.
[0090] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0091] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0092] The modules involved in the embodiments of the present invention can be implemented in software or in hardware. The described modules can also be provided in a processor. For example, it can be described as: a processor includes an access module and a processing module. Among them, the names of these modules do not constitute a limitation to the module itself in some cases.
[0093] As another aspect, the present invention also provides a computer-readable medium. The computer-readable medium can be included in the device described in the above embodiments; or it can exist alone without being assembled into the device. The above computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device is caused to include receiving an application access request, obtaining the identification information of the application access request, determining the corresponding service rule item, so that the SDK embedded in the corresponding application pulls the service rule item; receiving an application data request, obtaining the identification information of the application data request, so that the SDK looks up the corresponding service rule item based on the identification information, and then arranges the service rule items according to the business line of the application, and executes the application data request.
[0094] According to the technical solution of the embodiments of the present invention, the problems that the logic of the existing business middle platform cannot be visualized, has poor scalability, and low development efficiency can be solved.
[0095] The above specific implementation manners do not constitute a limitation to the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A business processing method, characterized in that, It includes: When the business application access process starts, load the business rule items of the business line persisted on the disk to warm up the business rule items; the business rule items are business units that have not been configured for a specific business line. Each business rule item corresponds to an independent business unit. Receive an application access request, obtain the identification information of the application access request, determine the corresponding business rule item, so that the SDK embedded in the corresponding application pulls the business rule item. Receive an application data request, obtain the identification information of the application data request, so that the SDK searches for the corresponding business rule item based on the identification information, and then arranges the business rule items according to the business line of the application and executes the application data request.
2. The method according to claim 1, wherein Determining the corresponding business rule item includes: Pull the corresponding business rule item according to the identification information. Render the business rule item for selection, and then obtain the selected business rule item.
3. The method according to claim 1, wherein It includes: The SDK embedded in the corresponding application pulls the business rule item to save the mapping relationship between the business rule item and the application identification information to the disk for persistent processing. When an application data request is received, search for the corresponding business rule item from the disk based on the identification information.
4. The method according to claim 1, characterized in that Arranging the business rule items according to the business line of the application includes: Call a preset dynamic rule orchestrator to arrange the business rule items based on the responsibility chain pattern according to the business line of the application.
5. The method according to claim 1, wherein It includes: Receive multiple application data requests and obtain the identification information of the application data requests respectively. Concurrently enable the SDK to search for the corresponding business rule item based on the identification information, arrange the business rule items according to the business line of the application, and execute the application data requests respectively.
6. The method according to any one of claims 1-5, characterized in that, It also includes: Determine the corresponding business rule item, and then trigger the notification of the zookeeper configuration business rule change event, so that the SDK embedded in the corresponding application pulls the business rule item.
7. A service processing device, characterized in that, It includes: An access module for loading the business rule items of the business line persisted on the disk to warm up the business rule items when the business application access process starts; the business rule items are business units that have not been configured for a specific business line. Each business rule item corresponds to an independent business unit. Receive an application access request, obtain the identification information of the application access request, determine the corresponding business rule item, so that the SDK embedded in the corresponding application pulls the business rule item. A processing module for receiving an application data request, obtaining the identification information of the application data request, so that the SDK searches for the corresponding business rule item based on the identification information, and then arranges the business rule items according to the business line of the application and executes the application data request.
8. An electronic device, characterized in that, It includes: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-6.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method according to any one of claims 1-6.
Citation Information
Patent Citations
Service arrangement and business process processing method and device applied to SaaS
CN110310034A