Application program running method, device and system
By using CDN addresses to replace shared code packages for application code package packaging and running, the problems of low efficiency and high manual maintenance costs in multiple applications are solved, and efficient shared code package management is achieved.
Patent Information
- Application Number
- CN202110095153.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-25
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-01-25
AI Technical Summary
In the prior art, multiple applications share the same code package, the method of using multiple applications is inefficient and has high manual maintenance costs.
The application code package is packaged by replacing the shared code package with the CDN address, and the shared code package is called through the CDN address at runtime to realize the shared code package management of multiple applications.
Improve the efficiency of using shared code packages for multiple applications, avoid duplicate loading and packaging, and reduce manual maintenance costs.
Smart Images

Figure CN113805879B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device and system for running an application program. Background Art
[0002] With the rapid growth of business, front-end applications are becoming increasingly complex. To reduce complexity, single applications are gradually being split into multiple sub-applications, each of which can be independently built and deployed. These sub-applications often share many common functions implemented using the same code packages. To minimize development and maintenance costs, these code packages need to be shared across multiple applications.
[0003] Currently, there are two main ways for multiple applications to share the same code package: npm-based module sharing and script-based module sharing.
[0004] In the process of implementing this application, the inventors found that the existing method of implementing multiple applications to share the same code package is inefficient and has high manual maintenance costs. Summary of the Invention
[0005] In view of this, the present application provides an application running method, device and system, which improves the efficiency of multiple applications using a common code package and avoids repeated loading and packaging.
[0006] To solve the above technical problems, the technical solution of this application is implemented as follows:
[0007] In one embodiment, a method for running an application is provided, the method comprising:
[0008] Obtain the application code package corresponding to the application published by the application publishing device;
[0009] When running the application code package, if it is determined that the application code package contains a CDN address, calling the corresponding shared code package through the CDN address for execution;
[0010] The shared code package is shared by multiple applications; and the CDN address is a storage address of the shared code package on a CDN server.
[0011] In another embodiment, a method for running an application is provided, the method comprising:
[0012] The application publishing device sends a request to the management server for obtaining a CDN address; wherein the CDN address is a storage address of the common code package on the CDN server;
[0013] When the management server receives a request for obtaining a CDN address, it obtains the CDN address corresponding to the application identifier carried in the request according to the stored correspondence relationship, and responds to the application publishing device; wherein the correspondence relationship is the correspondence between the application identifier and the CDN address;
[0014] When the application publishing device receives the CDN address responded by the management server, it uses the CDN address to replace the corresponding common code package to package and publish the application code package;
[0015] When the program running device runs the application code package released by the application release device, it calls the corresponding shared code package through the CDN address in the application code package to run.
[0016] In another embodiment, an application running device is provided, the device comprising: an acquisition unit and a running unit;
[0017] The acquisition unit is used to acquire the application code package corresponding to the application released by the application release device;
[0018] The running unit is configured to, when running the application code package obtained by the obtaining unit, call a corresponding shared code package through the CDN address if it is determined that the application code package contains a CDN address; wherein the shared code package is shared by multiple applications; and the CDN address is a storage address of the shared code package on the CDN server.
[0019] In another embodiment, an application program execution system is provided, the system comprising: an application publishing device, a management server, and a program execution device;
[0020] The application publishing device sends a request to the management server for a CDN address; upon receiving the CDN address in response from the management server, the application code package is packaged and published using the CDN address instead of the corresponding common code package; wherein the CDN address is the storage address of the common code package on the CDN server;
[0021] When the management server receives a request for obtaining a CDN address, it obtains the CDN address corresponding to the application identifier carried in the request according to the stored correspondence relationship, and responds to the application publishing device; wherein the correspondence relationship is a correspondence between the application identifier and the CDN address;
[0022] When running the application code package released by the application release device, the program running device calls the corresponding shared code package through the CDN address in the application code package to run.
[0023] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the application program execution method when executing the program.
[0024] In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the application program running method are implemented.
[0025] As can be seen from the above technical solution, in the above embodiment, when packaging application code packages, in the case where applications reuse common code packages, the CDN address of the common code package is used instead of the common code package to package the application code package. When the application code package is run, when the CDN address is traversed, the corresponding common code package is referenced by the CDN address to run. This solution improves the efficiency of multiple applications sharing common code packages and avoids repeated loading and packaging. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0027] Figure 1 This is a schematic diagram of the application program running system in the embodiment of the present application;
[0028] Figure 2 This is a schematic diagram of the application program operation process in Example 1 of this application;
[0029] Figure 3 This is a schematic diagram of the application program operation process in Example 2 of this application;
[0030] Figure 4 This is a schematic diagram of the device structure used in the above technology in the embodiment of the present application;
[0031] Figure 5 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0033] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way are interchangeable where appropriate, so that the embodiments of the invention described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or that are inherent to these processes, methods, products or apparatus.
[0034] The following specific embodiments are used to describe the technical solution of the present invention in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0035] The present invention provides an application execution method for an application execution system, implemented using webpack and Node.js technologies. Webpack is a static module bundler for JavaScript applications, supporting dynamic import and module naming. Node.js is an open-source, cross-platform JavaScript runtime environment, or simply, JavaScript running on a server.
[0036] This article proposes combining the Node.js service with the dynamic introduction of webpack to load JavaScript files of shared code on demand, avoiding the low efficiency of updating shared code packages. At the same time, module naming is used to avoid repeated loading and packaging of modules (shared code packages). Moreover, in multiple applications, the common libraries between applications are automatically separated through a common webpack plug-in, solving the problem of manual maintenance.
[0037] See also Figure 1 , Figure 1 This is a schematic diagram of the application running system in the embodiment of the present application. Figure 1 The system shown in includes: an application publishing device, a management server and a program running device;
[0038] The application publishing device sends a request to the management server to obtain the CDN address; upon receiving the CDN address in response from the management server, the application code package is packaged and published using the CDN address instead of the corresponding common code package;
[0039] When the management server receives a request for obtaining a CDN address, it obtains the CDN address corresponding to the application identifier carried in the request according to the stored correspondence relationship, and responds to the application publishing device; wherein the correspondence relationship is a correspondence between the application identifier and the CDN address;
[0040] When running the application code package released by the application release device, the program running device calls the corresponding shared code package through the CDN address in the application code package to run.
[0041] Wherein, the system further comprises: application development equipment;
[0042] The application development device sends a request to the management server to obtain a common code package identifier; upon receiving a common code package identifier list from the management server, the application development device selects a common code package identifier corresponding to the application identifier from the common code package identifier list;
[0043] When the management server receives the request for obtaining the common code package identifier sent by the application development device, it responds with a registered common code package identifier list to the application development device.
[0044] in,
[0045] The application development device is further configured to register the corresponding relationship between the application identifier and the shared code identifier with the management server;
[0046] The management server is further configured to, upon receiving a correspondence between an application identifier and a common code package identifier registered by an application development device, store the correspondence between the application identifier and the common code package identifier; and upon receiving a CDN address for storing a common code package registered by a common code publishing device, store the correspondence between the CDN address and the application identifier based on the stored correspondence between the application identifier and the common code package identifier.
[0047] Wherein, the apparatus further comprises: a common code package development device;
[0048] The common code package development device registers the common code package identifier of the common code package on the management server;
[0049] When the management server receives the common code package identifier of the common code package registration, it stores it in the common code package identifier list.
[0050] Wherein, the apparatus further comprises: a common code issuing device;
[0051] When publishing a common code package, the common code publishing device obtains the CDN address of the common code package; if the address is obtained, the common code package is published to the location corresponding to the CDN address of the CDN server; if the address is not obtained, the CDN address for storing the common code package is specified on the CDN server and registered with the management server.
[0052] In a specific implementation, if the common code package has been released before, the corresponding common code package is updated in the storage location corresponding to the CDN address storing the common code package; otherwise, it is stored in the storage location corresponding to the specified CDN address, and the correspondence between the CDN address and the common code package identifier is registered with the management server.
[0053] When specifically implemented in the embodiments of the present application, the application development device, the application publishing device, the common code package development device, and the common code package publishing device can be deployed on one device or on multiple devices, and the embodiments of the present application do not limit this.
[0054] A common code package is shared by multiple applications, and each application can use one or more common code packages.
[0055] In this embodiment of the present application, when packaging application code packages, if applications reuse shared code packages, the CDN address of the shared code package is used instead of the shared code package to package the application code package. When the application code package is run, when the CDN address is traversed, the corresponding shared code package is referenced by the CDN address to run the application. This solution improves the efficiency of multiple applications sharing shared code packages, avoids repeated loading and packaging, and avoids manual maintenance issues.
[0056] When the shared code package is updated, as long as the CDN address stored on the CDN server remains unchanged, there is no need to repackage the application code package, which solves the problem of low efficiency in updating the shared code package.
[0057] Example 1
[0058] See also Figure 2 , Figure 2 This is a schematic diagram of the application program operation process in Example 1 of this application. The specific steps are:
[0059] Step 201: The application publishing device sends a request to the management server to obtain a CDN address.
[0060] In step 202, when the management server receives a request for obtaining a CDN address, it obtains the CDN address corresponding to the application identifier carried in the request according to the stored correspondence relationship, and responds to the application publishing device.
[0061] The corresponding relationship stored on the management server is the corresponding relationship between the application identifier and the CDN address.
[0062] The specific implementation of the management server obtaining the correspondence between the application identifier and the CDN address is as follows:
[0063] The common code package development device registers the common code package identifier of the common code package on the management server;
[0064] When the management server receives the common code package identifier of the common code package registration, it stores it in the common code package identifier list.
[0065] The application development device sends a request to the management server for obtaining a common code package identifier;
[0066] When the management server receives the request for obtaining the common code package identifier sent by the application development device, it responds to the application development device with a registered common code package identifier list.
[0067] When the application development device receives the common code package identifier list responded by the management server, it selects the common code package identifier corresponding to the application identifier from the common code package identifier list.
[0068] The application development device registers the obtained correspondence between the application identifier and the common code identifier in the management server;
[0069] When the management server receives the correspondence between the registered application identifier of the application development device and the common code package identifier, it stores the correspondence between the application identifier and the common code package identifier.
[0070] When publishing a common code package, the common code publishing device obtains the CDN address of the common code package; if obtained, the common code package is published to the location corresponding to the CDN address of the CDN server; if not obtained, the CDN address for storing the common code package is specified on the CDN server and registered with the management server.
[0071] In a specific implementation, if the common code package has been released before, the corresponding common code package is updated in the storage location corresponding to the CDN address storing the common code package; otherwise, it is stored in the storage location corresponding to the specified CDN address, and the correspondence between the CDN address and the common code package identifier is registered with the management server.
[0072] When the management server receives the CDN address of the common code package registered and stored by the common code publishing device, it stores the correspondence between the CDN address and the application identifier according to the stored correspondence between the application identifier and the common code package identifier.
[0073] Step 203: When the application publishing device receives the CDN address responded by the management server, it uses the CDN address to replace the corresponding common code package to package and publish the application code package.
[0074] In the embodiment of the present application, when the application publishing device publishes the application code package, it references the CDN address instead of the common code package corresponding to the CDN address to package and publish the application code package, intercepts the dynamic introduction of related code packages to package the application code package, and avoids repeated loading and packaging, as well as manual maintenance problems.
[0075] Step 204 : When the program running device runs the application code package released by the application release device, it calls the corresponding shared code package through the CDN address in the application code package to run.
[0076] When the program running device runs the application code package, if it traverses to the code package, it directly runs the code; if it traverses to the CDN address, it calls the corresponding shared code package through the CDN address for execution.
[0077] In this embodiment of the present application, when packaging application code packages, if applications reuse shared code packages, the CDN address of the shared code package is used instead of the shared code package to package the application code package. When the application code package is run, when the CDN address is traversed, the corresponding shared code package is referenced by the CDN address to run the application. This solution improves the efficiency of multiple applications sharing shared code packages, avoids repeated loading and packaging, and avoids manual maintenance issues.
[0078] When the shared code package is updated, as long as the CDN address stored on the CDN server remains unchanged, there is no need to repackage the application code package, which solves the problem of low efficiency in updating the shared code package.
[0079] Example 2
[0080] See also Figure 3 , Figure 3 This is a schematic diagram of the application program operation process in Example 3 of this application. The specific steps are:
[0081] Step 301: Obtain an application code package corresponding to an application program published by an application publishing device.
[0082] Step 302: When running the application code package, if it is determined that the application code package includes a CDN address, the corresponding shared code package is called and run through the CDN address.
[0083] The shared code package is shared by multiple applications; and the CDN address is a storage address of the shared code package on a CDN server.
[0084] When the application code package is packaged, the CDN address of the common code package is used to replace the common code package to package the application code package.
[0085] In specific implementation, the application code package is packaged and released by the application release device;
[0086] When packaging an application code package, the application publishing device obtains the CDN address of the shared code package shared with other applications in the following specific implementations:
[0087] The management server stores the correspondence between the application identifier and the CDN address;
[0088] The application publishing device obtains the CDN address corresponding to the application identifier corresponding to the application code package to be packaged from the management server.
[0089] The CDN addresses obtained at this time may be one or more. If the current application corresponds to several shared code packages, several CDN addresses will be obtained.
[0090] The specific implementation of the management server obtaining the correspondence between the application identifier and the CDN address is as follows:
[0091] The common code package development device registers the common code package identifier of the common code package on the management server;
[0092] When the management server receives the common code package identifier of the common code package registration, it stores it in the common code package identifier list.
[0093] The application development device sends a request to the management server for obtaining a common code package identifier;
[0094] When the management server receives the request for obtaining the common code package identifier sent by the application development device, it responds to the application development device with a registered common code package identifier list.
[0095] When the application development device receives the common code package identifier list responded by the management server, it selects the common code package identifier corresponding to the application identifier from the common code package identifier list.
[0096] The application development device registers the obtained correspondence between the application identifier and the common code identifier in the management server;
[0097] When the management server receives the correspondence between the registered application identifier of the application development device and the common code package identifier, it stores the correspondence between the application identifier and the common code package identifier.
[0098] When publishing a common code package, the common code publishing device obtains the CDN address of the common code package; if obtained, the common code package is published to the location corresponding to the CDN address of the CDN server; if not obtained, the CDN address for storing the common code package is specified on the CDN server and registered with the management server.
[0099] In a specific implementation, if the common code package has been released before, the corresponding common code package is updated in the storage location corresponding to the CDN address storing the common code package; otherwise, it is stored in the storage location corresponding to the specified CDN address, and the correspondence between the CDN address and the common code package identifier is registered with the management server.
[0100] When the management server receives the CDN address of the common code package registered and stored by the common code publishing device, it stores the correspondence between the CDN address and the application identifier according to the stored correspondence between the application identifier and the common code package identifier.
[0101] When specifically implemented in the embodiments of the present application, the application development device, the application publishing device, the common code package development device, and the common code package publishing device can be deployed on one device or on multiple devices, and the embodiments of the present application do not limit this.
[0102] A common code package is shared by multiple applications, and each application can use one or more common code packages.
[0103] In this embodiment of the present application, when packaging application code packages, if applications reuse shared code packages, the CDN address of the shared code package is used instead of the shared code package to package the application code package. When the application code package is run, when the CDN address is traversed, the corresponding shared code package is referenced by the CDN address to run the application. This solution improves the efficiency of multiple applications sharing shared code packages, avoids repeated loading and packaging, and avoids manual maintenance issues.
[0104] When the shared code package is updated, as long as the CDN address stored on the CDN server remains unchanged, there is no need to repackage the application code package, which solves the problem of low efficiency in updating the shared code package.
[0105] Based on the same inventive concept, an application program running device is also provided in the embodiment of the present application. Figure 4 , Figure 4 This is a schematic diagram of the structure of a device applied to the above technology in an embodiment of the present application. The device includes: an acquisition unit 401 and an operation unit 402;
[0106] An acquisition unit 401 is configured to acquire an application code package corresponding to an application program published by an application publishing device;
[0107] The running unit 402 is used to call the corresponding shared code package to run through the CDN address when running the application code package obtained by the obtaining unit 401, if it is determined that the application code package contains a CDN address; wherein the shared code package is shared by multiple applications; and the CDN address is the storage address of the shared code package on the CDN server.
[0108] Preferably,
[0109] When the application code package is packaged, the CDN address of the common code package is used to replace the common code package to package the application code package.
[0110] The units in the above embodiments may be integrated into one body or deployed separately; they may be combined into one unit or further divided into multiple sub-units.
[0111] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the application program are implemented when the processor executes the program.
[0112] In another embodiment, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps in the application running method can be implemented.
[0113] Figure 5 Schematic diagram of the physical structure of the electronic device provided by the embodiment of the present invention. Figure 5 As shown, the electronic device may include: a processor (Processor) 510, a communication interface (Communications Interface) 520, a memory (Memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other via the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the following method:
[0114] Obtain the application code package corresponding to the application published by the application publishing device;
[0115] When running the application code package, if it is determined that the application code package contains a CDN address, calling the corresponding shared code package through the CDN address for execution;
[0116] The shared code package is shared by multiple applications; and the CDN address is a storage address of the shared code package on a CDN server.
[0117] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0118] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0119] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for running an application, characterized in that: The method comprises: Obtain the application code package corresponding to the application published by the application publishing device; When running the application code package, if it is determined that the application code package contains a content delivery network (CDN) address, then the corresponding common code package is called and run through the CDN address, the CDN address contained in the application code package is determined based on the common code package identifier corresponding to the application identifier of the application program, the correspondence between the application identifier and the common code package identifier is registered with the management server by the application development device, and the correspondence between the CDN address and the common code package identifier is registered with the management server by the common code publishing device; The shared code package is shared by multiple applications; the CDN address is the storage address of the shared code package on the CDN server; When the application code package is packaged, the CDN address of the common code package is used to replace the common code package to package the application code package.
2. A method for running an application, characterized in that: The method comprises: The application publishing device sends a request to the management server to obtain a content delivery network (CDN) address; wherein the CDN address is a storage address of the shared code package on the CDN server; When the management server receives a request for obtaining a CDN address, it obtains the CDN address corresponding to the application identifier carried in the request according to the stored correspondence relationship, and responds to the application publishing device; wherein the correspondence relationship is the correspondence between the application identifier and the CDN address; When the application publishing device receives the CDN address responded by the management server, it uses the CDN address to replace the corresponding common code package to package and publish the application code package; When the program running device runs the application code package released by the application publishing device, it calls the corresponding shared code package through the CDN address in the application code package to run; The management server obtains the correspondence between the application identifier and the CDN address, including: The application development device registers the obtained correspondence between the application identifier and the common code package identifier in the management server; When the management server receives the correspondence between the registered application identifier of the application development device and the common code package identifier, it stores the correspondence between the application identifier and the common code package identifier; The shared code publishing device registers the CDN address of the shared code on the management server; When the management server receives the CDN address registered by the common code publishing device, it stores the correspondence between the CDN address and the application identifier according to the stored correspondence between the application identifier and the common code package identifier.
3. The method according to claim 2, characterized in that The application development device obtains the corresponding relationship between the application identifier and the shared code package identifier, including: The application development device sends a request to the management server for obtaining a common code package identifier; When the management server receives the request for obtaining the common code package identifier sent by the application development device, it responds to the application development device with a registered common code package identifier list; When the application development device receives the common code package identifier list responded by the management server, it selects the common code package identifier corresponding to the application identifier from the common code package identifier list.
4. The method according to claim 3, characterized in that The management server acquiring the common code package identifier list includes: The common code package development device registers the common code package identifier of the common code package on the management server; When the management server receives the common code package identifier of the common code package registration, it stores it in the common code package identifier list.
5. The method according to claim 2, characterized in that The method further comprises: When publishing a common code package, the common code publishing device obtains the CDN address of the common code package; if obtained, the common code package is published to the location corresponding to the CDN address of the CDN server; if not obtained, the CDN address for storing the common code package is specified on the CDN server and registered with the management server.
6. An application running device, characterized in that: The device comprises: an acquisition unit and an operation unit; The acquisition unit is used to acquire the application code package corresponding to the application released by the application release device; The running unit is configured to, when running the application code package acquired by the acquiring unit, call a corresponding common code package through the CDN address if it is determined that the application code package includes a content delivery network (CDN) address, wherein the CDN address included in the application code package is determined based on a common code package identifier corresponding to an application identifier of the application program, the correspondence between the application identifier and the common code package identifier is registered with a management server by an application development device, and the correspondence between the CDN address and the common code package identifier is registered with the management server by a common code publishing device; wherein the common code package is shared by multiple applications; the CDN address is a storage address of the common code package on a CDN server; and when the application code package is packaged, the CDN address of the common code package is used to replace the common code package for application code package packaging.
7. An application program running system, characterized in that: The system includes: an application publishing device, a management server and a program running device; The application publishing device sends a request to the management server for a content delivery network (CDN) address; upon receiving the CDN address in response from the management server, the application publishing device uses the CDN address to replace the corresponding common code package to package and publish the application code package; wherein the CDN address is the storage address of the common code package on the CDN server; When the management server receives a request for obtaining a CDN address, it obtains the CDN address corresponding to the application identifier carried in the request according to the stored correspondence relationship, and responds to the application publishing device; wherein the correspondence relationship is a correspondence between the application identifier and the CDN address; The program running device, when running the application code package released by the application publishing device, calls the corresponding shared code package through the CDN address in the application code package to run; The management server obtains the correspondence between the application identifier and the CDN address, including: The application development device registers the obtained correspondence between the application identifier and the common code package identifier in the management server; When the management server receives the correspondence between the registered application identifier of the application development device and the common code package identifier, it stores the correspondence between the application identifier and the common code package identifier; The shared code publishing device registers the CDN address of the shared code on the management server; When the management server receives the CDN address registered by the common code publishing device, it stores the correspondence between the CDN address and the application identifier according to the stored correspondence between the application identifier and the common code package identifier.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to claims 1 to 5 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in claims 1 to 5 is implemented.
Citation Information
Patent Citations
Page generation method and device
CN108415963A
Front-end loading optimization method based on component development mode and storage medium
CN109614162A