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

Access method and device for micro-application Download PDF

Info

Publication number
CN112035183B
CN112035183B CN202010897566.4A CN202010897566A CN112035183B CN 112035183 B CN112035183 B CN 112035183B CN 202010897566 A CN202010897566 A CN 202010897566A CN 112035183 B CN112035183 B CN 112035183B
Authority
CN
China
Prior art keywords
micro
application
routing table
registry
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.)
Active
Application number
CN202010897566.4A
Other languages
Chinese (zh)
Other versions
CN112035183A (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

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

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

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 be accessed into the main service system, the registry and the routing table of the main service system are backed up; writing configuration information of the micro application into a backup registry, and updating a registry version number in the backup registry; when the updated registry version number is detected, replacing the existing registry of the main service system with the registry corresponding to the updated registry version number; after the registry is replaced, the routing information of the micro application is written into a backup routing table, and the version number of the routing table in the backup routing table is updated; when the updated routing table version number is detected, the routing table corresponding to the updated routing table version number is used for replacing the existing routing table of the main service system, 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 technical field of micro applications, and in particular, to a method and an apparatus for accessing a micro application.
Background
In an enterprise, there are often many service systems, each service system is responsible for service functions in different fields, with development of comprehensive services across fields and application of micro services at the front end, it is often necessary to modify each sub-service system into micro applications to be integrated into a main service system, so when a new micro application accesses the main service system, the whole main service system needs to be stopped, which results in that other micro applications cannot operate and has low efficiency. In addition, when the micro-application is called, the micro-application needs to be jumped from the main service system, and as the number of the micro-applications increases, the page jumping time is long, and the user experience is poor.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides an access method of 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 be accessed into the main service system, the registry and the routing table of the main service system are backed up;
writing configuration information of the micro application into a backup registry, and updating a registry version number in the backup registry;
when the updated registry version number is detected, replacing the existing registry of the main service system with the registry corresponding to the updated registry version number;
after the registry is replaced, the routing information of the micro application is written into a backup routing table, and the version number of the routing table in the backup routing table is updated;
when the updated routing table version number is detected, replacing the existing routing table of the main service system with the routing table corresponding to the updated routing table version number;
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 a 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 a registry and a routing table of the main service system when the micro application needs to be accessed into the main service system;
the registry version number updating module is used for writing configuration information of the micro application into a backup registry and updating a registry version number in the backup registry;
the registry replacing module is used for replacing the existing registry of the main service system with 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 with 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 stored on the memory and capable of running 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 an access method computer program for executing the micro application.
The embodiment of the invention is as follows: when the micro application needs to be accessed into the main service system, the registry and the routing table of the main service system are backed up; writing configuration information of the micro application into a backup registry, and updating a registry version number in the backup registry; when the updated registry version number is detected, replacing the existing registry of the main service system with the registry corresponding to the updated registry version number; after the registry is replaced, the routing information of the micro application is written into a backup routing table, and the version number of the routing table in the backup routing table is updated; when the updated routing table version number is detected, the routing table corresponding to the updated routing table version number is used for replacing the existing routing table of the main service system, and the existing registry or routing table of the main service system can be replaced based on the updated registry version number or routing table version number without disabling the whole main service system, so that 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, so that the micro-application can be directly loaded in the main service system, the time of page skip is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a schematic diagram of a flow of an access method for a micro application in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a main service system architecture according to an embodiment of the present invention;
FIG. 3 is a schematic diagram showing a specific flow of step 106 in FIG. 1;
FIG. 4 is a schematic diagram showing a specific flow of step 302 in FIG. 3;
FIG. 5 is a schematic diagram of an access device structure for a micro-application according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another structure of an access device for micro applications according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Those skilled in the art will appreciate that embodiments of the invention may be implemented as a system, apparatus, method, or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
Before describing embodiments of the present invention, the principles and spirit of the present invention will be first described.
The existing front-end web system is bigger and bigger, the service functions are also more and more complex, and the front-end access of the existing multi-service system mainly comprises the following three modes:
1) The traditional method comprises the steps that a large-scale web system is formed into a platform, each service system is called by the platform, and the forming mode of each service system is divided according to three levels, and the defects of the mode are that: 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 affected; 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, and a certain module is called by the service system to realize a specific function, so that the response time of the platform 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 own system URL link on the public web platform, when a user uses a certain system function, the user directly clicks a URL to jump to a module of a designated system, and the method has the defects that firstly, the URL jumps to a new service system, a main platform system loses control right on 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; second, the new page needs to be opened in the browser through URL jump, and the user experience is poor.
3) The front-end micro-service mode is adopted to segment the front-end web platform, the web platform is composed of a plurality of micro-applications, each micro-application is connected to the main system through the platform routing mode, when a new service system is newly added, the routing of the main system needs to be updated, and the main system needs to stop updating the routing table to be called for each service system again.
The inventor finds that 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, in addition, when the micro application is called, the micro application needs to be jumped to from the main service system, the page jump time is long, and the user experience is poor. The inventor discovers 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 disabling the whole main service system, improves the access efficiency of the micro-application, can directly load the micro-application in the main service system, reduces page jump, improves user experience, and introduces the micro-application access method provided by the embodiment of the invention in detail.
Fig. 1 is a schematic diagram of an access method flow of a micro application in an embodiment of the present invention, as shown in fig. 1, where the method includes:
step 101: when the micro application needs to be accessed into the main service system, the registry and the routing table of the main service system are backed up;
step 102: writing configuration information of the micro application into a backup registry, and updating a registry version number in the backup registry;
step 103: when the updated registry version number is detected, replacing the existing registry of the main service system with the registry corresponding to the updated registry version number;
step 104: after the registry is replaced, the routing information of the micro application is written into a backup routing table, and the version number of the routing table in the backup routing table is updated;
step 105: when the updated routing table version number is detected, replacing the existing routing table of the main service system with the routing table corresponding to the updated routing table version number;
step 106: and loading the micro application in the main service system according to the replaced routing table.
As shown in fig. 1, the embodiment of the invention is implemented by: when the micro application needs to be accessed into the main service system, the registry and the routing table of the main service system are backed up; writing configuration information of the micro application into a backup registry, and updating a registry version number in the backup registry; when the updated registry version number is detected, replacing the existing registry of the main service system with the registry corresponding to the updated registry version number; after the registry is replaced, the routing information of the micro application is written into a backup routing table, and the version number of the routing table in the backup routing table is updated; when the updated routing table version number is detected, the routing table corresponding to the updated routing table version number is used for replacing the existing routing table of the main service system, and the existing registry or routing table of the main service system can be replaced based on the updated registry version number or routing table version number without disabling the whole main service system, so that 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, so that the micro-application can be directly loaded in the main service system, the time of page skip 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, the routing table is used to store routing information of each micro application and a specific functional module corresponding to each micro application, in step 101, when a new micro application needs to be accessed into the main service system, the micro application management server may detect the access requirement and notify the main system logic processor, the main system logic processor may first acquire the registry and the routing table to backup, in step 102, the configuration information of the new micro application may be written into the backup registry, update the version number of the registry in the backup registry, in step 103, and when detecting the updated version number of the registry, notify the main system logic processor that the updated version number of the registry has replaced the corresponding registration number of the new micro application, so that the main system logic processor has no influence on the original registration of the main service system.
Next, in step 104, after the registry is replaced, the new routing information of the micro-application may be written into the backup routing table, the version number of the routing table 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 updated routing table version number 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 updated routing table version number, so that the routing information of the new micro application and the specific functional module corresponding to the new micro application is updated in the routing table. When a certain micro-application needs to add or adjust a functional module, the information of the new addition or adjustment of the functional module can be updated in the routing table according to the method, and the normal operation of other functional modules in the micro-application is not affected.
FIG. 3 is a schematic diagram illustrating a specific flow of step 106 in FIG. 1, as shown in FIG. 3, 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 specific flow of step 302 in FIG. 3, as shown in FIG. 4, in one embodiment, step 302: rendering the micro-application to a front-end page of the main service 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 service system according to the configuration file and the rendering engine of the micro-application.
When the method is implemented, when a user initiates a request for calling a certain functional module of the micro-application, the routing distributor can respond to the call request of the user for the micro-application, the routing information of the micro-application is queried from the replaced routing table, then the micro-application loader can render the micro-application to the front-end page of the main service system according to the routing information of the micro-application, and in the specific rendering, as the rendering engines used by different micro-applications are different, the micro-application loader can be compatible with the rendering engines used by various micro-applications, the configuration file of the micro-application is read through the routing information of the micro-application, the rendering engines of the micro-application are analyzed, and the micro-application is rendered to the front-end page of the main service system.
In one embodiment, before querying the routing information of the micro-application from the replaced routing 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 queries the routing information of the micro-application from the replaced routing table, and may include:
and searching the routing information of the micro application step by step from the replaced routing table.
In the specific implementation, with the continuous increase of micro applications or functional modules, a long time is consumed in searching route information, so that the route distributor can divide the route table into multiple stages according to the route information fields in the route table, establish the multi-stage route table, and search the route information stage by stage based on the multi-stage route table, so that a certain functional module of a certain micro application can be quickly positioned without traversing all the route information, the searching efficiency of the route 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;
when the configuration information and/or the routing information of any micro application need 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.
In specific implementation, the micro-application management server may also monitor the running state of each accessed micro-application in real time, including the working states of the micro-application and its corresponding functional modules, so as to dynamically inform the main service system of which micro-applications can be invoked and which functional modules can be invoked, and when the configuration information and/or routing information of any micro-application need to be changed, the micro-application management server may also send the change information of the micro-application to the main system logic processor, where the main system logic processor may update the registry and/or routing table of the main service system, and the specific update process is similar to the above steps 101 to 105, and is not repeated here.
The following presents a specific example to facilitate understanding of how the present invention may be practiced.
The first step: in the front-end service system, when the micro application is accessed or withdrawn, the main system logic processor replaces the existing registry or routing table of the main service system based on the 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 deactivated;
and a second step of: 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;
and a third step of: if a user calls a certain functional module, the route distributor searches the corresponding micro-application and the route information of the functional module thereof from the route table according to the user request address provided by the application management server and sends the corresponding micro-application and the route information of the functional module to the micro-application loader;
fourth step: the micro-application loader loads the function module of the appointed micro-application after receiving the routing information and renders the function module to the front end.
Based on the same inventive concept, the embodiment of the invention also provides an access device for micro-applications, such as the following embodiment. Since the principle of the access device of the micro-application to solve the problem is similar to that of the access method of the micro-application, the implementation of the device can be referred to the implementation of the method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, 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, which is used to improve the access efficiency of the micro application, and fig. 5 is a schematic diagram of the structure of the access device for the micro application in the embodiment of the present invention, as shown in fig. 5, where the 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 configuration information of the micro application into a backup registry, and update a registry version number in the backup registry;
a registry replacing module 03, 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;
the routing table version number updating module 04 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 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 the loading module 06 is used for loading the micro application in the main service system according to the replaced routing table.
In one embodiment, the loading 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 loading 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 service 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 a micro application according to an embodiment of the present invention, as shown in fig. 6, in one embodiment, the device further includes: a route ranking module 07 for:
before the routing information of the micro application is queried 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 searching 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;
when the configuration information and/or the routing information of any micro application need 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.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running 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 an access method computer program for executing the micro application.
In summary, the embodiment of the invention is as follows: when the micro application needs to be accessed into the main service system, the registry and the routing table of the main service system are backed up; writing configuration information of the micro application into a backup registry, and updating a registry version number in the backup registry; when the updated registry version number is detected, replacing the existing registry of the main service system with the registry corresponding to the updated registry version number; after the registry is replaced, the routing information of the micro application is written into a backup routing table, and the version number of the routing table in the backup routing table is updated; when the updated routing table version number is detected, the routing table corresponding to the updated routing table version number is used for replacing the existing routing table of the main service system, and the existing registry or routing table of the main service system can be replaced based on the updated registry version number or routing table version number without disabling the whole main service system, so that 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, so that the micro-application can be directly loaded in the main service system, the time of page skip 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 routing information of any micro-application need to be changed, the registry and/or routing table of the main service system are updated according to the change information of the micro-application, so that 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.
According to the routing information fields in the routing table, the routing table is divided into multiple stages, and the routing table is searched stage by stage based on the multiple stages of routing tables when the routing information is searched, so that a certain functional module of a certain micro application can be quickly positioned without traversing all the routing information, the searching efficiency of the routing information is improved, and the response speed is further improved.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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, but various modifications and variations can be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An access method for a micro-application, comprising:
when the micro application needs to be accessed into the main service system, the registry and the routing table of the main service system are backed up;
writing configuration information of the micro application into a backup registry, and updating a registry version number in the backup registry;
when the updated registry version number is detected, replacing the existing registry of the main service system with the registry corresponding to the updated registry version number;
after the registry is replaced, the routing information of the micro application is written into a backup routing table, and the version number of the routing table in the backup routing table is updated;
when the updated routing table version number is detected, replacing the existing routing table of the main service system with the routing table corresponding to the updated routing table version number;
loading the micro application in the main service system according to the replaced routing table;
the method for loading the micro application in the main service system according to the replaced routing table comprises the following steps:
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.
2. The method of claim 1, wherein rendering the micro-application to a front-end page of a main service system based on the routing information of 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 service system according to the configuration file and the rendering engine of the micro-application.
3. The method of claim 1, further comprising, prior to querying the routing information for 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;
querying the routing information of the micro application from the replaced routing table, including:
and searching the routing information of the micro application step by step from the replaced routing table.
4. The method as recited in claim 1, further comprising:
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 need 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.
5. An access device for a micro-application, comprising:
the backup module is used for backing up a registry and a routing table of the main service system when the micro application needs to be accessed into the main service system;
the registry version number updating module is used for writing configuration information of the micro application into a backup registry and updating a registry version number in the backup registry;
the registry replacing module is used for replacing the existing registry of the main service system with 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 with the routing table corresponding to the updated routing table version number when the updated routing table version number is detected;
the loading module is used for loading the micro application in the main service system according to the replaced routing table;
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.
6. The apparatus of claim 5, 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 service system according to the configuration file and the rendering engine of the micro-application.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 4 when executing the computer program.
8. 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 4.
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 CN112035183A (en) 2020-12-04
CN112035183B true 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)

Families Citing this family (2)

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

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5737229B2 (en) * 2012-06-12 2015-06-17 コニカミノルタ株式会社 Object sharing system and object input support program

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN112035183A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN107622091B (en) Database query method and device
US8407245B2 (en) Efficient string pattern matching for large pattern sets
CN102650938B (en) Management method for log system and log system
US8244780B1 (en) Parameter oriented automated database command
CN112035183B (en) Access method and device for micro-application
JP5454201B2 (en) Data store switching device, data store switching method, and data store switching program
EP3422186B1 (en) Method, device and system for preventing memory data loss
CN110430255A (en) The processing method of service request, system and electronic equipment in distributed type assemblies
CN111651424B (en) Data processing method, device, data node and storage medium
CN116661943A (en) Pod data volume dynamic mounting method and device under Kubernetes system platform
CN112231031A (en) Dynamic skin changing method and device for application program
CN104536785A (en) Method and device for updating real-time system
CN111078371B (en) Branch task reconstruction method and device based on Flowable process engine
CN104536784B (en) Real-time system update method and device
US20220318249A1 (en) Routing sql statements to elastic compute nodes using workload class
CN112559565A (en) Abnormity detection method, system and device
CN108804148B (en) Method and device for establishing binding relationship between equipment and drive
CN108123983B (en) Affinity load cluster cache processing method and system
CN114245890A (en) Method and apparatus for providing function as a service platform
CN112749189A (en) Data query method and device
CN113761400A (en) Access request forwarding method, device and equipment
CN116627775B (en) Writing optimization method and device for stateful server non-perception function
CN116662290B (en) Read optimization method and device for stateful server non-perceptual function
US20070288244A1 (en) System and method for defining and dynamically invoking polymorphic call flows
CN113268462B (en) Log management method, device and system based on embedded equipment

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