Distributed platform architecture processing method and device

The application functional modules are divided and deployed through the distributed platform architecture, which solves the coupling problem of application code, hardware and operating system in the traditional architecture, achieves flexibility and scalability, and ensures the stability of the system when functional modules fail. .

CN118779003APending Publication Date: 2024-10-15HANGZHOU YUXIN DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832306.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The traditional platform architecture tightly couples the application code with the hardware and operating system, making it difficult to port to other platforms, with poor flexibility and scalability, and the entire application needs to be redeployed when expanding services or increasing the number of users.

Method used

Using a distributed platform architecture, the functional modules of the application are divided into first functional modules and second functional modules, which are deployed on external and internal servers respectively. Calls between modules are implemented through adapters and registration centers to improve flexibility and scalability. sex.

Benefits of technology

New features or users can be added without redeploying the entire application, improving the flexibility and scalability of the application and maintaining system stability when some functional modules fail.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779003A_ABST
    Figure CN118779003A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a distributed platform architecture processing method and device, a distributed platform architecture mode is adopted, a platform architecture is divided into a first platform and a second platform, an adapter and an external server are deployed on the first platform, and a registration center, a kernel and an internal server are deployed on the second platform. The functional modules of the application program are classified and then deployed to the external server and the internal server, so that the functional modules of the application program are independent, when the application program has the requirements of adding new functions or increasing the number of users, the whole application program does not need to be redeployed, and only the new functional modules and the like need to be deployed; the flexibility and the expandability of the application program are improved, the function modules of the application program are independent and do not depend on one another, even if part of the function modules or a certain function module breaks down, the whole application program cannot be affected, and therefore the reliability of the application program 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 computer technology, and in particular to a distributed platform architecture processing method and device. Background Art

[0002] Platform architecture, taking business platform architecture as an example, refers to a business-oriented and driven software platform that can quickly build application software, providing a basic framework for complex application software system development, and corresponding, easy-to-use development and maintenance management tools. However, the traditional platform architecture deploys all application software of the business or all functional modules of the application together (for example, on the same server), such as Figure 1 As shown, taking the accounting system in the financial field as an example, the accounting system is responsible for the account processing of loans, including at least functional modules such as payment deduction, repayment processing, and notification results. In the related technology, the accounting system is deployed through the traditional platform architecture, that is, the payment deduction, repayment processing, notification results and other functional modules of the accounting system are deployed in the same platform architecture. In this way, each application code of the accounting system is tightly coupled with specific hardware, operating system platform, etc., so that it is only applicable to a specific hardware or operating system, such as Linux or Windows system or cloud service platform, which makes it difficult to port the application code to other platforms. In addition, the single deployment method of the traditional platform architecture usually requires the entire application to be redeployed (i.e., adding code, compiling, testing, deploying, etc.) when it is necessary to expand services or increase the number of users, and the flexibility and scalability are poor. Summary of the invention

[0003] In view of this, an object of an embodiment of the present invention is to provide a method and device for processing based on a distributed platform architecture.

[0004] To achieve the above-mentioned purpose, in a first aspect, an embodiment of the present invention provides a distributed platform architecture processing method, wherein the platform architecture includes a first platform and a second platform, wherein the first platform includes at least an adapter and an external server, and the second platform includes at least a registration center, a kernel, and an internal service server, and the method includes:

[0005] For any application, dividing the functional module of the application into a first functional module and a second functional module;

[0006] Deploy the first functional module on an external server of the platform architecture, and deploy the second functional module on internal servers of the platform architecture respectively;

[0007] When the client calls the first functional module, based on the first calling request initiated by the client, obtaining the service of the first functional module through the first platform;

[0008] In the case where the client calls the second functional module, based on the second calling request initiated by the client, the service of the second functional module is obtained from the second platform through the first platform.

[0009] As an optional embodiment, for any application, dividing the functional modules of the application into a first functional module and a second functional module includes:

[0010] For any application, obtain the legend identification of each functional module in the application;

[0011] Each functional module in the application is divided into a first functional module and a second functional module according to the legend mark.

[0012] As an optional embodiment, when the client calls the first functional module, obtaining the service of the first functional module through the first platform based on the first calling request initiated by the client includes:

[0013] In the case where the client calls the first functional module, sending a first calling request to the adapter of the first platform through the client;

[0014] Based on the first call request, obtaining, through the adapter, an access address of the external server where the first functional module is located from a registration center of the second platform;

[0015] Acquire the service of the first functional module from the external server according to the access address.

[0016] As an optional embodiment, obtaining the service of the first functional module from the external server according to the access address includes:

[0017] sending the first call request to the external server corresponding to the access address through the adapter, so that the external server responds to the first call request;

[0018] A response result to the first call request is obtained from the external server interface through the adapter, and the response result is sent to the client.

[0019] As an optional embodiment, when the client calls the second functional module, obtaining the service of the second functional module from the second platform through the first platform based on the second calling request initiated by the client includes:

[0020] When the client calls the second functional module, sending the second calling request to the kernel of the second platform through the external server of the first platform;

[0021] The service of the second functional module is obtained from the internal server of the second platform through the kernel of the second platform, wherein the service of the second functional module obtained is obtained in response to the second calling request.

[0022] As an optional embodiment, obtaining the service of the second functional module from an internal server of the second platform through the kernel of the second platform includes:

[0023] receiving the second call request through the business interface of the kernel of the second platform, and obtaining the business data and business rules in the second call request;

[0024] Based on the business rule, activating the internal server of the second platform through the business interface of the kernel of the second platform;

[0025] The service of the second functional module is obtained through the internal server of the second platform and based on the business data and business rules.

[0026] As an optional embodiment, activating the internal server of the second platform through the business interface of the kernel of the second platform based on the business rule includes:

[0027] Acquire configuration information of an extension class matching the business rule through a business interface of the kernel of the second platform;

[0028] The extension class module of the internal server of the second platform is called according to the configuration information of the extension class through the service interface of the kernel of the second platform to activate the internal server of the second platform.

[0029] As an optional embodiment, obtaining the service of the second functional module through the internal server of the second platform and based on the business data and business rules includes:

[0030] The service operation corresponding to the business data is executed through the extension class module corresponding to the business rule in the internal server of the second platform to obtain the service of the second functional module.

[0031] As an optional embodiment, the access addresses of the services corresponding to the functional modules of the application are all registered in the registration center of the second platform.

[0032] In a second aspect, an embodiment of the present invention provides a processing device based on a distributed platform architecture, wherein the platform architecture includes a first platform and a second platform, wherein the first platform includes at least an adapter and an external server, and the second platform includes at least a registration center, a kernel, and an internal service server, and the device includes:

[0033] A function division module, used for dividing a function module of any application into a first function module and a second function module;

[0034] A deployment module, used to deploy the first functional module on an external server of the platform architecture, and to deploy the second functional module on internal servers of the platform architecture respectively;

[0035] A first calling module, configured to obtain a service of the first functional module through the first platform based on a first calling request initiated by the client when the client calls the first functional module;

[0036] The second calling module is used to obtain the service of the second functional module from the second platform through the first platform based on a second calling request initiated by the client when the client calls the second functional module.

[0037] The above technical solution has the following beneficial effects: a distributed platform architecture is adopted, the platform architecture is divided into a first platform and a second platform, and the adapter and external server are deployed on the first platform, and the registration center, kernel and internal server are deployed on the second platform. Based on this, the functional modules of the application are classified and deployed to the external server and the internal server respectively, so that the various functional modules of the application are independent. When the application has new functions to add or increase the number of users, there is no need to redeploy the entire application, only the new functional modules need to be deployed, which improves the flexibility and scalability of the application. Moreover, the various functional modules of the application are independent and do not need to depend on each other. Even if part or one of the functional modules fails, it will not affect the entire application, thereby improving the reliability of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 It is a schematic diagram of the structure of the accounting system deployed on the traditional platform architecture in the relevant technology;

[0040] Figure 2 It is a schematic diagram of the structure of a distributed platform architecture provided by an embodiment of the present invention;

[0041] Figure 3 It is a flow chart of a distributed platform architecture processing method provided by an embodiment of the present invention;

[0042] Figure 4 is a schematic structural block diagram of a distributed platform architecture processing device provided by an embodiment of the present invention;

[0043] Figure 5 is a schematic structural block diagram of a computer-readable storage medium provided by an embodiment of the present invention;

[0044] Figure 6 It is a schematic structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] In order to solve the related problems in the traditional platform architecture, an embodiment of the present invention provides a processing method based on a distributed platform architecture, which can classify the functional modules of an application or the application, for example, into two categories of external services and internal services, and deploy the two categories of functional modules or applications on different servers to provide different services. In this way, the various functional modules of the application or the applications in a certain system can be independent of each other. When the application has a new function to add requirements, or a system needs to add a new application, there is no need to redeploy the entire application or system. Only the new functional modules or new applications need to be deployed, which improves the flexibility and scalability of the application or system. Moreover, since the various functional modules or applications of the application are independent and do not need to rely on each other, even if part or one of the functional modules fails, it will not affect the entire application or the entire system, thereby improving the reliability of the application or system.

[0047] Figure 2 is a schematic diagram of a distributed platform architecture provided by an embodiment of the present invention, such as Figure 2As shown, the platform architecture provided by the embodiment of the present invention may include an E (Extention, corresponding to the "first platform" below) part and a C (Core, corresponding to the "second platform" below) part.

[0048] Part E may include an adapter and an external server. The external server is deployed with an application that provides services to the outside or a functional module that provides services to the outside in the application, provides a programming interface to the client, and implements the implementation logic of the feature application. When the interface request (such as the second call request below) requires the extension of the internal server, the external server forwards the request to the internal server. The adapter is responsible for parsing, for example, request messages from the client (such as the first call request below, etc.) and assembling response messages, and separating operations such as message parsing, message encryption and decryption, message verification, and message standardization, providing standard, valid, and correct data for internal and external servers, and is also used to shield technical differences (http requests / message queues) and deployment differences (such as from mobile clients / cloud service platforms) from the client, etc., thereby separating some operations that are not related to business processing and making the service more focused on the business.

[0049] Part C can include the core kernel, the registration center, and the internal server. The kernel can encapsulate the models, processes, and behaviors related to communication, resources, and business of parts E and C. When part E communicates and interacts with part C, the kernel provides access interfaces and processes, etc. It configures system kernel components and business kernel components. The system kernel components, for example, provide interfaces such as cache and database access, and define the processing flow of cache and database access in the form of templates, providing a system configuration basis for requests from external servers. The business kernel components provide access interfaces and processes that are specifically applicable to the business of the platform architecture, and provide a business service basis for requests from external servers. For the kernel, the kernel components are required to be as small as possible to ensure a high degree of business abstraction, refined interface contract expression, and minimum memory usage. The registration center is responsible for managing the network address of the service. Its frameworks include eureka (a service discovery framework developed by Netflix) and nacos (a dynamic service discovery and configuration management service management platform for building cloud native applications. The working principle of the registration center mainly includes service registration, service heartbeat and service synchronization). When services call each other, they obtain the registration list to obtain the address information of the service access. The registration center manages all registered services to ensure that when services call each other, they can obtain the access address of the called service through the service list provided by the registration center. The internal server extends the functions provided by the kernel and is an independent component that provides additional functions. For example, the repayment calculation of the accounting module of financial credit is the basic business component of the kernel, but for 7*24 (i.e., seven days, 24 hours a day) business, it is an extended function of repayment calculation, which belongs to the extended component of the internal server. There is no dependency between the extension components in the internal server. Which component is "activated" is determined by the request scenario (such as the business rules in the call request below). For example, the repayment transaction scenario can include three processing processes: deduction, repayment and notification. Among them, the execution of deduction, repayment and notification is handled by the internal server, and the execution process of first activating payment deduction, then activating repayment processing, and finally activating notification results is defined by the repayment processing process template defined in the kernel. For the kernel server, it is like a huge interface list, providing rich functional implementation for external services, but different kernel requests may require only a small part of the interface in the huge list. For example, a query request only requires the operation of accessing the database and obtaining data results, while a repayment transaction requires a series of operations such as payment, repayment, account entry, and notification. Therefore, the required kernel interface range is not the same for each customer request.

[0050] based on Figure 2The platform architecture shown in the figure, the embodiment of the present invention provides a distributed platform architecture processing method. The following is a detailed description of a distributed platform architecture processing method according to the embodiment of the present invention in conjunction with the accompanying drawings.

[0051] Figure 3 FIG. 1 is a flow chart of a distributed platform architecture processing method provided by an embodiment of the present invention. Figure 3 As shown, a distributed platform architecture processing method may include the following steps:

[0052] Step 301: for any application, divide the functional modules of the application into a first functional module and a second functional module.

[0053] Among them, the first functional module is, for example, an externally oriented functional module or a functional module that provides services to the outside, and correspondingly, the second functional module is an internally oriented functional module or a functional module that provides services to the inside. As an embodiment, in the platform architecture deployment, the legend identification of each functional module in the application can be obtained, and then each functional module in the application can be converted into a first functional module and a second functional module according to the legend identification. As another embodiment, it is also possible to make division identifications in each functional module of the application, and classify the functional modules according to the division identifications. For example, the product-level (general, abstract, common) functional modules of the application are divided into functional modules that provide services internally, and the project-level (individual, specific, and different) functional modules are divided into functional modules that provide services to the outside.

[0054] Step 302: deploy the first functional module on an external server of the platform architecture, and deploy the second functional module on an internal server of the platform architecture.

[0055] In the embodiment of the present invention, for example, the product-level (general, abstract, common) functional modules of the application are divided into functional modules that provide services internally and deployed to internal services; the project-level (individual, specific, and differentiated) functional modules are divided into functional modules that provide services externally and deployed to external servers. The application is disassembled into independent services (i.e., independent functional modules), each of which can be independently deployed on different hardware platforms, breaking the dependence of traditional architecture on specific platforms and realizing flexible deployment of applications.

[0056] Specifically, first, interfaces, mechanisms, templates, etc. can be divided into the kernel, and then interfaces, templates, and abstract concrete implementations (called extensions or mechanisms) can be divided into internal servers and external servers. For example, product-level basic components (such as payment deduction functions) are divided into internal servers, product-level general functions (such as online and offline repayment functions) are divided into internal servers, and project-level functional components (such as Everbright repayment functions) are divided into external servers; then adapters, registration centers, etc. are separated from the traditional platform architecture to be responsible for message parsing, transmission, service management, etc. In this way, the kernel only needs to focus on the essence of the business (such as data and behavior), the internal server only needs to focus on general, highly reusable product-level requirements, the external server only needs to focus on personalized and differentiated local requirements, the adapter only needs to focus on the differences in messages from different manufacturers, and the registration center only needs to care about the technical issues of communication between services. That is, the separation of strategy and mechanism is achieved, and the strategy can be flexibly adjusted without changing the mechanism, reducing maintenance costs and improving application flexibility.

[0057] For example, in the financial credit field, the payment deduction module of the accounting system is the operation of deducting from the customer's bank account during the loan, the repayment processing module is responsible for repayment transaction processing and account processing, and the notification result module is responsible for pushing the repayment transaction results to the client operation. Corresponding to this embodiment of the present invention, in the platform architecture, the payment deduction module can be split into two parts: the payment interface and the payment deduction extension, and the payment deduction extension is further split into modules such as Tonglian payment, Baofu payment, and JD payment; the repayment processing module is split into two parts: the repayment processing interface and the process template, and the repayment processing extension, wherein the repayment processing extension includes online repayment and offline repayment, wherein the repayment processing extension is further split into two parts: the extension of internal services and the extension of external services; the notification result module is split into two parts: the notification interface and the notification implementation, wherein the notification implementation includes synchronous notification, asynchronous notification, file notification, etc. Among them, the repayment processing module is split into repayment of internal services and repayment of external services, so that the repayment of internal services is deployed on the internal server, and the repayment of external services is deployed on the external server. This is because the customization requirements of the repayment business are relatively obvious. Through internal and external splitting, the repayment processing of specific businesses is separated from the general, product-level processing, so as to meet the requirements of future architecture in terms of portability, flexibility, extensibility, and scalability.

[0058] Step 303: When the client calls the first functional module, based on the first calling request initiated by the client, the service of the first functional module is obtained through the first platform.

[0059] As an optional embodiment, a first call request is sent to the adapter of the first platform through the client, and based on the first call request, the access address of the external server where the first functional module is located is obtained from the registration center of the second platform through the adapter, and the service of the first functional module is obtained from the external server according to the access address. Furthermore, the first call request is sent to the external server corresponding to the access address through the adapter, so that the external server responds to the first call request, and the response result of the first call request is obtained from the external server interface through the adapter, and the response result is sent to the client.

[0060] The client can be, for example, a mobile phone, a desktop, another service, or a test caller, and can be referred to as a client. In any case where data needs to be obtained through an interface (e.g., a repayment request, a balance inquiry, etc.), the client initiates, for example, a first call request. The call request may include business data and business rules, and business rules are usually conditional judgment information required to drive internal processing.

[0061] The request sent by the adapter to the external server is the information carried by the client's request (the first call request), such as business data, business rules, etc. At the same time, the adapter itself also needs to request other information required by the external server (for example, message format, encryption and decryption, communication context, etc.). For the communication context, it is to read the service list, polling call and other technical details from the registration center and encapsulate them before sending them to the external server.

[0062] In the embodiment of the present invention, the access address of each independently deployed service (application or functional module of application) is: http: / / ip:port / / , where ip can be an IP address or a domain name, and port corresponds to a port. For example, the access address of an external server is:

[0063] http: / / 192.168.31.153:8080, the deployed service name is App1

[0064] http: / / 192.168.31.154:8080, the deployed service name is App1

[0065] When an external server is used, a list of access addresses is maintained in the registration center, for example:

[0066] application access address

[0067] App1 http: / / 192.168.31.153:8080

[0068] App1 http: / / 192.168.31.154:8080

[0069] When the adapter needs to send the first call request to the external server, it obtains the service name App1 through the list of access addresses maintained by the registration center, reads two access addresses, and selects the first address for access based on the load balancing algorithm, such as polling. The second address is selected for access next time, that is, the service of App1 is obtained from the corresponding external server through the access address "http: / / 192.168.31.153:8080", thereby avoiding resource waste and improving resource utilization.

[0070] In summary, by establishing a communication connection between the client and the external server through an adapter, some operations that are not related to business processing can be separated out, allowing the service to focus more on the business, and operations such as message parsing, message encryption and decryption, message verification, and message standardization can be separated out to provide internal and external servers with standard, valid, and correct message data, thereby improving the stability of service response.

[0071] Step 304: when the client calls the second functional module, based on the second calling request initiated by the client, the service of the second functional module is obtained from the second platform through the first platform.

[0072] As an optional embodiment, when the client calls the second functional module, the second calling request is sent to the kernel of the second platform through the external server of the first platform, and the service of the second functional module is obtained from the internal server of the second platform through the kernel of the second platform, wherein the service of the second functional module obtained is obtained in response to the second calling request. Further, the second calling request can be received through the business interface of the kernel of the second platform, the business data and business rules in the second calling request are obtained, and based on the business rules, the internal server of the second platform is activated through the business interface of the kernel of the second platform, and the service of the second functional module is obtained through the internal server of the second platform and based on the business data and business rules. Wherein, based on the business rules, the internal server of the second platform is activated through the business interface of the kernel of the second platform, specifically, the configuration information of the extension class matching the business rule can be obtained through the business interface of the kernel of the second platform, and the extension class module of the internal server of the second platform is called according to the configuration information of the extension class through the business interface of the kernel of the second platform to activate the internal server of the second platform, and then the service operation corresponding to the business data is executed through the extension class module corresponding to the business rule in the internal server of the second platform to obtain the service of the second functional module.

[0073] Combination Figure 2It can be understood from the above content that the internal server in the embodiment of the present invention provides all extended functions, and a client request only requires a part of the list of all functions, for example, the business rules in the client request carry pay=tonglian, that is, only the extended class that implements Tonglian payment will be activated. In addition, the kernel in the embodiment of the present invention defines the behavior specification to ensure the stability of communication between the external server and the internal server, for example, the interface is stable, the configuration rules and communication are stable, thus ensuring the stability of operation between the two services, and the external server does not need to understand the implementation details of the internal server extension class, even if the extension class is maintained and modified, the external server will not perceive such changes.

[0074] The second call request in the embodiment of the present invention includes business data, such as the repayment amount that needs to be transmitted when making a repayment request, and may also include business rules, such as the payment channel pay=tonglian, etc. It may also include some non-technical information, such as the message format json / xml / text, communication method: http / file / mq, etc.

[0075] For example, in a repayment request process, the client initiates repayment and sends the client repayment request to the external server through the adapter. The external server provides a repayment request interface and other functions for the client to operate. However, the actual repayment request requires deducting the repayment amount from the target bank account and completing the repayment offset, etc. Therefore, the external server will send a request to the second platform based on the client's request. Specifically, the repayment request (including the repayment amount, deduction account information, deduction channel, offset loan number, etc.) is first sent to the kernel, and the repayment process processing includes the payment deduction module , repayment processing module and notification result module. The kernel activates the corresponding functional modules (payment deduction module, repayment processing module and notification result module) in the internal server according to the information in the repayment request. For example, the functional module of the payment deduction channel Tonglian Payment in the payment deduction module is activated to deduct the repayment amount from the Tonglian payment channel. The kernel also specifies the repayment process processing flow, first activating the payment deduction module, then activating the repayment processing module and finally activating the notification result module. The kernel will also activate these modules in sequence according to this flow to complete the processing of the repayment request. After the payment deduction module, repayment processing module and notification result module in the internal server complete the relevant operations in sequence, the execution results will be returned to the kernel, which will then return them to the external server and finally to the client to notify the client of the execution results, for example, repayment success or repayment failure.

[0076] In summary, the embodiment of the present invention adopts a distributed platform architecture, divides the platform architecture into a first platform and a second platform, and deploys an adapter and an external server on the first platform, and deploys a registration center, a kernel and an internal server on the second platform. Based on this, the functional modules of the application are classified and deployed to the external server and the internal server respectively, so that the various functional modules of the application are independent. When the application has new functions to add or increase the number of users, there is no need to redeploy the entire application, only the new functional modules need to be deployed, which improves the flexibility and scalability of the application. Moreover, the various functional modules of the application are independent and do not need to depend on each other. Even if part or one of the functional modules fails, it will not affect the entire application, thereby improving the reliability of the application.

[0077] Correspondingly, the embodiment of the present invention further provides a distributed platform architecture processing device. The platform architecture in the embodiment of the present invention includes a first platform and a second platform, the first platform includes at least an adapter and an external server, and the second platform includes at least a registration center, a kernel, and an internal service server. Figure 4 is a schematic structural block diagram of a distributed platform architecture processing device provided by an embodiment of the present invention, such as Figure 4 As shown, a distributed platform architecture processing device 400 may include:

[0078] A function division module 401 is used to divide the function modules of any application into a first function module and a second function module;

[0079] A deployment module 402, configured to deploy the first functional module on an external server of the platform architecture, and to deploy the second functional module on internal servers of the platform architecture;

[0080] A first calling module 403 is used to obtain the service of the first functional module through the first platform based on a first calling request initiated by the client when the client calls the first functional module;

[0081] The second calling module 404 is used to obtain the service of the second functional module from the second platform through the first platform based on the second calling request initiated by the client when the client calls the second functional module.

[0082] The embodiment of the present invention adopts a distributed platform architecture, divides the platform architecture into a first platform and a second platform, and deploys an adapter and an external server on the first platform, and deploys a registration center, a kernel and an internal server on the second platform. Based on this, the functional modules of the application are classified and deployed to the external server and the internal server respectively, so that the various functional modules of the application are independent. When the application has new functions to add or increase the number of users, there is no need to redeploy the entire application, only the new functional modules need to be deployed, which improves the flexibility and scalability of the application. The various functional modules of the application are independent and do not need to rely on each other. Even if part or one of the functional modules fails, it will not affect the entire application, thereby improving the reliability of the application.

[0083] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0084] The embodiment of the present invention further provides a computer readable storage medium 500, such as Figure 5 As shown, a computer program is stored in the computer-readable storage medium 500, and when the computer program is executed by the processor, each step of the above-mentioned distributed platform architecture processing method is implemented. For example, when the computer program is executed by the processor, the following steps are implemented:

[0085] For any application, dividing the functional module of the application into a first functional module and a second functional module;

[0086] Deploy the first functional module on an external server of the platform architecture, and deploy the second functional module on internal servers of the platform architecture respectively;

[0087] When the client calls the first functional module, based on the first calling request initiated by the client, obtaining the service of the first functional module through the first platform;

[0088] In the case where the client calls the second functional module, based on the second calling request initiated by the client, the service of the second functional module is obtained from the second platform through the first platform.

[0089] In some embodiments, the storage medium is further configured to store program code 501 for performing the following steps:

[0090] For any application, dividing the functional module of the application into a first functional module and a second functional module;

[0091] Deploy the first functional module on an external server of the platform architecture, and deploy the second functional module on internal servers of the platform architecture respectively;

[0092] When the client calls the first functional module, based on the first calling request initiated by the client, obtaining the service of the first functional module through the first platform;

[0093] In the case where the client calls the second functional module, based on the second calling request initiated by the client, the service of the second functional module is obtained from the second platform through the first platform.

[0094] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. Of course, there are other ways of readable storage media, such as quantum memory, graphene memory, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electrical carrier signals and telecommunication signals.

[0095] The embodiment of the present invention further provides an electronic device 600, such as Figure 6 As shown, it includes one or more processors 601 , a communication interface 602 , a memory 603 and a communication bus 604 , wherein the processor 601 , the communication interface 602 , and the memory 603 communicate with each other via the communication bus 604 .

[0096] Memory 603, used for storing computer programs;

[0097] The processor 601 is used to implement the steps of the above-mentioned distributed platform architecture processing method when executing the program stored in the memory 603. For example, the processor 601 implements the following steps when executing the program stored in the memory 603:

[0098] For any application, dividing the functional module of the application into a first functional module and a second functional module;

[0099] Deploy the first functional module on an external server of the platform architecture, and deploy the second functional module on internal servers of the platform architecture respectively;

[0100] When the client calls the first functional module, based on the first calling request initiated by the client, obtaining the service of the first functional module through the first platform;

[0101] In the case where the client calls the second functional module, based on the second calling request initiated by the client, the service of the second functional module is obtained from the second platform through the first platform.

[0102] Processor 601 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.

[0103] The memory 603 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 603 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 603 may include a removable or non-removable (or fixed) medium. In a specific embodiment, the memory 603 is a non-volatile solid-state memory. In a specific embodiment, the memory 603 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0104] Communication bus 604 includes hardware, software or both, for coupling the above-mentioned components to each other.For example, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations.In suitable cases, bus may include one or more buses.Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0105] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0106] Although the present application provides method operation steps such as embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0107] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0108] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0110] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A distributed platform architecture processing method, characterized in that: The platform architecture includes a first platform and a second platform, the first platform includes at least an adapter and an external server, the second platform includes at least a registration center, a kernel and an internal service server, and the method includes: For any application, dividing the functional module of the application into a first functional module and a second functional module; Deploy the first functional module on an external server of the platform architecture, and deploy the second functional module on internal servers of the platform architecture respectively; When the client calls the first functional module, based on the first calling request initiated by the client, obtaining the service of the first functional module through the first platform; In the case where the client calls the second functional module, based on the second calling request initiated by the client, the service of the second functional module is obtained from the second platform through the first platform.

2. The method according to claim 1, characterized in that For any application, dividing the functional modules of the application into a first functional module and a second functional module includes: For any application, obtain the legend identification of each functional module in the application; Each functional module in the application is divided into a first functional module and a second functional module according to the legend mark.

3. The method according to claim 1, characterized in that In the case where the client calls the first functional module, based on the first calling request initiated by the client, obtaining the service of the first functional module through the first platform includes: In the case where the client calls the first functional module, sending a first calling request to the adapter of the first platform through the client; Based on the first call request, obtaining, through the adapter, an access address of the external server where the first functional module is located from a registration center of the second platform; Acquire the service of the first functional module from the external server according to the access address.

4. The method according to claim 3, characterized in that The acquiring the service of the first functional module from the external server according to the access address includes: sending the first call request to the external server corresponding to the access address through the adapter, so that the external server responds to the first call request; A response result to the first call request is obtained from the external server interface through the adapter, and the response result is sent to the client.

5. The method according to claim 1, characterized in that In the case where the client calls the second functional module, based on the second calling request initiated by the client, obtaining the service of the second functional module from the second platform through the first platform includes: When the client calls the second functional module, sending the second calling request to the kernel of the second platform through the external server of the first platform; The service of the second functional module is obtained from the internal server of the second platform through the kernel of the second platform, wherein the service of the second functional module obtained is obtained in response to the second calling request.

6. The method according to claim 5, characterized in that The obtaining the service of the second functional module from the internal server of the second platform through the kernel of the second platform includes: receiving the second call request through the business interface of the kernel of the second platform, and obtaining the business data and business rules in the second call request; Based on the business rule, activating the internal server of the second platform through the business interface of the kernel of the second platform; The service of the second functional module is obtained through the internal server of the second platform and based on the business data and business rules.

7. The method according to claim 6, characterized in that The activating the internal server of the second platform through the business interface of the kernel of the second platform based on the business rule includes: Acquire configuration information of an extension class matching the business rule through a business interface of the kernel of the second platform; The extension class module of the internal server of the second platform is called according to the configuration information of the extension class through the service interface of the kernel of the second platform to activate the internal server of the second platform.

8. The method according to claim 7, characterized in that The obtaining of the service of the second functional module through the internal server of the second platform and based on the business data and business rules includes: The service operation corresponding to the business data is executed through the extension class module corresponding to the business rule in the internal server of the second platform to obtain the service of the second functional module.

9. The method according to any one of claims 1 to 8, characterized in that: The access addresses of the services corresponding to the functional modules of the application are all registered in the registration center of the second platform.

10. A distributed platform architecture processing device, characterized in that: The platform architecture includes a first platform and a second platform, the first platform includes at least an adapter and an external server, the second platform includes at least a registration center, a kernel and an internal service server, and the device includes: A function division module, used for dividing a function module of any application into a first function module and a second function module; A deployment module, used to deploy the first functional module on an external server of the platform architecture, and to deploy the second functional module on internal servers of the platform architecture respectively; A first calling module, configured to obtain a service of the first functional module through the first platform based on a first calling request initiated by the client when the client calls the first functional module; The second calling module is used to obtain the service of the second functional module from the second platform through the first platform based on a second calling request initiated by the client when the client calls the second functional module.