CN114443169A - Method and device for realizing technical component platformization - Google Patents

Method and device for realizing technical component platformization Download PDF

Info

Publication number
CN114443169A
CN114443169A CN202210108484.6A CN202210108484A CN114443169A CN 114443169 A CN114443169 A CN 114443169A CN 202210108484 A CN202210108484 A CN 202210108484A CN 114443169 A CN114443169 A CN 114443169A
Authority
CN
China
Prior art keywords
service
container
technical
service request
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210108484.6A
Other languages
Chinese (zh)
Inventor
邵斌
于艳锋
曹佳硕
文静
徐英楠
肖宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Minsheng Banking Corp Ltd
Original Assignee
China Minsheng Banking Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Minsheng Banking Corp Ltd filed Critical China Minsheng Banking Corp Ltd
Priority to CN202210108484.6A priority Critical patent/CN114443169A/en
Publication of CN114443169A publication Critical patent/CN114443169A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method and a device for realizing technical component platform, wherein the technical component platform comprises a plurality of servers, each server comprises a service code container and a technical component container, and the method comprises the following steps: after the server acquires the service request, the service code corresponding to the service request is determined from the service code container, the service code is packaged and processed to generate a package file, the package file is sent to the technical component container, and the package file is loaded through the technical component container to process the service request. The embodiment of the invention abandons the mode of introducing the static technical components and packaging the service codes together, and the service codes and the technical components are respectively arranged in different containers, so that the technical components of the technical component containers can be uniformly managed, the occurrence of the condition that the technical components of the same type have different types is avoided, a large amount of time is not required to be invested by developers to manage the technical components, and the management cost of the technical components is reduced.

Description

Method and device for realizing technical component platformization
Technical Field
The invention relates to the technical field of software development, in particular to a method and a device for realizing the technical component platformization.
Background
In the process of developing projects based on languages such as Java, C/C + +, Python and the like, a required technical component is generally introduced into the project through introducing dependence, so that development work is carried out based on the technical component.
However, in the architecture mode mainly based on the business logic, the problems that technical components of the same type have different types, so that the versions of the technical components are difficult to manage in a unified manner, development specifications based on the technical components are difficult to popularize and the like can occur, and the management cost of the technical components is increased.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a method for implementing technology component platformization and a corresponding apparatus for implementing technology component platformization that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a method for implementing technology component platform, where the technology component platform includes a plurality of servers, each server includes a service code container and a technology component container, and the method includes:
after the server acquires a service request, determining a service code corresponding to the service request from the service code container;
packaging the service codes to generate a package file;
sending the package file to the technology component container;
and loading the package file through the technical component container to process the service request.
Optionally, after the server obtains the service request, the method further includes:
if the service code corresponding to the service request is not determined from the service code container;
sending the service request to the technology component container;
processing the service request by the technology component container.
Optionally, the loading, by the technical component container, the package file to process the service request includes:
determining a technical component corresponding to the package file from the technical component container;
loading the package file through the technical component to process the service request; wherein the technical component is developed based on a scaffold.
Optionally, the processing, by the technology component container, the service request includes:
determining a technical component corresponding to the service request from the technical component container;
processing, by the technology component, the service request; the technical component is developed based on a Web end.
Optionally, the service code is developed based on a scaffold, and further includes:
and rolling off the flow of a plurality of servers, and hot deploying the service codes developed based on the scaffold in the plurality of servers.
Optionally, the technical component platform includes a medium library, the medium library stores a medium generated by packaging the service codes based on scaffold development, and the hot deployment of the service codes based on scaffold development in several servers includes:
establishing a new class loader in the service code container;
loading the media in the media library through the new class loader to hot deploy the scaffold-based development of the business code in the business code container of the server.
Optionally, the technical component platform includes a configuration center and a Web console, where the configuration center stores all configuration files of the technical component platform and is used to perform hot update on the configuration files; the Web console is used for carrying out visualization operation on the technical assembly, wherein the visualization operation at least comprises one of monitoring, problem positioning and operation and inspection.
The embodiment of the invention discloses a device for realizing technical component platform, wherein the technical component platform comprises a plurality of servers, each server comprises a service code container and a technical component container, and the device comprises:
the code determining module is used for determining a service code corresponding to the service request from the service code container after the server acquires the service request;
the file generation module is used for packaging the service codes to generate a package file;
a file sending module for sending the package file to the technical component container;
and the file loading module is used for loading the package file through the technical component container so as to process the service request.
Optionally, after the code determination module, the method further includes:
a code undetermined module, configured to, if a service code corresponding to the service request is not determined from the service code container;
a request sending module, configured to send the service request to the technical component container;
a request execution module for processing the service request through the technical component container.
Optionally, the file loading module includes:
the first component determining submodule is used for determining the technical components corresponding to the package files from the technical component container;
the file loading submodule is used for loading the package file through the technical component so as to process the service request; wherein the technical component is developed based on a scaffold.
Optionally, the request execution module includes:
the second component determining submodule is used for determining the technical component corresponding to the service request from the technical component container;
the request execution submodule is used for processing the service request through the technical component; the technical component is developed based on a Web end.
Optionally, the service code is developed based on a scaffold, and further includes:
and the code deployment module is used for rolling off the flow of the servers and deploying the service codes developed based on the scaffold in the servers.
Optionally, the technical component platform includes a medium library, the medium library stores a medium generated by packaging the service code based on scaffold development, and the code deployment module includes:
the loader establishing submodule is used for establishing a new class loader in the service code container;
a medium loading submodule, configured to load the medium in the medium library through the new class loader, so as to hot deploy the service code developed based on a scaffold in the service code container of the server.
Optionally, the technical component platform includes a configuration center and a Web console, where the configuration center stores all configuration files of the technical component platform and is used to perform hot update on the configuration files; the Web console is used for carrying out visualization operation on the technical assembly, wherein the visualization operation at least comprises one of monitoring, problem positioning and operation and inspection.
The embodiment of the invention discloses electronic equipment, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the method for realizing the technical component platform are realized.
The embodiment of the invention discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the method for realizing the technical component platform are realized.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, after the server acquires the service request, the service code corresponding to the service request is determined from the service code container, then the service code is packaged and processed to generate the package file, the package file is sent to the technical component container, and the package file is loaded through the technical component container to process the service request. In the embodiment of the invention, the mode of introducing the static technical components and packaging the service codes is abandoned, and the service codes and the technical components are respectively deployed in different containers, so that the technical components of the technical component containers can be uniformly managed, the occurrence of the situation that the technical components of the same type have different types is avoided, developers do not need to invest a large amount of time to manage the technical components, and the management cost of the technical components is reduced.
Drawings
FIG. 1 is a flow chart of steps of one embodiment of a method of implementing technology component platformization of the present invention;
FIG. 2 is a flow diagram of steps in another embodiment of a method of the present invention for implementing the platform of a technology component;
FIG. 3 is an architectural diagram of one embodiment of a technology component platform of the present invention;
FIG. 4 is a block diagram of an embodiment of an apparatus for implementing technology component platformization according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for implementing technology component platform according to the present invention is shown, where the embodiment of the present invention may specifically include the following steps:
it should be noted that, in order to better understand the embodiment of the present invention, Java is used as an example for the embodiment of the present invention.
Step 101, after the server obtains the service request, determining a service code corresponding to the service request from the service code container.
The embodiment of the invention is applied to a technical component platform, wherein the technical component platform comprises a plurality of servers, an online transaction entrance and a gateway layer; the server comprises a service code container and a technical component container; the technical component container comprises a plurality of technical components which are not related to specific services, also called stateless components, and are methods or functions extracted from the code general part, such as an engine technical component, a batch processing technical component, an application archiving technical component, a gateway technical component and a scheduling technical component.
Specifically, the remote user terminal sends a service request to an online transaction inlet of the technical component platform, then the online transaction inlet loads the service request to a gateway layer, the gateway layer identifies a server where the requested service is located, routes and forwards the service request to the server, and after the server obtains the service request, a service code corresponding to the service request is determined from a service code container through service parameters carried by the service request.
The stateless technology components are deployed in the technology component container, and the container technology can be used for realizing the horizontal extension of the stateless technology components, for example, under the condition that the service requests sent by users are increased greatly, the number of the technology components in the technology component container cannot meet a large number of service requests, and at the moment, the container technology can be used for transversely extending the stateless technology components, so that a large number of the technology components are quickly extended to meet the requirements of the users. Meanwhile, the rapid horizontal expansion capability can be realized through cluster management tools such as Kubernets and Docker Swarm.
And 102, packaging the service codes to generate a package file.
Step 103, sending the package file to the technical component container.
Among them, the package file is a JAR file (Java Archive) which is a software package file format, and is generally used for aggregating a large number of Java class files, related metadata and resource (text, picture, etc.) files into one file in order to develop Java platform application software or library.
Specifically, a service code corresponding to the service request is determined from the service code container, the service code is packaged to generate a package file, and the package file is sent to the technical component container.
And 104, loading the package file through the technical component container to process the service request.
Specifically, a package file generated by packaging the service code is loaded in the technical component container and is operated to process (execute) the service request sent by the remote service terminal.
In the embodiment of the invention, the mode of introducing the static technical component and packaging the service code is abandoned, the technical components of the technical component container can be uniformly managed by respectively deploying the service code and the technical component in different containers, the occurrence of the situation that the technical components of the same type have different types is avoided, a large amount of time is not required for developers to invest in managing the technical components, and the management cost of the technical components is reduced.
In addition, by deploying the technical components in the technical component container, technical implementation and technical extension of the technical components can be solved by a professional technical component team, complex technical details are shielded, and delivery and development only need to be carried out according to specifications and constraints of the open capacity.
The stateless technology components are deployed in the technology component container, and the container technology can be used for realizing the horizontal extension of the stateless technology components, for example, under the condition that the service requests sent by users are increased greatly, the number of the technology components in the technology component container cannot meet a large number of service requests, and at the moment, the container technology can be used for transversely extending the stateless technology components, so that a large number of the technology components are quickly extended to meet the requirements of the users.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of a method for implementing technology component platform according to the present invention is shown, where the embodiment of the present invention may specifically include the following steps:
step 201, after the server obtains the service request, determining a service code corresponding to the service request from the service code container.
In an embodiment of the present invention, after the server obtains the service request, the method further includes: if the service code corresponding to the service request is not determined from the service code container; sending the service request to the technology component container; processing the service request by the technology component container.
In an embodiment of the present invention, the processing, by the technical component container, the service request includes: determining a technical component corresponding to the service request from the technical component container; processing, by the technology component, the service request; the technical component is developed based on a Web end.
The technical components developed based on the Web end, such as the technical components of application filing, gateways and the like, can cover all requirements of all service requests in an abstract model mode, so that the technical components developed based on the Web end can directly process the service requests without loading service codes.
Specifically, after the server obtains the service request sent by the remote user terminal, the service code corresponding to the service request is not determined from the service code container, the service request is sent to the technical component container, the technical component (which is a technical component developed based on the Web end) corresponding to the service request is determined from the technical component container, and the service request is processed through the technical component.
Step 202, packaging the service code to generate a package file.
Step 203, sending the package file to the technical component container.
Step 204, determining the technical component corresponding to the package file from the technical component container.
Step 205, loading the package file through the technical component to process the service request. Wherein the technical component is developed based on a scaffold.
The technical components developed based on the scaffold need to be developed secondarily, namely the technical components are required to load service codes to process service requests, and the service requests cannot be processed independently through the technical components developed based on the scaffold, such as technical components for batch processing and the like.
Specifically, after the service code is packaged and processed to generate a package file, the package file is sent to the technical component container, the technical component corresponding to the package file is determined from the technical component container, and the package file is loaded through the technical component to process the service request.
In an embodiment of the present invention, the service code is developed based on a scaffold, and further includes: and rolling off the flow of a plurality of servers, and hot deploying the service codes developed based on the scaffold in the plurality of servers.
When the traditional application is used for service deployment or platform upgrade, a part of cluster traffic needs to be shut down manually or in a pipeline mode, then deployment or upgrade is performed, and finally the traffic is hung up, so that rolling is finished, and operation is complicated.
Specifically, in the embodiment of the present invention, by introducing a Gateway layer (API-Gateway) mode, the management of the cluster traffic is included in the technical component platform, so as to implement automatic rolling shutdown of the traffic of the servers in the cluster, so as to perform service code hot deployment, thereby greatly reducing the difficulty in implementing automatic cluster deployment by operation and maintenance, and it is not necessary to first shut down a part of the cluster traffic, then perform deployment or upgrade, and finally hang up the traffic in a manual or pipelined mode by a developer.
In an embodiment of the present invention, the technical component platform includes a medium library, the medium library stores a medium generated by packaging the service codes developed based on a scaffold, and the hot deploying the service codes developed based on the scaffold in a plurality of servers includes: establishing a new class loader in the service code container; loading, by the new class loader, the media in the media library to hot deploy the scaffold-based developed business code in the business code container of the server.
The hot deployment of the service code is essentially loading of a Class file, a Spring configuration file and other configuration files, the loading of the Class file can be realized by a Class loader, but due to the fact that Java self-parent delegation and Class unloading cannot be performed, the loading of the Class file by the Class loader of the main container often cannot realize the functions of unloading and Class upgrading, so the Class file to be deployed is loaded by a new Class loader, and the loading of the Spring configuration can be realized by an xmlbendefinitionreader object of Spring. And for other configuration files, introducing a configuration center, and realizing hot updating of the other configuration files through the configuration center.
Specifically, the technical component platform comprises a medium library, business codes developed based on scaffolds are stored in the medium library, a new class loader is built in a business code container, and media in the medium library are loaded through the new class loader, so that the business codes developed based on scaffolds are hot deployed in the business code container of the server.
For a technical component requiring medium delivery (secondary development), the scaffold project is the starting point of business delivery development, and the scaffold project is defined as Maven Archtype (project template prototype) to allow a user to quickly acquire the scaffold project, wherein the scaffold project comprises the following components in content level: the technical component uses the sample, basic configuration files, and detailed functional introduction and annotation information. Meanwhile, the scaffold engineering realizes the function of local starting by introducing the operation dependence package, so that a developer can locally realize the release and debugging of the service, and the problem of high test difficulty caused by the separation of the service and the operation after the platform is formed is solved.
In the embodiment of the invention, a new class loader is added to load a medium generated by packaging the service codes developed based on the scaffold, so that the service functions (service codes) can be dynamically loaded and unloaded, and the rapid deployment and the backspacing of the service are supported without stopping the machine. Meanwhile, the elegant deployment of the whole cluster is considered, and the continuity of the service is ensured.
In an embodiment of the present invention, the technical component platform includes a configuration center and a Web console, where the configuration center stores all configuration files of the technical component platform and is used to perform hot update on the configuration files; the Web console is used for carrying out visualization operation on the technical assembly, wherein the visualization operation at least comprises one of monitoring, problem positioning and operation and inspection.
Specifically, the technical component platform comprises a configuration center and a Web console, wherein all configuration files of the technical component platform are stored in the configuration center, the configuration files are subjected to thermal updating by introducing unified management of the configuration center, the separation of the configuration files and service code deployment is realized, and the difficulty can be greatly simplified when the service codes are deployed in containers.
The visual operation such as monitoring, problem positioning, operation checking and the like can be carried out on the technical assembly through the Web control console. Developers provide convenient and visual platform management capability for development, test, operation and maintenance through a Web control console, and the problem of cluster management brought under a micro-service mode is solved.
In addition, two principles are paid attention to when the visual console realizes functions, one is an interface principle, logic is not realized at a Web end, and the visual console is responsible for the back end as much as possible, so that the visual console is more friendly to third-party access; the second principle is to reduce the complexity of system development, test and operation and maintenance through visualization operation as much as possible.
In the embodiment of the invention, the mode of introducing the static technical components and packaging the service codes is abandoned, the technical components of the technical component container can be uniformly managed by respectively deploying the service codes and the technical components in different containers, the occurrence of the situation that the technical components of the same type have different types is avoided, a large amount of time is not required to be invested by developers to manage the technical components, and the management cost of the technical components is reduced.
By adding a new class loader to load a medium generated by packaging scaffold-developed service codes, service functions (service codes) can be dynamically loaded and unloaded, thereby supporting rapid deployment and rollback of services without shutdown. Meanwhile, the elegant deployment of the whole cluster is considered, and the continuity of the service is ensured.
The visual operation such as monitoring, problem positioning, operation checking and the like can be carried out on the technical assembly through the Web control console. Developers provide convenient and visual platform management capability for development, test, operation and maintenance through a Web control console, and the problem of cluster management brought under a micro-service mode is solved.
For better understanding of the above embodiments, referring to fig. 3, an architecture diagram of an embodiment of a technical component platform of the present invention is shown, as can be seen, the technical component platform includes a Web console, an online transaction portal, a Gateway layer (API-Gateway), a service unit, a media library, a support layer, a common management module, and a Zookeeper, wherein the service unit includes a plurality of servers (servers), and the servers include a platform component (technical component container) and a service logic (service code container).
The service request enters the technical component platform through the online transaction entrance, then is loaded to the gateway layer, the gateway layer performs routing forwarding by identifying the service unit where the requested service is located, and finally the request is forwarded to the correct service unit, and the service request is processed through the server in the service unit, wherein the service code deployed by the service code container in a plurality of servers in the service unit is the same as the technical component deployed by the technical component container.
The medium library stores a medium generated by packaging the service codes developed based on the technical components developed by the Web end, and the medium in the medium library is loaded through service logic (service code container) in the server so as to hot deploy the service codes developed based on the scaffold into the service code container of the server.
The configuration center stores all configuration files of the technical component platform, the configuration files are subjected to hot updating by introducing the configuration center to carry out unified management on the configuration files, the separation of the configuration files and the service code deployment is realized, and the difficulty can be greatly simplified when the service codes are deployed in the container.
The Zookeeper is a distributed application program coordination service with a distributed source code, and performs unified configuration management, unified naming service, distributed lock management and cluster management. Using a distributed system can not avoid the problem of managing nodes (sensing the state of nodes in real time, managing nodes in a unified way, etc.), and ZooKeeper is a middleware that can generally solve the above problems because the problems can be relatively troublesome to handle and increase the complexity of the system.
The embodiment of the invention overcomes the defect that the technical components are statically introduced into a use mode, actively provides the technical components through the idea of technical component platformization, better controls the management, version and use specifications of the technical components, more importantly reduces the use threshold of the technical components, shields the complex details on the use of the technical components, reduces the cost for repeatedly building the technical components of the same type, can greatly release the capacity of a science and technology team and is put into the research and development work of business logic, and finally has the beneficial effects of cost reduction and efficiency improvement of enterprise IT investment.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a structure of an embodiment of an apparatus for implementing technology component platform, where the embodiment of the present invention is applied to a technology component platform, where the technology component platform includes a plurality of servers, and the servers include a service code container and a technology component container, and the embodiment of the present invention may specifically include the following modules:
a code determining module 401, configured to determine, after the server obtains a service request, a service code corresponding to the service request from the service code container;
a file generating module 402, configured to package the service code and generate a package file;
a file sending module 403, configured to send the package file to the technical component container;
a file loading module 404, configured to load the package file through the technical component container to process the service request.
In an embodiment of the present invention, after the code determining module 401, the method further includes:
a code undetermined module, configured to, if a service code corresponding to the service request is not determined from the service code container;
a request sending module, configured to send the service request to the technical component container;
a request execution module for processing the service request through the technical component container.
In an embodiment of the present invention, the file loading module 404 includes:
the first component determining submodule is used for determining the technical components corresponding to the package files from the technical component container;
the file loading submodule is used for loading the package file through the technical component so as to process the service request; wherein the technical component is developed based on a scaffold.
In an embodiment of the present invention, the request execution module includes:
the second component determining submodule is used for determining the technical component corresponding to the service request from the technical component container;
a request execution submodule for processing the service request by the technical component; the technical component is developed based on a Web end.
In an embodiment of the present invention, the service code is developed based on a scaffold, and further includes:
and the code deployment module is used for rolling off the flow of the servers and deploying the service codes developed based on the scaffold in the servers.
In an embodiment of the present invention, the technical component platform includes a medium library, the medium library stores a medium generated by packaging the service code developed based on a scaffold, and the code deployment module includes:
the loader establishing submodule is used for establishing a new class loader in the service code container;
a medium loading submodule, configured to load the medium in the medium library through the new class loader, so as to hot deploy the service code developed based on a scaffold in the service code container of the server.
In an embodiment of the present invention, the technical component platform includes a configuration center and a Web console, where the configuration center stores all configuration files of the technical component platform and is used to perform hot update on the configuration files; the Web console is used for carrying out visualization operation on the technical assembly, wherein the visualization operation at least comprises one of monitoring, problem positioning and operation and inspection.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the invention discloses electronic equipment, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, the steps of the method embodiment for realizing the technical component platform are realized.
The embodiment of the invention discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiment for realizing the technical component platform are realized.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method for realizing the technical component platformization and the device for realizing the technical component platformization provided by the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for implementing technology component platformization, wherein the technology component platform comprises a plurality of servers, and wherein the servers comprise a business code container and a technology component container, the method comprising:
after the server acquires a service request, determining a service code corresponding to the service request from the service code container;
packaging the service codes to generate a package file;
sending the package file to the technology component container;
and loading the package file through the technical component container to process the service request.
2. The method of claim 1, wherein after the server obtains the service request, the method further comprises:
if the service code corresponding to the service request is not determined from the service code container;
sending the service request to the technology component container;
processing the service request by the technology component container.
3. The method of claim 1, wherein the loading, by the technical component container, the package file to process the service request comprises:
determining a technical component corresponding to the package file from the technical component container;
loading the package file through the technical component to process the service request; wherein the technical component is developed based on a scaffold.
4. The method of claim 2, wherein processing the service request by the technical component container comprises:
determining a technical component corresponding to the service request from the technical component container;
processing, by the technology component, the service request; the technical component is developed based on a Web end.
5. The method of claim 3, wherein the business code is developed based on scaffolding, further comprising:
and rolling off the flow of a plurality of servers, and hot deploying the service codes developed based on the scaffold in the plurality of servers.
6. The method of claim 5, wherein the technology component platform comprises a media library, the media library stores media generated by packaging the service code based on scaffold development, and the hot-deploying the service code based on scaffold development in a plurality of servers comprises:
establishing a new class loader in the service code container;
loading the media in the media library through the new class loader to hot deploy the scaffold-based development of the business code in the business code container of the server.
7. The method of claim 1, wherein the technology component platform comprises a configuration center and a Web console, the configuration center storing all configuration files of the technology component platform for hot updating of the configuration files; the Web console is used for carrying out visualization operation on the technical assembly, wherein the visualization operation at least comprises one of monitoring, problem positioning and operation and inspection.
8. An apparatus for implementing technology component platformization, wherein the technology component platform includes a plurality of servers, the servers include a service code container and a technology component container, the apparatus includes:
the code determining module is used for determining a service code corresponding to the service request from the service code container after the server acquires the service request;
the file generation module is used for packaging the service codes to generate a package file;
a file sending module for sending the package file to the technical component container;
and the file loading module is used for loading the package file through the technical component container so as to process the service request.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the steps of the method of implementing technology component platformization as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of carrying out technology component platformization according to any one of claims 1 to 7.
CN202210108484.6A 2022-01-28 2022-01-28 Method and device for realizing technical component platformization Pending CN114443169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210108484.6A CN114443169A (en) 2022-01-28 2022-01-28 Method and device for realizing technical component platformization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210108484.6A CN114443169A (en) 2022-01-28 2022-01-28 Method and device for realizing technical component platformization

Publications (1)

Publication Number Publication Date
CN114443169A true CN114443169A (en) 2022-05-06

Family

ID=81371399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210108484.6A Pending CN114443169A (en) 2022-01-28 2022-01-28 Method and device for realizing technical component platformization

Country Status (1)

Country Link
CN (1) CN114443169A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172618A1 (en) * 2003-02-28 2004-09-02 Bea Systems, Inc. Systems and methods for a common runtime container framework
US8527943B1 (en) * 2004-02-12 2013-09-03 Raju V. Chiluvuri System and method of application development
CN105893013A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Engineering construction system and construction method thereof
CN106445556A (en) * 2016-10-18 2017-02-22 中国银行股份有限公司 Visualized code generation method and system thereof
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN109271198A (en) * 2018-08-16 2019-01-25 中国平安人寿保险股份有限公司 Mirror image packaging method, device and electronic equipment based on Docker container
CN109783744A (en) * 2018-12-05 2019-05-21 北京奇艺世纪科技有限公司 The page starts method, apparatus, terminal and computer readable storage medium
CN110069321A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Business containerization operation method, equipment, storage medium and device
CN111352682A (en) * 2018-12-24 2020-06-30 北京嘀嘀无限科技发展有限公司 Page rendering method, device, server and readable storage medium
CN111399806A (en) * 2019-01-03 2020-07-10 百度在线网络技术(北京)有限公司 Component management method and device, electronic equipment and storage medium
CN113138772A (en) * 2020-01-19 2021-07-20 北京京东振世信息技术有限公司 Method and device for constructing data processing platform, electronic equipment and storage medium
CN113296959A (en) * 2021-06-22 2021-08-24 中国平安财产保险股份有限公司 Service processing method and device based on AOP functional component and computer equipment
CN113377354A (en) * 2021-05-31 2021-09-10 北京沃东天骏信息技术有限公司 Mobile terminal application modular development system
CN113485692A (en) * 2021-06-07 2021-10-08 广发银行股份有限公司 Big data componentization development method and device based on component store
CN113849189A (en) * 2021-09-28 2021-12-28 上海金仕达软件科技有限公司 Project hot deployment method and device
CN113934552A (en) * 2021-09-27 2022-01-14 青岛海尔科技有限公司 Method and device for determining function code, storage medium and electronic device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172618A1 (en) * 2003-02-28 2004-09-02 Bea Systems, Inc. Systems and methods for a common runtime container framework
US8527943B1 (en) * 2004-02-12 2013-09-03 Raju V. Chiluvuri System and method of application development
CN105893013A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Engineering construction system and construction method thereof
CN106445556A (en) * 2016-10-18 2017-02-22 中国银行股份有限公司 Visualized code generation method and system thereof
CN108958796A (en) * 2017-05-23 2018-12-07 阿里巴巴集团控股有限公司 service request processing method and device, service request processing system
CN109271198A (en) * 2018-08-16 2019-01-25 中国平安人寿保险股份有限公司 Mirror image packaging method, device and electronic equipment based on Docker container
CN109783744A (en) * 2018-12-05 2019-05-21 北京奇艺世纪科技有限公司 The page starts method, apparatus, terminal and computer readable storage medium
CN111352682A (en) * 2018-12-24 2020-06-30 北京嘀嘀无限科技发展有限公司 Page rendering method, device, server and readable storage medium
CN111399806A (en) * 2019-01-03 2020-07-10 百度在线网络技术(北京)有限公司 Component management method and device, electronic equipment and storage medium
CN110069321A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Business containerization operation method, equipment, storage medium and device
CN113138772A (en) * 2020-01-19 2021-07-20 北京京东振世信息技术有限公司 Method and device for constructing data processing platform, electronic equipment and storage medium
CN113377354A (en) * 2021-05-31 2021-09-10 北京沃东天骏信息技术有限公司 Mobile terminal application modular development system
CN113485692A (en) * 2021-06-07 2021-10-08 广发银行股份有限公司 Big data componentization development method and device based on component store
CN113296959A (en) * 2021-06-22 2021-08-24 中国平安财产保险股份有限公司 Service processing method and device based on AOP functional component and computer equipment
CN113934552A (en) * 2021-09-27 2022-01-14 青岛海尔科技有限公司 Method and device for determining function code, storage medium and electronic device
CN113849189A (en) * 2021-09-28 2021-12-28 上海金仕达软件科技有限公司 Project hot deployment method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐国磊;韩永日;彭勇;郝利勋;李文龙;王永峰;: "丰满水库防洪调度系统Java GUI组件包开发", 中国农村水利水电, no. 02, pages 105 - 108 *

Similar Documents

Publication Publication Date Title
CN109814879B (en) Automatic CI/CD project deployment method and storage medium
CN108196915B (en) Code processing method and device based on application container engine and storage medium
US8954579B2 (en) Transaction-level health monitoring of online services
CN109120678A (en) The method and apparatus of service tray for distributed memory system
CN112269640B (en) Method for realizing life cycle management of container cloud component
US20170123777A1 (en) Deploying applications on application platforms
WO2018118723A1 (en) Systems, devices, and methods for deploying one or more artifacts to a deployment environment
CN112527349A (en) Dynamic deployment strategy optimization and continuous deployment service guarantee system
CN113434158B (en) Custom management method, device, equipment and medium for big data component
CN111580926A (en) Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium
US9542173B2 (en) Dependency handling for software extensions
Zhang et al. Mlmodelci: An automatic cloud platform for efficient mlaas
CN111679888A (en) Deployment method and device of agent container
CN114115838A (en) Data interaction method and system based on distributed components and cloud platform
CN115454629A (en) AI algorithm and micro-service scheduling method and device based on cloud native technology
CN114443169A (en) Method and device for realizing technical component platformization
CN115309558A (en) Resource scheduling management system, method, computer equipment and storage medium
CN115291928A (en) Task automatic integration method and device of multiple technology stacks and electronic equipment
CN115964061A (en) Plug-in updating method and device, electronic equipment and computer readable storage medium
CN114489704A (en) Version compiling and deploying method and device based on strategy
CN112667491B (en) Function test method and device for virtual machine
CN112486511A (en) Method for generating operating system installation mirror image through web
CN114240265B (en) Product deployment method and device based on mixed environment
CN115048313B (en) Automatic test method and device, computer readable storage medium and electronic equipment
Zhang et al. Cloud-Native CI/CD platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination