Method and device for configuring business system
By configuring the component switch status in the configuration file of the business system and using the encapsulated development framework to load the components, the problem of high development and operation and maintenance costs in the existing technology when the business management platform interacts with third-party organizations is solved, and the business system is realized. Quick configuration and efficient operation and maintenance.
Patent Information
- Application Number
- CN202011511386.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-12-18
AI Technical Summary
When existing business management platforms interact with third-party organizations, they need to frequently build frameworks and migrate codes, resulting in high development and operation and maintenance costs. In addition, customized development and deployment methods require redundant code development and system configuration based on different business needs. Low efficiency.
By configuring the component on/off status in the configuration file of the business system, and using the encapsulated development framework to load the components in the on state, the business system can be quickly configured, the development and operation and maintenance costs can be reduced, and the reliability and stability of the system can be ensured.
It achieves fast and accurate privatized configuration of business systems, reduces system development and maintenance costs, improves configuration efficiency, and achieves flexible decoupling through loose coupling design.
Smart Images

Figure CN112631797B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a method and device for configuring a business system. Background Art
[0002] Currently, the business management platform has a lot of business dealings with third-party institutions. The various business subsystems of the business management platform interact with the data of the third-party systems and are privately deployed. Operation and maintenance personnel or users connect with the business management platform in a cloud-ground collaborative mode and query relevant data through a visual interface.
[0003] However, in actual business operations, the privatization configuration of each business system of the resource management platform for the institution's related business requires the construction of a new framework, code migration and transformation, which often requires a very large workload. In addition, the customized development and deployment method requires redundant code development based on the needs of various business parties, and the system development cost and daily operation and maintenance cost are relatively high. Summary of the invention
[0004] The present application provides a method and device for configuring a business system, which is conducive to realizing rapid and accurate privatization configuration of the business system, effectively improving the configuration efficiency of the business system, and reducing the development cost and maintenance cost of the system.
[0005] In a first aspect, a method for configuring a business system is provided, comprising: a server receiving a first request message from a client, the first request message being used to request configuration of a first business system; the server scanning a configuration file of the first business system based on the request message, the configuration file comprising switch status information of at least one component, the switch status information being used to represent the switch status of each component in the at least one component; the server loading the component with the switch status turned on into the first business system by using a packaged development framework, the packaged development framework comprising the at least one component.
[0006] In the embodiment of the present application, during the process of configuring the above-mentioned business system by the server, the business system does not need to pay attention to the implementation of the underlying framework. The server only needs to configure the component switch in the configuration file of the business system, and the remaining operations are performed by the above-mentioned encapsulated development framework, which is conducive to the rapid configuration of the above-mentioned business system and reduces the development cost and maintenance cost of the system. And because the above-mentioned encapsulated development framework is an encapsulation of various existing technologies, it not only realizes the rapid configuration of the above-mentioned business system, but also ensures the reliability and stability of the system. And the development framework and the above-mentioned business system are loosely coupled, so the above-mentioned business system does not need to care about the life cycle of the system after configuration, and flexible decoupling can be achieved.
[0007] In combination with the first aspect, in certain implementations of the first aspect, the switch status of each component in the at least one component is pre-configured in a configuration file of the first business system; the method also includes: the server determines the switch status of each component in the at least one component based on the configuration file.
[0008] In combination with the first aspect, in some implementations of the first aspect, loading the component with the switch state turned on into the first business system includes: the server loading the component with the switch state turned on into a container of the first business system.
[0009] In combination with the first aspect, in some implementations of the first aspect, the at least one component includes one or more of the following: a message queue component, a microservice component, a remote procedure call RPC interface component, a cache database component, or a data encryption and decryption component.
[0010] In combination with the first aspect, in certain implementations of the first aspect, after the server uses the encapsulated development framework to load the component with the switch state turned on into the first business system, it includes: the server receives a second request message from the client, and the second request message is used to obtain the image information of the first business system; the server downloads and stores the image information of the first business system according to the second request message.
[0011] In combination with the first aspect, in certain implementations of the first aspect, after the server uses the encapsulated development framework to load the component with the switch state turned on into the first business system, it includes: the server receives a third request message from the client, and the third request message is used to request to create a network environment for the server, limit the container running resources of the server, or execute user instructions; the server creates a network environment for the server, limits the container running resources of the server, or executes the user instructions based on the third request message.
[0012] In a second aspect, a device for configuring a business system is provided, comprising: a receiving module and a processing module; wherein the receiving module is used to: receive a first request message from a client, the first request message being used to request configuration of a first business system. The processing module is used to: based on the request message, scan a configuration file of the first business system, the configuration file comprising switch status information of at least one component, the switch status information being used to indicate the switch status of each component in the at least one component; and, using a packaged development framework, load the component with the switch status turned on into the first business system, the packaged development framework comprising the at least one component.
[0013] In combination with the second aspect, in a certain implementation of the second aspect, the switch status of each component in the at least one component is pre-configured in the configuration file of the first business system; the processing module is specifically used to: determine the switch status of each component in the at least one component according to the configuration file.
[0014] In combination with the second aspect, in a certain implementation of the second aspect, the processing module is specifically used to: load the component with the switch state being on into the container of the first business system.
[0015] In combination with the second aspect, in a certain implementation of the second aspect, the at least one component includes one or more of the following: a message queue component, a microservice component, an RPC interface component, a cache database component, or a data encryption and decryption component.
[0016] In combination with the second aspect, in a certain implementation method of the second aspect, the above-mentioned receiving module is specifically used to: receive a second request message from the above-mentioned client, and the second request message is used to obtain the mirror information of the above-mentioned first business system; the above-mentioned processing module downloads and stores the mirror information of the above-mentioned first business system according to the above-mentioned second request message.
[0017] In combination with the second aspect, in a certain implementation of the second aspect, the above-mentioned receiving module is specifically used to: receive a third request message from the above-mentioned client, the third request message being used to request to create a network environment for the above-mentioned server, limit the container running resources of the above-mentioned server, or execute user instructions; the above-mentioned processing module is used to: based on the above-mentioned third request message, create a network environment for the above-mentioned server, limit the container running resources of the above-mentioned server, or execute the user instructions.
[0018] In a third aspect, an electronic device is provided, including a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory to implement the method in any possible implementation of the first aspect. Optionally, the electronic device also includes a memory. Optionally, the electronic device also includes a communication interface, and the processor is coupled to the communication interface.
[0019] In one implementation, the electronic device is a server. When the electronic device is a server, the communication interface may be a transceiver, or an input / output interface.
[0020] In another implementation, the electronic device is a chip configured in a server. When the electronic device is a chip configured in a server, the communication interface may be an input / output interface.
[0021] In a fourth aspect, a processor is provided, comprising: an input circuit, an output circuit and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of the first aspect.
[0022] In the specific implementation process, the processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.
[0023] In a fifth aspect, a processing device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any possible implementation of the first aspect.
[0024] Optionally, there are one or more processors and one or more memories.
[0025] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0026] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0027] It should be understood that the relevant data interaction process, such as sending indication information, can be a process of outputting indication information from a processor, and receiving capability information can be a process of receiving input capability information from a processor. Specifically, the processed output data can be output to a transmitter, and the input data received by the processor can come from a receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.
[0028] The processing device in the fifth aspect mentioned above can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0029] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect.
[0030] In a seventh aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0032] Figure 1 is a schematic flow chart of a method for configuring a business system provided in an embodiment of the present application;
[0033] Figure 2 It is a functional schematic diagram of the encapsulated development framework provided in the embodiment of the present application;
[0034] Figure 3 A schematic flow chart of a configuration switch provided in an embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of an implementation of a configured business system provided in an embodiment of the present application;
[0036] Figure 5 is a schematic block diagram of a device for configuring a business system provided in an embodiment of the present application;
[0037] Figure 6 It is a schematic block diagram of another device for configuring a business system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.
[0039] Currently, the business management platform has a lot of business dealings with third-party institutions. The business subsystems of the business management platform interact with the data of third-party businesses and are privately deployed. Operation and maintenance personnel or users connect with the business management platform through the cloud-ground collaboration model and query relevant business data through a visual interface.
[0040] In specific business operations, commonly used methods for configuring business systems include the following:
[0041] 1. Customized development and deployment method: Based on the data of the third-party related business system, the business management platform conducts customized development and deployment of business system interaction by inputting field information related to the shared data of both parties.
[0042] 2. Interface method: Check the business data interaction rules and embed them into the business system interface, and synchronize the business system data consistency under the constraints of multiple parties.
[0043] 3. Data push method: According to the format agreed upon by the customer, public and private key data transmission is encrypted, and data is transmitted between the business system and each customer in the form of a message queue for management.
[0044] 4. Data storage method: Currently, business data structure storage uses a relational database management system (structured query language, SQL) and a storage engine (elasticsearch, ES), which supports fast query, add, modify and delete operations.
[0045] However, in actual business operations, the privatization deployment of each business subsystem of the business management platform to third-party institutions requires the construction of a new framework, code migration and transformation, resulting in a very large workload and scheduling time. The customized development and deployment method requires redundant code development according to the needs of various business parties, and the system development cost and daily operation and maintenance cost are high. In addition, the data push method is costly in docking with other business systems or institutions, and developers need to spend a long time to sort out models and push methods. The real-time and data risks are very high, and it is difficult to control and solve the authenticity of information and prevent the risk of information tampering. There are fewer supported functions for business data storage, and there are more technical components used in the projects configured by the business system. The code transformation and storage requirements on the server performance are relatively large, and more memory space is needed for optimization.
[0046] In view of this, an embodiment of the present application provides a method and device for configuring a business system, by configuring component switches in the configuration file of the business system, and loading the components with switches in the on state into the above-mentioned business system through an encapsulated development framework, thereby realizing rapid configuration of the business system, and the framework can be loosely coupled with the above-mentioned business system.
[0047] It should be understood that the method of the embodiment of the present application is applicable to a platform or system capable of business management, and the business management refers to the ability to manage the enterprise's assets and business in an information-based manner to achieve overall control. However, the embodiment of the present application can also be applied to other business systems, and the embodiment of the present application is not limited to this.
[0048] Before introducing the method and device for configuring a business system provided in the embodiments of the present application, the following points are explained.
[0049] First, in the embodiments shown below, each term and English abbreviation, such as the packaged development framework, etc., are illustrative examples given for the convenience of description and should not constitute any limitation to this application. This application does not exclude the possibility of defining other terms that can achieve the same or similar functions in existing or future protocols.
[0050] Second, the first, second and various digital numbers in the embodiments shown below are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application. For example, to distinguish different request messages.
[0051] Third, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0052] In order to make the purpose and technical solution of this application clearer and more intuitive, the method and device for configuring the business system provided by the embodiment of this application will be described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.
[0053] Figure 1 FIG. 1 is a schematic flow chart of a method 100 for configuring a business system in an embodiment of the present application. Figure 1 As shown, the method 100 includes the following steps:
[0054] S101. A server receives a first request message from a client, where the first request message is used to request configuration of a first business system.
[0055] S102. The server scans a configuration file of the first business system based on the request message, where the configuration file includes switch status information of at least one component, where the switch status information is used to indicate the switch status of each component in the at least one component.
[0056] S103. The server uses a packaged development framework to load the component whose switch state is turned on into the first business system, wherein the packaged development framework includes the at least one component.
[0057] It should be understood that the first business system may also be referred to as the first application system or other system, which is not limited here. Exemplarily, the first business system may be any business subsystem or multiple business subsystems in the asset management business system, for example, it may be a business subsystem of insurance, securities, funds, futures, trusts, etc. Therefore, the first business system may correspond to multiple different types of businesses.
[0058] Exemplarily, first the client needs to send a request message, namely the first request message, to request configuration of the first business system. During the configuration process, the server needs to scan the switch status of each component in the first business system. If one or more components are turned on, it indicates that the client needs the first business system to provide business services for itself through the one or more components. Then the server needs to load the one or more components into the first business system through the encapsulated framework. Otherwise, it indicates that the client does not need the first business system to support the functions of the one or more components and will not load them.
[0059] In the embodiment of the present application, the above-mentioned business system does not need to pay attention to the specific technical implementation of the above-mentioned encapsulated development framework. It only needs to configure the component switch in its configuration file through the server. The server loads the component with the switch in the on state into the above-mentioned first business system through the encapsulated development framework, thereby realizing rapid configuration of the first business system and reducing the development cost and maintenance cost of the business system.
[0060] Combine the following Figure 2 Introduce the above encapsulated development framework, such as Figure 2 As shown, the encapsulated development framework can achieve the following functions:
[0061] 1. Basic tools: encapsulate various commonly used tool classes, such as date conversion, object attribute copying, value conversion operations and other tool classes.
[0062] 2. Package dependency management platform: formulate R&D specifications, uniformly manage the underlying dependent Jar packages, and resolve conflicting dependencies when loading projects during use.
[0063] 3. Template code: Provide basic skeleton templates, customize the selection to generate basic frameworks and business codes, avoid duplication of work in the initial stage of business system projects, and reduce the repetitive workload of relevant developers.
[0064] 4. Document module: For configuration operations such as business system parameters, code comments, document generation, etc., corresponding documents can be generated with one click, and retained or provided for internal and external interactive viewing.
[0065] 5. Adapter module: The business system supports the configuration switching of the switches of various components, including remote procedure call (RPC), message queue, cache, cloud storage or data encryption and decryption, etc. Select to load a component according to the above component switches to configure the business system.
[0066] 6. Containerization module: Based on containerization technology, the business system is quickly packaged and the microservice system is distributedly built and deployed.
[0067] It should be understood that the above-mentioned packaged development framework is an encapsulation of the program in the prior art, which effectively improves the configuration efficiency of the business system and reduces the development cost and maintenance cost of the business system.
[0068] Exemplarily, the encapsulated development framework can be a Smart framework, and the basic tool can be Smartcommon, which can provide basic encapsulation tool classes such as Json, Disruptor or Cache based on the tool library Hutool. The package dependency management platform can be Smart dependencies, which can be used to introduce open source Jar packages into the business system version management to avoid code online conflict management. The template code can be Smart archetype, and the framework can be built based on the template configurability, and various business system versions can be built with zero learning cost. The document module can be Smart doc, and the interface document uses the Open api3.0 version specification to improve the in-depth learning and understanding of applications and systems, and help the front-end and back-end separation system architecture to reduce the low cost of the architecture. The adapter module can be Smart adapter, which can unify the intermediate adaptation layer, and the business system can seamlessly integrate the yaml file development configuration. The containerization module can be Smart platform, which can formulate R&D specifications and uniformly constrain the underlying dependency isolation in the business system version management.
[0069] As an optional embodiment, the switch status of each component in the at least one component is pre-configured in the configuration file of the first business system; the method also includes: the server determines the switch status of each component in the at least one component according to the configuration file.
[0070] It should be understood that the switch state of each component in the above-mentioned at least one component is pre-configured in the configuration file of the above-mentioned first business system, that is, the component can be predetermined when the first business system is designed, or it can also be pre-set when the business system is designed according to the client business requirements.
[0071] As an optional embodiment, loading the component whose switch state is turned on into the first business system includes: the server loads the component whose switch state is turned on into a container of the first business system.
[0072] It should be understood that the switch is in the on state of the component, which may be a component required in the configuration process of the first business system, or may be a component corresponding to the function required by the business of the client.
[0073] In the embodiment of the present application, the server loads the component whose switch state is turned on into the container of the first business system, so that the client can use the function of the related component.
[0074] As an optional embodiment, the at least one component includes one or more of the following: a message queue component, a microservice component, an RPC interface component, a cache database component, or a data encryption and decryption component.
[0075] It should be understood that the number of the above components can be one or more. In addition, the at least one component mentioned above can also include other components, which will not be described in detail here.
[0076] As an optional embodiment, after the server uses the encapsulated development framework to load the component with the switch state turned on into the first business system, it includes: the server receives a second request message from the client, and the second request message is used to obtain the mirror information of the first business system; the server downloads and stores the mirror information of the first business system according to the second request message.
[0077] In a first possible implementation manner, when the client requests to obtain the image information of the first business system, the server may download the required image from the warehouse and perform a localization operation of the image through an image driver.
[0078] It should be understood that the server can load the components with the above switches on one by one. When the last component is loaded, the server references the life cycle interface (smart life cycle), and when the container of the open source framework (Spring) loads all components and completes initialization, the server will then call back the corresponding start command (Start) in the class that implements the interface.
[0079] Figure 3 A schematic flow chart of a configuration switch provided in an embodiment of the present application, such as Figure 3 As shown, the server scans the configuration file of the first business system, and obtains the component whose component switch is in the on state according to the switch state information of at least one component included in the configuration file. In this embodiment, the component whose component switch is in the on state includes an RPC interface component, a cache database component, a public-private key encryption component, etc. The server can use the packaged development framework to load the component whose component switch state is on in the business system through the singleton mode, and load the last component loaded in the life cycle.
[0080] In an embodiment of the present application, after the above-mentioned first business system is configured, the client sends a request message to the server, namely the above-mentioned second request message, so that the client can quickly obtain the first business system integrated in the image, thereby avoiding complex configuration problems. Then, the client can perform related operations locally according to the image of the first business system to realize the functions of the above-mentioned first business system.
[0081] As an optional embodiment, after the server uses the encapsulated development framework to load the component with the switch state turned on into the first business system, it includes: the server receives a third request message from the client, and the third request message is used to request to create a network environment for the server, limit the container running resources of the server, or execute user instructions; the server creates a network environment for the server, limits the container running resources of the server, or executes the user instructions based on the third request message.
[0082] It should be understood that after the above-mentioned first business system is configured, the client's request message includes multiple types, namely the above-mentioned third request message. In addition to the request message for obtaining the above-mentioned image, the request message can also be a request message for creating a network environment for the above-mentioned server, limiting the container running resources of the above-mentioned server, or executing user instructions, or the third request message is used to request the server to process other businesses, which is not limited to this embodiment of the present application.
[0083] In a first possible implementation manner, when the client requests to create a network environment for the server, the server may create and configure its network environment through a network management driver.
[0084] In a second possible implementation manner, when the client requests to limit the container running resources of the server, or to execute operations such as user instructions, the server can complete the operation by executing the driver.
[0085] As an optional embodiment, when the above-configured business system is deployed, an auxiliary tool is needed to assist the above-configured business system in realizing rapid deployment.
[0086] Exemplarily, the auxiliary tool may be an application container engine (docker), and the server may use docker to implement rapid deployment of the business system. Figure 4 shown.
[0087] exist Figure 4In the figure, the client (docker client) establishes communication with the daemon process (docker daemon) in the host and sends a request to the docker daemon. The host here can be understood as the above-mentioned server. As the main part of docker, the docker daemon first provides the function of service (server) so that the docker daemon can receive the client's request, and then the engine (engine) (deployed in the host, not shown in the figure) performs a series of tasks inside docker, each of which exists in the form of a job. The engine is used to receive, parse and execute docker commands. During the operation of the work, when the docker client needs a container image, the host can download the image from the warehouse master and slave server (docker registry) through the docker daemon, and store the downloaded image in the form of a graph or icon (graph) through the image management driver (graph driver). When the docker client needs to create a network environment for docker, the host can use the network management driver (network driver) through the docker daemon to create and configure the network environment of the docker container. When the docker client needs to limit the running resources of the docker container or execute user instructions, the host can complete it through the docker daemon execution driver (exec driver). Both network driver and exec driver can implement specific operations on containers. After the operation command on the container is executed, an actual Docker container is in running state, which has an independent file system, independent and secure operating environment, etc.
[0088] It should be understood that Docker is an open source application container engine that allows developers to package their applications and dependent packages into a portable container and then publish it to any popular Linux machine. It can also achieve virtualization. The container is completely sandboxed and there is no interface between them. In short, it is a container that can be used as an image on Linux.
[0089] According to the above Figures 1 to 4 , describes in detail the method for configuring the business system according to the embodiment of the present application, and will now be combined with Figure 5 and Figure 6 , describes in detail the device for configuring the business system provided in the embodiment of the present application.
[0090] Figure 5An apparatus 500 for configuring a service system provided in an embodiment of the present application is shown. The apparatus 500 includes: a receiving module 501 and a processing module 502 .
[0091] The receiving module 501 is used to receive a first request message from a client, wherein the first request message is used to request configuration of a first business system. The processing module 502 is used to scan a configuration file of the first business system based on the request message, wherein the configuration file includes switch status information of at least one component, wherein the switch status information is used to indicate the switch status of each component in the at least one component; and, using a packaged development framework, load the component with the switch status turned on into the first business system, wherein the packaged development framework includes the at least one component.
[0092] Optionally, the switch state of each component in the at least one component is pre-configured in a configuration file of the first business system; the processing module 502 is specifically used to determine the switch state of each component in the at least one component according to the configuration file.
[0093] Optionally, the processing module 502 is specifically configured to: load the component whose switch state is turned on into the container of the first business system.
[0094] Optionally, the at least one component includes one or more of the following: a message queue component, a microservice component, an RPC interface component, a cache database component, or a data encryption and decryption component.
[0095] Optionally, the receiving module 501 is specifically used to: receive a second request message from the client, the second request message is used to obtain the mirror information of the first business system; the processing module 502 downloads and stores the mirror information of the first business system according to the second request message.
[0096] Optionally, the receiving module 501 is specifically used to: receive a third request message from the above-mentioned client, the third request message is used to request to create a network environment for the above-mentioned server, limit the container running resources of the above-mentioned server, or execute user instructions; the processing module 502 is used to create a network environment for the above-mentioned server, limit the container running resources of the above-mentioned server, or execute the user instructions based on the above-mentioned third request message.
[0097] It should be understood that the device 500 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art will understand that the device 500 may be specifically the server in the above-mentioned embodiment, or the function of the server in the above-mentioned embodiment may be integrated in the device 500, and the device 500 may be used to execute the various processes and / or steps corresponding to the server in the above-mentioned method embodiment, and to avoid repetition, it will not be repeated here.
[0098] The above-mentioned device 500 has the function of implementing the corresponding steps executed by the server in the above-mentioned method; the above-mentioned function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned function.
[0099] In the embodiments of the present application, Figure 5 The device 500 may also be a chip or a chip system, such as a system on chip (SoC).
[0100] Figure 6 An electronic device 600 provided in an embodiment of the present application is shown. The electronic device 600 includes a processor 601, a transceiver 602, and a memory 603. The processor 601, the transceiver 602, and the memory 603 communicate with each other through an internal connection path, the memory 603 is used to store instructions, and the processor 601 is used to execute the instructions stored in the memory 603 to control the transceiver 602 to send signals and / or receive signals.
[0101] Among them, the transceiver 602 is used to receive a first request message from a client, and the first request message is used to request configuration of a first business system; the processor 601 is used to scan a configuration file of the first business system based on the above request message, and the configuration file includes switch status information of at least one component, and the above switch status information is used to indicate the switch status of each component in the above at least one component; and, using a packaged development framework, load the component with the switch status turned on into the first business system, and the above packaged development framework includes the above at least one component.
[0102] Optionally, the switch state of each component in the at least one component is pre-configured in a configuration file of the first business system; the processor 601 is specifically configured to determine the switch state of each component in the at least one component according to the configuration file.
[0103] Optionally, the processor 601 is specifically configured to load the component whose switch state is turned on into the container of the first business system.
[0104] Optionally, the at least one component includes one or more of the following: a message queue component, a microservice component, a remote procedure call RPC interface component, a cache database component, or a data encryption and decryption component.
[0105] Optionally, the transceiver 602 is specifically used to receive a second request message from the client, where the second request message is used to obtain the mirror information of the first business system; the processor 601 is used to download and store the mirror information of the first business system according to the second request message.
[0106] Optionally, the transceiver 602 is specifically used to receive a third request message from the client, where the third request message is used to request to create a network environment for the server, limit the container running resources of the server, or execute a user instruction; the processor 601 is used to create a network environment for the server, limit the container running resources of the server, or execute the user instruction based on the third request message.
[0107] It should be understood that the electronic device 600 can be specifically the server in the above embodiment, or the function of the server in the above embodiment can be integrated in the electronic device 600, and the electronic device 600 can be used to execute the various steps and / or processes corresponding to the server in the above method embodiment. Optionally, the memory 603 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 601 can be used to execute instructions stored in the memory, and when the processor executes the instruction, the processor can execute the various steps and / or processes corresponding to the server in the above method embodiment.
[0108] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0109] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0110] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to implement the above Figures 1 to 3 The various steps or processes executed by the server in the illustrated embodiment.
[0111] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program is run on a computer, the computer can execute the above Figures 1 to 4 The various steps or processes executed by the server in the illustrated embodiment.
[0112] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0114] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0115] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0116] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0117] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0118] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for configuring a business system, characterized in that: include: The server receives a first request message from the client, where the first request message is used to request configuration of a first business system; The server scans a configuration file of the first business system based on the request message, wherein the configuration file includes switch status information of at least one component, and the switch status information is used to indicate the switch status of each component in the at least one component; the at least one component includes one or more of the following: a message queue component, a microservice component, a remote procedure call RPC interface component, a cache database component, or a data encryption and decryption component; The server uses a packaged development framework to load the component with the switch in the on state into the first business system, the packaged development framework includes the at least one component, and the component with the switch in the on state is a component required in the configuration process of the first business system, or a component corresponding to the business function required by the client.
2. The method according to claim 1, characterized in that The switch state of each component in the at least one component is pre-configured in a configuration file of the first business system; The method further comprises: The server determines the switch state of each component in the at least one component according to the configuration file.
3. The method according to claim 1 or 2, characterized in that: The step of loading the component whose switch state is turned on into the first business system includes: The server loads the component whose switch state is turned on into the container of the first business system.
4. The method according to any one of claims 1 to 3, characterized in that After the server uses the packaged development framework to load the component whose switch state is turned on into the first business system, the method includes: The server receives a second request message from the client, where the second request message is used to obtain mirror information of the first business system; The server downloads and stores the mirror information of the first business system according to the second request message.
5. The method according to any one of claims 1 to 4, characterized in that After the server uses the packaged development framework to load the component whose switch state is turned on into the first business system, the method includes: The server receives a third request message from the client, where the third request message is used to request to create a network environment for the server, limit container running resources of the server, or execute a user instruction; Based on the third request message, the server creates a network environment for the server, limits container running resources of the server, or executes the user instruction.
6. A device for configuring a business system, characterized in that: include: A receiving module, used to receive a first request message from a client, where the first request message is used to request configuration of a first business system; A processing module, based on the request message, scans a configuration file of the first business system, the configuration file includes switch status information of at least one component, the switch status information is used to indicate the switch status of each component in the at least one component, the at least one component includes one or more of the following: a message queue component, a microservice component, a remote procedure call RPC interface component, a cache database component, or a data encryption and decryption component; and, using a packaged development framework, loads the component with the switch status turned on to the first business system, the packaged development framework includes the at least one component, the component with the switch status turned on is a component required in the configuration process of the first business system, or a component corresponding to the business function required by the client.
7. The device according to claim 6, characterized in that The switch state of each component in the at least one component is pre-configured in a configuration file of the first business system; The processing module is specifically used for: According to the configuration file, a switch state of each component in the at least one component is determined.
8. The device according to claim 6 or 7, characterized in that The processing module is specifically used for: The component whose switch state is turned on is loaded into the container of the first business system.
9. The device according to any one of claims 6 to 8, characterized in that The receiving module is specifically used for: receiving a second request message from the client, where the second request message is used to obtain mirror information of the first business system; The processing module downloads and stores the mirror information of the first business system according to the second request message.
10. The device according to any one of claims 6 to 9, characterized in that The receiving module is specifically used for: receiving a third request message from the client, where the third request message is used to request to create a network environment for the server, limit container running resources of the server, or execute a user instruction; The processing module creates a network environment for the server, limits container running resources of the server, or executes the user instruction based on the third request message.
11. An electronic device, characterized in that: include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store a computer program, and when the processor calls the computer program, the electronic device executes the method as claimed in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 5.
13. A chip system, characterized in that: include: A processor, used to call and run a computer program from a memory, so that a communication device equipped with the chip system executes the method described in any one of claims 1 to 5.
