A service processing method and device based on a microkernel architecture and related products
By adopting a microkernel-based business processing method and utilizing the Service Discovery Mechanism (SPI) to call functional plug-in modules, the challenges of scalability and flexibility in the Yinbaotong system were resolved, enabling efficient system expansion and flexible adjustment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CPIC ALLIANZ HEALTH INSURANCE CO LTD
- Filing Date
- 2025-10-27
- Publication Date
- 2026-07-14
AI Technical Summary
The existing bank-insurance linkage system faces challenges in terms of scalability and flexibility due to its architecture, making it difficult to adapt to diverse business needs.
The system adopts a microkernel-based business processing approach, which uses the Service Discovery Mechanism (SPI) to call functional plugin modules and dynamically load plugin modules to complete business processes. The system core is responsible for general logic, while plugin modules provide customized functions.
The system has improved the scalability and flexibility of the bank-insurance linkage system, supporting multiple protocols and business types, and enhancing the system's adaptability and flexible adjustment capabilities.
Smart Images

Figure CN121364901B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a business processing method, apparatus and related products based on a microkernel architecture. Background Technology
[0002] The Bank-Insurance Link system, a comprehensive business processing platform jointly developed by banks and insurance companies, involves multiple protocols (HTTP, Socket, etc.), encryption and decryption, rate limiting and degradation, logging, premium calculation, insurance application, and underwriting. With the changing and diversified business needs, the existing Bank-Insurance Link system faces challenges in terms of scalability and flexibility due to its architecture. Summary of the Invention
[0003] To address the aforementioned issues, this application provides a business processing method, apparatus, and related products based on a microkernel architecture, thereby improving the scalability and flexibility of the banking and insurance system.
[0004] The embodiments of this application disclose the following technical solutions:
[0005] In a first aspect, embodiments of this application provide a business processing method based on a microkernel architecture, the method comprising:
[0006] Receive business requests sent by the client;
[0007] Parse the business request and obtain the business execution template that matches the business request; the business execution template includes the business process nodes corresponding to the business.
[0008] For any business process node, if the business process node lacks a corresponding target function processing slot, the corresponding function plug-in module is called through the Service Discovery Mechanism (SPI) until the business is completed.
[0009] In one possible implementation, for any business process node, if the business process node lacks a corresponding target function processing slot, the corresponding function plugin module is invoked through the Service Discovery Mechanism (SPI), specifically including:
[0010] For any business process node, determine the target function corresponding to the business process node, and the target function processing slot corresponding to the target function.
[0011] If the target function lacks a corresponding target function slot, the corresponding function plugin module and its identification information are determined based on the Service Discovery Mechanism (SPI).
[0012] The functional plugin module is loaded based on its identification information and the corresponding configuration file.
[0013] In one possible implementation, after the task is completed, the method also includes:
[0014] The data conversion plugin converts the results of business operations into a preset format.
[0015] The log plugin records the entire request chain information, which includes the identifier of the business request, the parameters of the business request, the execution time of the business, and the row status of the business.
[0016] The execution results and end-to-end information in a preset format are returned to the client.
[0017] In one possible implementation, the functional plug-in module includes at least one of a message parsing plug-in module, an encryption plug-in module, a decryption plug-in module, and a signature verification plug-in module.
[0018] In one possible implementation, the target function processing slot includes at least one of the following: process control processing slot, data transformation processing slot, rate limiting and degradation processing slot, log reporting processing slot, and alarm processing slot.
[0019] Secondly, embodiments of this application provide a service processing device based on a microkernel architecture, the device including a receiving module, a parsing module, and an execution module;
[0020] The receiving module is used to receive business requests sent by the client;
[0021] The parsing module is used to parse business requests and obtain a business execution template that matches the business request; the business execution template includes the business process nodes corresponding to the business.
[0022] The execution module is used to call the corresponding functional plug-in module of the target function through the service discovery mechanism SPI for any business process node, in the case that the business process node lacks the corresponding target function processing slot, until the business is completed.
[0023] In one possible implementation, the execution module is specifically used to determine the target function corresponding to any business process node and the target function processing slot corresponding to the target function for any given business process node; if the target function lacks a corresponding target function slot, the module is used to determine the corresponding functional plugin module and the identification information of the functional plugin module according to the Service Discovery Mechanism (SPI); and the functional plugin module is loaded according to the identification information of the functional plugin module and the configuration file corresponding to the functional plugin module.
[0024] In one possible implementation, the device further includes: a return module;
[0025] The return module is used to convert the execution result of the business into a preset format through the data conversion plugin; and to record the entire request information through the log plugin. The entire request information includes the identifier of the business request, the parameters of the business request, the execution time of the business, and the row status of the business. The execution result in the preset format and the entire request information are returned to the client.
[0026] Thirdly, embodiments of this application provide a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a business processing method based on a microkernel architecture as described in any embodiment of the first aspect.
[0027] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform a microkernel-based business processing method as described in any embodiment of the first aspect.
[0028] To improve the scalability and flexibility of the bank-insurance interconnection system, this application provides a microkernel architecture. Based on this architecture, the system receives business requests sent by clients; parses the business requests to obtain a business execution template matching the requests; wherein the business execution template includes business process nodes corresponding to the business; for any business process node, if the business process node lacks a corresponding target function processing slot, the system uses the Service Discovery Mechanism (SPI) to call the corresponding functional plug-in module until the business is completed. In this application embodiment, by separating the system core and plug-in modules, the system core is responsible for executing the most basic general business logic, while the plug-in modules provide customized functions for specific business needs, ensuring that the system can be expanded and flexibly adjusted according to different business requirements. Attached Figure Description
[0029] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 A flowchart illustrating a business processing method based on a microkernel architecture provided in this application embodiment;
[0031] Figure 2 A schematic diagram of a microkernel-based service processing device provided in this application embodiment;
[0032] Figure 3A schematic diagram of a functional plug-in module provided in an embodiment of this application;
[0033] Figure 4 A schematic diagram of a core functional module provided in an embodiment of this application;
[0034] Figure 5 This is a schematic diagram of a computer device provided in an embodiment of this application. Detailed Implementation
[0035] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0036] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first resistor" and "second resistor," etc., are used to distinguish different resistors, not to describe a specific order of resistors.
[0037] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0038] In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more, for example, multiple processing units means two or more processing units, multiple elements means two or more elements, etc.
[0039] To facilitate subsequent understanding, the business processing methods based on the microkernel architecture will be introduced below with reference to the accompanying drawings in the manual.
[0040] See Figure 1 The figure is a flowchart of a business processing method based on a microkernel architecture provided in an embodiment of this application.
[0041] like Figure 1 As shown, the business processing method based on the microkernel architecture includes the following steps:
[0042] S1000: Receives service requests sent by clients.
[0043] In this embodiment, the type of client is not specifically limited. For example, the client can be a computer, a tablet computer, or a server, etc.
[0044] In this embodiment, the protocol type of the business request is not specifically limited. For example, the client can interact with data using HTTP, SFTP, and Socket protocols. HTTP is supported by the Controller module, and Socket is implemented through Netty to ensure efficient connection with external systems.
[0045] In this embodiment, the system supports multiple protocols (HTTP, Sftp, Socket), providing diverse service access methods and enhancing the system's adaptability.
[0046] S2000: Parse the business request and obtain the business execution template that matches the business request; the business execution template includes the business process nodes corresponding to the business.
[0047] In this application embodiment, the type of service is not specifically limited. For example, the service may be at least one of multiple services involving multiple protocols (HTTP, Socket, etc.), encryption and decryption, rate limiting and degradation, logging, premium calculation, insurance application, and underwriting.
[0048] For example, there is a premium calculation execution template for premium calculation business, an insurance application execution template for insurance application business, an underwriting execution template for insurance business, and so on. No further examples will be given.
[0049] Taking the premium calculation business as an example, the corresponding premium calculation execution template includes the following process nodes: data verification node (used to verify required fields, field formats and business rules, etc.), premium calculation node (calculates premiums based on insurance product rules and insurance information), discount application node (applies discounts based on promotional activities or customer levels), and result encapsulation node (encapsulates the calculation results into a response message).
[0050] It should be noted that in the embodiments of this application, each business process node can be defined as a configurable plugin. Each node can be added or adjusted according to actual needs, and the business process can be flexibly configured.
[0051] S3000: For any business process node, if the business process node lacks the corresponding target function processing slot, the corresponding function plug-in module is called through the service discovery mechanism SPI until the business is completed.
[0052] In one possible implementation, for any business process node, the target function corresponding to the business process node and the target function processing slot corresponding to the target function are determined; if the target function lacks a corresponding target function slot, the functional plug-in module corresponding to the target function and the identification information of the functional plug-in module are determined according to the Service Discovery Mechanism (SPI); the functional plug-in module is loaded according to the identification information of the functional plug-in module and the configuration file corresponding to the functional plug-in module.
[0053] In this embodiment of the application, the functional plug-in module includes at least one of the following: message parsing plug-in module, encryption plug-in module, decryption plug-in module, and signature verification plug-in module.
[0054] In this embodiment of the application, the target function processing slot includes at least one of the following: process control processing slot, data conversion processing slot, rate limiting and degradation processing slot, log reporting processing slot, and alarm processing slot.
[0055] To better understand this step, the following will take the data verification node, premium calculation node, discount application node, and result encapsulation node in the premium calculation business described in the foregoing embodiments as examples for corresponding introduction.
[0056] For the data verification node, this embodiment first checks whether there is a corresponding data verification processing slot; if there is a data verification processing slot, the data is directly verified through the data verification processing slot; if there is no data verification processing slot, the data is verified by calling the data verification plugin module through SPI.
[0057] For the premium calculation node, this embodiment first checks whether there is a corresponding premium calculation processing slot; if there is a premium calculation processing slot, the premium is calculated directly through the premium calculation processing slot; if there is no premium calculation processing slot, the premium is calculated by calling the premium calculation plug-in module through SPI.
[0058] For the preferential application node, this embodiment first checks whether there is a corresponding preferential application processing slot; if there is a preferential application processing slot, the premium discount amount is calculated directly through the preferential application processing slot; if there is no preferential application processing slot, the premium discount amount is calculated by calling the preferential application plugin module through SPI.
[0059] For the result encapsulation node, this embodiment first checks whether there is a corresponding result encapsulation processing slot; if there is a result encapsulation processing slot, the premium calculation result is directly encapsulated through the result encapsulation processing slot; if there is no result encapsulation processing slot, the result encapsulation plugin module is called through SPI to encapsulate the premium calculation result.
[0060] In this embodiment, firstly, the system receives a business request sent by the client based on this architecture; then, it parses the business request to obtain a business execution template matching the request; wherein, the business execution template includes a business process node corresponding to the business; finally, for any business process node, if the business process node lacks a corresponding target function processing slot, the system calls the functional plug-in module corresponding to the target function through the Service Discovery Mechanism (SPI) until the business is completed. In this embodiment, this architecture separates the system core from the plug-in modules. The system core is responsible for executing the most basic general business logic, while the plug-in modules provide customized functions for specific business needs, ensuring that the system can be expanded and flexibly adjusted according to different business requirements.
[0061] In addition, in this embodiment, the plugin is dynamically loaded through the SPI mechanism to meet different business needs and avoid hard coding and system redundancy; each node in the link can be dynamically configured, supporting flexible business process customization and adjustment, and simplifying business processing.
[0062] In this embodiment of the application, after the business is completed, the execution result of the business can be converted into a preset format through a data conversion plugin; the entire request information can be recorded through a log plugin; wherein, the entire request information includes the identifier of the business request, the parameters of the business request, the execution time of the business, and the row status of the business; the execution result in the preset format and the entire request information are returned to the client.
[0063] This application embodiment also provides a service processing device based on a microkernel architecture, the device including a receiving module 100, a parsing module 200, and an execution module 300;
[0064] The receiving module 100 is used to receive business requests sent by the client.
[0065] The parsing module 200 is used to parse business requests and obtain business execution templates that match the business requests; the business execution templates include business process nodes corresponding to the business.
[0066] The execution module 300 is used to call the corresponding function plug-in module of the target function through the service discovery mechanism SPI for any business process node, when the business process node lacks the corresponding target function processing slot, until the business is completed.
[0067] In this embodiment of the application, the architecture separates the system core from the plug-in modules. The system core is responsible for executing the most basic general business logic, while the plug-in modules provide customized functions for specific business needs, ensuring that the system can be expanded and flexibly adjusted according to different business needs.
[0068] In one possible implementation, the execution module 300 is specifically used to determine the target function corresponding to any business process node and the target function processing slot corresponding to the target function for any given business process node; if the target function lacks a corresponding target function slot, it determines the function plugin module corresponding to the target function and the identification information of the function plugin module according to the Service Discovery Mechanism (SPI); and loads the function plugin module according to the identification information of the function plugin module and the configuration file corresponding to the function plugin module.
[0069] In one possible implementation, the device further includes: a return module;
[0070] The return module is used to convert the execution result of the business into a preset format through the data conversion plugin; and to record the entire request information through the log plugin. The entire request information includes the identifier of the business request, the parameters of the business request, the execution time of the business, and the row status of the business. The execution result in the preset format and the entire request information are returned to the client.
[0071] In one possible implementation, the functional plug-in module includes at least one of a message parsing plug-in module, an encryption plug-in module, a decryption plug-in module, and a signature verification plug-in module.
[0072] For example, such as Figure 3 As shown, the functional plug-in modules include TrafficStatisticSlot, FuseDegradationSlot, SecuritySlot, DataConvertSlot, AlarmSlot, and BusinessHandleSlot.
[0073] It should be understood that in the embodiments of this application, any module can be added and deleted. For example, a custom implementation slot (MyCustomSlot) can be inserted in front of the alarm module.
[0074] In one possible implementation, the target function processing slot includes at least one of the following: process control processing slot, data transformation processing slot, rate limiting and degradation processing slot, log reporting processing slot, and alarm processing slot.
[0075] In addition, this application provides a schematic diagram of a core functional module, as shown in the following figure. Figure 4As shown, external requests are input to the execution context module (Contex) via Sftp, HTTP, or Socket. The output of the execution context module is connected to the processing slot chain module (ProcessorSlotChain). The output of the processing slot chain module is connected to the input of the parameter validation module (Validator). The output of the parameter validation module is connected to the input of the execution template module (TemplateExecute). The execution template outputs business process nodes.
[0076] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the microkernel-based business processing method described in this application.
[0077] In practical applications, the computer-readable storage medium can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0078] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0079] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0080] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0081] like Figure 5 The diagram shown is a structural schematic of a computer device provided in an embodiment of this application. Figure 5 The computer device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0082] like Figure 5 As shown, the computer device 12 is represented in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0083] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0084] Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0085] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 5 Not shown; usually referred to as a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0086] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.
[0087] Computer device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 12, and / or with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through input / output (I / O) interface 22. Furthermore, computer device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) through network adapter 20. Figure 5 As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be understood that, although... Figure 5 As not shown, it can be used in conjunction with computer device 12 with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0088] The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the microkernel-based business processing method provided in the embodiments of this application.
[0089] The above description is merely one specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A business processing method based on a microkernel architecture, characterized in that, The method includes: Receive business requests sent by the client; Parse the business request to obtain a business execution template that matches the business request; wherein, the business execution template includes the business process node corresponding to the business; For any of the aforementioned business process nodes, if the business process node lacks a corresponding target function processing slot, the functional plug-in module corresponding to the target function and the identification information of the functional plug-in module are determined according to the Service Discovery Mechanism (SPI); the functional plug-in module is loaded according to the identification information of the functional plug-in module and the configuration file corresponding to the functional plug-in module until the business is completed.
2. The business processing method according to claim 1, characterized in that, After completing the aforementioned business, the method further includes: The data conversion plugin converts the execution results of the business into a preset format. The entire request chain information is recorded through a log plugin; wherein, the entire chain information includes the identifier of the business request, the parameters of the business request, the execution time of the business, and the row status of the business; The execution result in the preset format and the end-to-end information are returned to the client.
3. The business processing method according to claim 1 or 2, characterized in that, The functional plug-in module includes at least one of the following: message parsing plug-in module, encryption plug-in module, decryption plug-in module, and signature verification plug-in module.
4. The business processing method according to claim 1 or 2, characterized in that, The target function processing slot includes at least one of the following: process control processing slot, data conversion processing slot, rate limiting and degradation processing slot, log reporting processing slot, and alarm processing slot.
5. A business processing device based on a microkernel architecture, characterized in that, The device includes a receiving module, a parsing module, and an execution module; The receiving module is used to receive service requests sent by the client; The parsing module is used to parse the business request and obtain a business execution template that matches the business request; wherein, the business execution template includes the business process node corresponding to the business; The execution module is configured to, for any of the business process nodes, if the business process node lacks a corresponding target function processing slot, determine the functional plug-in module corresponding to the target function and the identification information of the functional plug-in module according to the Service Discovery Mechanism (SPI); and load the functional plug-in module according to the identification information of the functional plug-in module and the configuration file corresponding to the functional plug-in module until the business is completed.
6. The business processing apparatus according to claim 5, characterized in that, The device further includes: a return module; The return module is used to convert the execution result of the service into a preset format through a data conversion plugin; record the entire request information through a log plugin; wherein the entire request information includes the identifier of the service request, the parameters of the service request, the execution time of the service, and the line status of the service; and return the execution result in the preset format and the entire request information to the client.
7. A computer device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the business processing method based on a microkernel architecture as described in any one of claims 1-4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the microkernel-based business processing method as described in any one of claims 1-4.