CN112035183A - Access method and device for micro application - Google Patents

Access method and device for micro application Download PDF

Info

Publication number
CN112035183A
CN112035183A CN202010897566.4A CN202010897566A CN112035183A CN 112035183 A CN112035183 A CN 112035183A CN 202010897566 A CN202010897566 A CN 202010897566A CN 112035183 A CN112035183 A CN 112035183A
Authority
CN
China
Prior art keywords
routing table
registry
micro application
micro
service system
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.)
Granted
Application number
CN202010897566.4A
Other languages
Chinese (zh)
Other versions
CN112035183B (en
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010897566.4A priority Critical patent/CN112035183B/en
Publication of CN112035183A publication Critical patent/CN112035183A/en
Application granted granted Critical
Publication of CN112035183B publication Critical patent/CN112035183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44568Immediately runnable code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a method and a device for accessing micro applications, wherein the method comprises the following steps: when the micro application needs to access the main service system, the registry and the routing table of the main service system are backed up; writing the configuration information of the micro application into the backup registry, and updating the registry version number in the backup registry; when detecting the version number of the updated registry, replacing the existing registry of the main service system by the registry corresponding to the version number of the updated registry; after the registry is replaced, writing the routing information of the micro application into the backup routing table, and updating the routing table version number in the backup routing table; when the version number of the updated routing table is detected, the existing routing table of the main service system is replaced by the routing table corresponding to the version number of the updated routing table, and the micro application is loaded in the main service system according to the replaced routing table.

Description

Access method and device for micro application
Technical Field
The present invention relates to the field of micro application technologies, and in particular, to a method and an apparatus for accessing a micro application.
Background
In an enterprise, there are often many business systems, each business system is responsible for business functions in different fields, with the development of cross-field integrated business and the application of micro services at the front end, it is often necessary to modify each sub-business system into micro applications integrated into the main business system, so that when a new micro application is accessed into the main business system, the whole main business system needs to be stopped, resulting in the failure of other micro applications to operate and low efficiency. In addition, when the micro-application is called, the micro-application needs to be jumped from the main service system, and with the increase of the number of the micro-applications, the page jump time is long, and the user experience is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method for accessing a micro application, which is used for improving the access efficiency of the micro application and comprises the following steps:
when the micro application needs to access the main service system, the registry and the routing table of the main service system are backed up;
writing the configuration information of the micro application into the backup registry, and updating the registry version number in the backup registry;
when detecting the version number of the updated registry, replacing the existing registry of the main service system by the registry corresponding to the version number of the updated registry;
after the registry is replaced, writing the routing information of the micro application into the backup routing table, and updating the routing table version number in the backup routing table;
when detecting the version number of the updated routing table, replacing the existing routing table of the main service system by the routing table corresponding to the version number of the updated routing table;
and loading the micro application in the main service system according to the replaced routing table.
The embodiment of the invention provides an access device of micro application, which is used for improving the access efficiency of the micro application and comprises the following components:
the backup module is used for backing up the registry and the routing table of the main service system when the micro application needs to be accessed to the main service system;
the registry version number updating module is used for writing the configuration information of the micro application into the backup registry and updating the registry version number in the backup registry;
the registry replacing module is used for replacing the existing registry of the main service system by the registry corresponding to the updated registry version number when the updated registry version number is detected;
the routing table version number updating module is used for writing the routing information of the micro application into the backup routing table after the registry is replaced, and updating the routing table version number in the backup routing table;
the routing table replacing module is used for replacing the existing routing table of the main service system by using the routing table corresponding to the updated routing table version number when the updated routing table version number is detected;
and the loading module is used for loading the micro application in the main service system according to the replaced routing table.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the access method of the micro application when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the access method of the micro application.
The embodiment of the invention comprises the following steps: when the micro application needs to access the main service system, the registry and the routing table of the main service system are backed up; writing the configuration information of the micro application into the backup registry, and updating the registry version number in the backup registry; when detecting the version number of the updated registry, replacing the existing registry of the main service system by the registry corresponding to the version number of the updated registry; after the registry is replaced, writing the routing information of the micro application into the backup routing table, and updating the routing table version number in the backup routing table; when the version number of the updated routing table is detected, the routing table corresponding to the version number of the updated routing table is used for replacing the existing routing table of the main service system, the existing registry or routing table of the main service system can be replaced based on the version number of the updated registry or the version number of the routing table, the whole main service system does not need to be stopped, and the access efficiency of the micro application is improved; according to the replaced routing table, the micro application is loaded in the main service system, the micro application can be directly loaded in the main service system, the page jump time is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a schematic diagram of a flow of an access method for a micro application according to an embodiment of the present invention;
FIG. 2 is a diagram of a main business system architecture in an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a detailed process flow of step 106 in FIG. 1;
FIG. 4 is a schematic diagram illustrating a detailed flow chart of step 302 in FIG. 3;
FIG. 5 is a diagram illustrating an exemplary architecture of an access device for a micro-application;
fig. 6 is a schematic diagram of another structure of an access device for micro applications in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
Before describing the embodiments of the present invention, the principle and spirit of the present invention will be described first.
The existing front-end web system is getting bigger and bigger, the service function is also getting more and more complex, and the access of the existing front-end multi-service system mainly comprises the following three modes:
1) in the traditional method, a large-scale web system forms a platform, each service system is called by the platform, and the forming mode of each service system is divided according to three levels, which has the following defects: firstly, when a certain module needs to be updated, the whole service system needs to be stopped, and the operation of a normal system is influenced; secondly, when a new service system is accessed to the platform, the whole platform needs to be stopped, so that other service systems cannot operate; thirdly, when a user clicks a certain function, the user needs to enter a certain service system of the platform first, and the certain module is called by the service system to realize the specific function, so that the platform response time is prolonged along with the increase of the service system, and the user experience is poor.
2) The enterprise builds a public web platform, each service system puts the URL link of the system on the public web platform, and when a user uses a certain system function, the user directly clicks the URL to jump to a module of a specified system, and the method has the defects that firstly, the URL jumps to a new service system, the main platform system loses control over the service system, the main system cannot send various instructions to the service system again, and the service system cannot return to the main system; secondly, a new page needs to be opened in the browser through URL skipping, and user experience is poor.
3) The method comprises the steps that a front-end web platform is divided in a front-end micro-service mode, the web platform is composed of a plurality of micro-applications, each micro-application is connected to a main system in a platform routing mode, when a new service system is added in the mode, the routing of the main system needs to be updated, and the main system can call each service system again only by stopping updating a routing table.
The inventor finds that, through a great deal of research, in the existing web front-end service access method, when a new micro application is accessed to a main service system or a functional module of a certain micro application needs to be adjusted, the operation of the whole main service system is affected, and in addition, when the micro application is called, the micro application needs to be jumped from the main service system, so that the page jump time is long, and the user experience is poor. The inventor finds the technical problems and provides a micro-application access method, which is based on a front-end micro-service technology, replaces the existing registry or routing table of a main service system with the updated registry version number or routing table version number without stopping the whole main service system, improves the micro-application access efficiency, and can directly load micro-applications in the main service system, reduce page jumps and improve user experience.
Fig. 1 is a schematic diagram of a flow of an access method for a micro application in an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101: when the micro application needs to access the main service system, the registry and the routing table of the main service system are backed up;
step 102: writing the configuration information of the micro application into the backup registry, and updating the registry version number in the backup registry;
step 103: when detecting the version number of the updated registry, replacing the existing registry of the main service system by the registry corresponding to the version number of the updated registry;
step 104: after the registry is replaced, writing the routing information of the micro application into the backup routing table, and updating the routing table version number in the backup routing table;
step 105: when detecting the version number of the updated routing table, replacing the existing routing table of the main service system by the routing table corresponding to the version number of the updated routing table;
step 106: and loading the micro application in the main service system according to the replaced routing table.
As shown in fig. 1, an embodiment of the present invention is implemented by: when the micro application needs to access the main service system, the registry and the routing table of the main service system are backed up; writing the configuration information of the micro application into the backup registry, and updating the registry version number in the backup registry; when detecting the version number of the updated registry, replacing the existing registry of the main service system by the registry corresponding to the version number of the updated registry; after the registry is replaced, writing the routing information of the micro application into the backup routing table, and updating the routing table version number in the backup routing table; when the version number of the updated routing table is detected, the routing table corresponding to the version number of the updated routing table is used for replacing the existing routing table of the main service system, the existing registry or routing table of the main service system can be replaced based on the version number of the updated registry or the version number of the routing table, the whole main service system does not need to be stopped, and the access efficiency of the micro application is improved; according to the replaced routing table, the micro application is loaded in the main service system, the micro application can be directly loaded in the main service system, the page jump time is reduced, and the user experience is improved.
Fig. 2 is a schematic diagram of a main service system architecture in an embodiment of the present invention, as shown in fig. 2, in a specific implementation, a main system may include a registry, a routing table, a main system logic processor, a micro application management server, a micro application loader, and a routing distributor, where the registry is used to store configuration information of each micro application, and the routing table is used to store routing information of each micro application and a corresponding specific function module thereof, in step 101, when a new micro application needs to access a main service system, the micro application management server may detect the access requirement and notify the main system logic processor, and the main system logic processor may first obtain the registry and the routing table for backup, and then, in step 102, may write configuration information of the new micro application into a backup registry, and update a version number of the registry in the backup registry, the micro-application management server may detect a version number of the registry, and in step 103, when the updated registry version number is detected, the main system logic processor is notified to replace the existing registry of the main service system with the registry corresponding to the updated registry version number, so that the new micro-application completes initialization in the main system without affecting use of the main service system and other micro-applications.
Next, in step 104, after the registry is replaced, the routing information of the new micro application may be written into the backup routing table, the routing table version number in the backup routing table is updated, and the micro application management server may detect the version number of the routing table, step 105: when the version number of the updated routing table is detected, the main system logic processor is informed to replace the existing routing table of the main service system by the routing table corresponding to the version number of the updated routing table, so that the routing information of the new micro application and the specific function module corresponding to the new micro application is updated in the routing table. When some micro application needs to add or adjust a function module, the adding or adjusting information of the function module can be updated in the routing table according to the method, and the normal operation of other function modules in the micro application is not influenced.
Fig. 3 is a schematic diagram of a specific flow of step 106 in fig. 1, and as shown in fig. 3, in an embodiment, in step 106, loading the micro application in the main service system according to the replaced routing table may include:
step 301: responding to a call request of a user to the micro application, and inquiring the routing information of the micro application from the replaced routing table;
step 302: and rendering the micro application to a front-end page of the main service system according to the routing information of the micro application.
Fig. 4 is a schematic diagram illustrating a detailed flow of step 302 in fig. 3, and as shown in fig. 4, in one embodiment, step 302: rendering the micro application to a front-end page of a main business system according to the routing information of the micro application may include:
step 401: obtaining a configuration file of the micro application according to the routing information of the micro application;
step 402: analyzing a rendering engine of the micro application according to the configuration file of the micro application;
step 403: and rendering the micro application to a front-end page of the main business system according to the configuration file and the rendering engine of the micro application.
In specific implementation, when a user initiates a request for calling a certain function module of a micro application, the route distributor may query the routing information of the micro application from the replaced routing table in response to the call request of the user for the micro application, and then the micro application loader may render the micro application to a front-end page of the main service system according to the routing information of the micro application, and during specific rendering, because different rendering engines used by different micro applications are different, the micro application loader may be compatible with rendering engines used by a plurality of micro applications, reads a configuration file of the micro application through the routing information of the micro application, parses the rendering engine of the micro application, renders the micro application to the front-end page of the main service system, and because the micro application loader is implemented based on the main system, rendering of each micro application by the micro application loader is completed by the main system, therefore, on one hand, the main system does not lose the control right of each micro application, on the other hand, page jumping is not needed, customer experience is improved, in addition, different technology stack development used by each micro application can be compatible, and the modification cost of accessing the micro application to the main system is reduced.
In one embodiment, before querying the route information of the micro application from the replaced route table in step 301, the method may further include:
dividing the routing table into multiple stages according to the routing information field in the routing table;
step 301, querying the routing information of the micro application from the replaced routing table, may include:
and querying the routing information of the micro application step by step from the replaced routing table.
In specific implementation, along with the increase of micro applications or functional modules, a long time is consumed in searching routing information, so that the routing distributor can divide a routing table into multiple stages according to routing information fields in the routing table, establishes a multi-stage routing table, and queries step by step based on the multi-stage routing table when searching the routing information, so that a certain functional module of a certain micro application can be quickly positioned without traversing all routing information, the query efficiency of the routing information is improved, and the response speed is further improved.
In one embodiment, further comprising:
monitoring the running state of each micro application in the main service system in real time;
and when the configuration information and/or the routing information of any micro application needs to be changed, updating the registry and/or the routing table of the main service system according to the change information of the micro application.
In specific implementation, the micro application management server may further monitor the running state of each accessed micro application in real time, including the working states of the micro applications and each corresponding functional module thereof, so as to dynamically inform the main service system of which micro applications can be called and which functional modules can be called, and when configuration information and/or routing information of any micro application needs to be changed, the micro application management server may further send change information of the micro application to the main system logic processor, and the main system logic processor may update the registry and/or routing table of the main service system, where a specific updating process is similar to the foregoing steps 101 to 105, and details are not repeated here.
The following is a specific example to facilitate an understanding of how the invention may be practiced.
The first step is as follows: in a front-end bit service system, when micro-applications are accessed or withdrawn, a main system logic processor replaces an existing registry or routing table of a main service system based on an updated registry version number or routing table version number, so that the use of other micro-applications or functional modules is not influenced when the corresponding micro-applications or functional modules are updated, and the whole main service system is not required to be stopped;
the second step is that: when the micro-application is accessed, the application management server adds the routing information of the micro-application into the routing table, and simultaneously checks each micro-application and the functional module thereof so as to inform the main system logic processor to update the registry and the routing table;
the third step: if the user calls a certain function module, the routing distributor searches the corresponding micro-application and the routing information of the function module thereof from the routing table according to the user request address provided by the application management server and sends the routing information to the micro-application loader;
the fourth step: and the micro application loader loads the functional module of the specified micro application after receiving the routing information and renders the functional module to the front end.
Based on the same inventive concept, the embodiment of the present invention further provides an access device for micro applications, as in the following embodiments. Because the principle of solving the problem of the access device for the micro application is similar to that of the access method for the micro application, the implementation of the device can be referred to the implementation of the method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
An embodiment of the present invention provides an access device for a micro application, so as to improve access efficiency of the micro application, where fig. 5 is a schematic diagram of a structure of the access device for the micro application in the embodiment of the present invention, as shown in fig. 5, the access device includes:
the backup module 01 is used for backing up a registry and a routing table of the main service system when the micro application needs to be accessed to the main service system;
a registry version number updating module 02, configured to write the configuration information of the micro application into the backup registry, and update the registry version number in the backup registry;
the registry replacing module 03 is configured to replace an existing registry of the main service system with a registry corresponding to the updated registry version number when the updated registry version number is detected;
a routing table version number updating module 04, configured to write the routing information of the micro application into the backup routing table after the registry is replaced, and update the routing table version number in the backup routing table;
the routing table replacing module 05 is configured to replace an existing routing table of the main service system with a routing table corresponding to the updated routing table version number when the updated routing table version number is detected;
and a loading module 06, configured to load the micro application in the main service system according to the replaced routing table.
In one embodiment, the load module 06 is specifically configured to:
responding to a call request of a user to the micro application, and inquiring the routing information of the micro application from the replaced routing table;
and rendering the micro application to a front-end page of the main service system according to the routing information of the micro application.
In one embodiment, the load module 06 is further to:
obtaining a configuration file of the micro application according to the routing information of the micro application;
analyzing a rendering engine of the micro application according to the configuration file of the micro application;
and rendering the micro application to a front-end page of the main business system according to the configuration file and the rendering engine of the micro application.
Fig. 6 is a schematic diagram of another structure of an access device for micro applications in an embodiment of the present invention, as shown in fig. 6, in an embodiment, the access device further includes: a route ranking module 07, configured to:
before inquiring the routing information of the micro application from the replaced routing table, dividing the routing table into multiple stages according to the routing information field in the routing table;
the loading module 06 is specifically configured to:
and querying the routing information of the micro application step by step from the replaced routing table.
As shown in fig. 6, in one embodiment, the apparatus further comprises: a listening module 08 configured to:
monitoring the running state of each micro application in the main service system in real time;
and when the configuration information and/or the routing information of any micro application needs to be changed, updating the registry and/or the routing table of the main service system according to the change information of the micro application.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the access method of the micro application when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program for executing the access method of the micro application.
In summary, the embodiment of the present invention provides: when the micro application needs to access the main service system, the registry and the routing table of the main service system are backed up; writing the configuration information of the micro application into the backup registry, and updating the registry version number in the backup registry; when detecting the version number of the updated registry, replacing the existing registry of the main service system by the registry corresponding to the version number of the updated registry; after the registry is replaced, writing the routing information of the micro application into the backup routing table, and updating the routing table version number in the backup routing table; when the version number of the updated routing table is detected, the routing table corresponding to the version number of the updated routing table is used for replacing the existing routing table of the main service system, the existing registry or routing table of the main service system can be replaced based on the version number of the updated registry or the version number of the routing table, the whole main service system does not need to be stopped, and the access efficiency of the micro application is improved; according to the replaced routing table, the micro application is loaded in the main service system, the micro application can be directly loaded in the main service system, the page jump time is reduced, and the user experience is improved.
In addition, by monitoring the running state of each micro application in the main service system in real time, when the configuration information and/or the routing information of any micro application needs to be changed, the registry and/or the routing table of the main service system is updated according to the change information of the micro application, and the normal use of other micro applications or other functional modules can not be influenced when the micro application or the corresponding functional module is updated.
The routing table is divided into multiple stages according to the routing information fields in the routing table, and when the routing information is searched, the routing information is inquired step by step based on the multiple stages of routing tables, a certain functional module of a certain micro application can be quickly positioned without traversing all routing information, so that the inquiry efficiency of the routing information is improved, and the response speed is further improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, 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, 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.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and variations of the embodiment of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An access method for a micro application, comprising:
when the micro application needs to access the main service system, the registry and the routing table of the main service system are backed up;
writing the configuration information of the micro application into the backup registry, and updating the registry version number in the backup registry;
when detecting the version number of the updated registry, replacing the existing registry of the main service system by the registry corresponding to the version number of the updated registry;
after the registry is replaced, writing the routing information of the micro application into the backup routing table, and updating the routing table version number in the backup routing table;
when detecting the version number of the updated routing table, replacing the existing routing table of the main service system by the routing table corresponding to the version number of the updated routing table;
and loading the micro application in the main service system according to the replaced routing table.
2. The method of claim 1, wherein loading the micro-application in the main business system based on the replaced routing table comprises:
responding to a call request of a user to the micro application, and inquiring the routing information of the micro application from the replaced routing table;
and rendering the micro application to a front-end page of the main service system according to the routing information of the micro application.
3. The method of claim 2, wherein rendering the micro-application to a front-end page of a main business system based on routing information for the micro-application comprises:
obtaining a configuration file of the micro application according to the routing information of the micro application;
analyzing a rendering engine of the micro application according to the configuration file of the micro application;
and rendering the micro application to a front-end page of the main business system according to the configuration file and the rendering engine of the micro application.
4. The method of claim 2, wherein prior to querying the routing table for routing information for the micro-application from the replaced routing table, further comprising:
dividing the routing table into multiple stages according to the routing information field in the routing table;
inquiring the routing information of the micro application from the replaced routing table, wherein the inquiring comprises the following steps:
and querying the routing information of the micro application step by step from the replaced routing table.
5. The method of claim 1, further comprising:
monitoring the running state of each micro application in the main service system in real time;
and when the configuration information and/or the routing information of any micro application needs to be changed, updating the registry and/or the routing table of the main service system according to the change information of the micro application.
6. An access device for micro applications, comprising:
the backup module is used for backing up the registry and the routing table of the main service system when the micro application needs to be accessed to the main service system;
the registry version number updating module is used for writing the configuration information of the micro application into the backup registry and updating the registry version number in the backup registry;
the registry replacing module is used for replacing the existing registry of the main service system by the registry corresponding to the updated registry version number when the updated registry version number is detected;
the routing table version number updating module is used for writing the routing information of the micro application into the backup routing table after the registry is replaced, and updating the routing table version number in the backup routing table;
the routing table replacing module is used for replacing the existing routing table of the main service system by using the routing table corresponding to the updated routing table version number when the updated routing table version number is detected;
and the loading module is used for loading the micro application in the main service system according to the replaced routing table.
7. The apparatus of claim 6, wherein the loading module is specifically configured to:
responding to a call request of a user to the micro application, and inquiring the routing information of the micro application from the replaced routing table;
and rendering the micro application to a front-end page of the main service system according to the routing information of the micro application.
8. The apparatus of claim 7, wherein the loading module is further to:
obtaining a configuration file of the micro application according to the routing information of the micro application;
analyzing a rendering engine of the micro application according to the configuration file of the micro application;
and rendering the micro application to a front-end page of the main business system according to the configuration file and the rendering engine of the micro application.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 5.
CN202010897566.4A 2020-08-31 2020-08-31 Access method and device for micro-application Active CN112035183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010897566.4A CN112035183B (en) 2020-08-31 2020-08-31 Access method and device for micro-application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010897566.4A CN112035183B (en) 2020-08-31 2020-08-31 Access method and device for micro-application

Publications (2)

Publication Number Publication Date
CN112035183A true CN112035183A (en) 2020-12-04
CN112035183B CN112035183B (en) 2023-09-19

Family

ID=73585997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010897566.4A Active CN112035183B (en) 2020-08-31 2020-08-31 Access method and device for micro-application

Country Status (1)

Country Link
CN (1) CN112035183B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804315A (en) * 2020-12-31 2021-05-14 北京知因智慧科技有限公司 Micro application integration method and device
CN116599891A (en) * 2023-07-14 2023-08-15 北京智芯半导体科技有限公司 Dual mode communication method, apparatus and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192155A (en) * 2006-11-29 2008-06-04 国际商业机器公司 Method and system for sharing similar registry data between new and old edition configuration file
CN102938705A (en) * 2012-09-25 2013-02-20 上海证券交易所 Method for managing and switching high availability multi-machine backup routing table
US20130328938A1 (en) * 2012-06-12 2013-12-12 Konica Minolta, Inc. Object sharing system and non-transitory computer readable medium storing object input assistance program
CN106610993A (en) * 2015-10-23 2017-05-03 北京国双科技有限公司 Display method and device for video preview
CN109981467A (en) * 2019-03-29 2019-07-05 中国人民银行清算总中心 Static routing update method and routing centralized management distribution method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192155A (en) * 2006-11-29 2008-06-04 国际商业机器公司 Method and system for sharing similar registry data between new and old edition configuration file
US20130328938A1 (en) * 2012-06-12 2013-12-12 Konica Minolta, Inc. Object sharing system and non-transitory computer readable medium storing object input assistance program
CN102938705A (en) * 2012-09-25 2013-02-20 上海证券交易所 Method for managing and switching high availability multi-machine backup routing table
CN106610993A (en) * 2015-10-23 2017-05-03 北京国双科技有限公司 Display method and device for video preview
CN109981467A (en) * 2019-03-29 2019-07-05 中国人民银行清算总中心 Static routing update method and routing centralized management distribution method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804315A (en) * 2020-12-31 2021-05-14 北京知因智慧科技有限公司 Micro application integration method and device
CN112804315B (en) * 2020-12-31 2023-08-22 北京知因智慧科技有限公司 Micro-application integration method and device
CN116599891A (en) * 2023-07-14 2023-08-15 北京智芯半导体科技有限公司 Dual mode communication method, apparatus and computer readable storage medium
CN116599891B (en) * 2023-07-14 2023-12-19 北京智芯半导体科技有限公司 Dual mode communication method, apparatus and computer readable storage medium

Also Published As

Publication number Publication date
CN112035183B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN107622091B (en) Database query method and device
US8954545B2 (en) Fast determination of compatibility of virtual machines and hosts
CN105786405B (en) A kind of online upgrading method, apparatus and system
US6754848B1 (en) Method, system and program products for operationally migrating a cluster through emulation
CN102650938B (en) Management method for log system and log system
CN106331065A (en) Proxy application for host system with service container and system
CN112035183B (en) Access method and device for micro-application
US11036608B2 (en) Identifying differences in resource usage across different versions of a software application
CN107122431A (en) A kind of real-time calculating platform and the method for computing data based on real-time calculating platform
CN102355499B (en) Cloud computing system
CN109885642B (en) Hierarchical storage method and device for full-text retrieval
CN101582071A (en) System and method for updating data
CN111784468A (en) Account association method and device and electronic equipment
CN104598652B (en) A kind of data base query method and device
CN106815318B (en) Clustering method and system for time sequence database
CN101236489A (en) Dummy hardware system and its instruction execution method and dummy machine
CN104536785A (en) Method and device for updating real-time system
CN112230978A (en) Multi-data-source dynamic switching method, electronic equipment and storage medium
CN104536784B (en) Real-time system update method and device
CN111399999A (en) Computer resource processing method and device, readable storage medium and computer equipment
CN112559565A (en) Abnormity detection method, system and device
CN108804148B (en) Method and device for establishing binding relationship between equipment and drive
CN110019113B (en) Database service processing method and database server
CN108123983B (en) Affinity load cluster cache processing method and system
US7752638B2 (en) Method for defining and dynamically invoking polymorphic call flows

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
GR01 Patent grant
GR01 Patent grant