A page deployment method, device, computer equipment and storage medium

By obtaining and storing page rendering information and deployment files, generating target configuration information and sending it to the functional gateway, the contradiction between custom rendering and enhancement capabilities in front-end application deployment is solved, and the decoupling of custom rendering and enhancement capabilities is achieved.

CN114579127BActive Publication Date: 2025-05-20DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210264779.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-17
Publication Date
2025-05-20
Estimated Expiration
2042-03-17

AI Technical Summary

Technical Problem

During the deployment of front-end applications, there is a contradiction between the need for custom application page rendering services and the need to use various enhanced capabilities provided by the application deployment platform, and the existing technology is difficult to meet both at the same time.

Method used

By obtaining page rendering information and deployment files, storing rendering information and deploying files to matching rendering services and application running environments, generating target configuration information and sending it to the functional gateway, and using the functional gateway to process application usage requests, realizing the decoupling of custom page rendering and enhanced capabilities.

Benefits of technology

The requirements of custom application page rendering services are realized, and the various enhancement capabilities provided by the application deployment platform can be used to solve the problem that the existing technology cannot meet the custom rendering and enhancement capabilities at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579127B_ABST
    Figure CN114579127B_ABST
Patent Text Reader

Abstract

The present disclosure provides a page deployment method, apparatus, computer equipment and storage medium, wherein the method comprises: obtaining page rendering information for an application and a deployment file corresponding to the application; executing a deployment operation of storing the page rendering information in an information reading location corresponding to a rendering service matching the application, and deploying the deployment file to an application running environment corresponding to the application, thereby obtaining deployment environment information corresponding to the application; based on the deployment environment information and function indication information corresponding to an application deployment platform, generating target configuration information and sending the information to a function gateway corresponding to the application deployment platform, wherein the function gateway is used to process an application use request for the application based on the target configuration information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a page deployment method, apparatus, computer device, and storage medium. Background Art

[0002] Since the application deployment platform provides convenient and powerful application deployment capabilities, for the deployment operation of front-end applications, it is usually necessary to complete it with the help of the application deployment platform, and the deployed front-end applications can use various enhanced capabilities provided by the application deployment platform, such as traffic distribution capabilities.

[0003] However, during the deployment process of front-end applications, there is usually a need to customize the rendering service for at least some application pages. If the above request is satisfied, the application deployment operation also needs to be completed in a customized manner, which will lead to the problem that various enhanced capabilities provided by the application deployment platform cannot be used.

[0004] Therefore, how to satisfy the need for customizing the application page rendering service while also realizing the application of various enhanced capabilities provided by the application deployment platform has become an urgent problem to be solved. Summary of the Invention

[0005] Embodiments of the present disclosure at least provide a page deployment method, apparatus, computer device, and storage medium.

[0006] In a first aspect, embodiments of the present disclosure provide a page deployment method, including:

[0007] Obtain page rendering information for an application and a deployment file corresponding to the application;

[0008] Execute a deployment operation of storing the page rendering information at an information reading position corresponding to a rendering service matching the application, and deploying the deployment file to an application running environment corresponding to the application, to obtain deployment environment information corresponding to the application;

[0009] Generate target configuration information based on the deployment environment information and function indication information corresponding to the application deployment platform, and send the target configuration information to a function gateway corresponding to the application deployment platform, where the function gateway is used to process an application usage request for the application based on the target configuration information.

[0010] In a possible implementation manner, after sending the target configuration information to the function gateway, it further includes:

[0011] Receive an application usage request for the application through the function gateway;

[0012] Using the functional gateway, determine the execution logic information and the target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information;

[0013] Invoke the target rendering service, and render the initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading location.

[0014] In a possible implementation manner, after obtaining the initial page, it further includes:

[0015] Using the functional gateway, perform page adjustment on the initial page according to the page processing function indicated by the function indication information corresponding to the target configuration information to obtain a target page, and feedback the target page to the request side corresponding to the application usage request.

[0016] In a possible implementation manner, the determining the execution logic information corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information includes:

[0017] Using the routing calculation function in the request processing function, screen out a target path that matches the initial path carried in the application usage request from at least one preset path corresponding to the application;

[0018] Process the page execution logic indicated by the target path according to the docking protocol information between the functional gateway and the target rendering service to obtain execution logic information that matches the docking protocol information.

[0019] In a possible implementation manner, the determining the target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information includes:

[0020] Using the traffic distribution function in the request processing function, determine the target rendering service corresponding to the application usage request from the multiple rendering services according to the resource usage conditions of the multiple rendering services in the application running environment; or,

[0021] Using the traffic distribution function in the request processing function, screen out a target rendering service that matches the request type from the multiple rendering services according to the request type of the application usage request.

[0022] In a possible implementation manner, the rendering the initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading location includes:

[0023] Parse the execution logic information according to the docking protocol information to determine the page execution logic corresponding to the execution logic information;

[0024] Render an initial page corresponding to the application usage request based on the page execution logic and the page rendering information read from the information reading position.

[0025] In a possible implementation manner, the obtaining the page rendering information for an application and the deployment file corresponding to the application includes:

[0026] In response to an information upload request received, obtain page rendering information that conforms to a preset specification from a specified rendering information storage address, and obtain the deployment file from a file storage location corresponding to the deployment file.

[0027] In a possible implementation manner, the invoking the target rendering service includes:

[0028] Determine an environment indication identifier of an application running environment corresponding to the target rendering service according to the deployment environment information corresponding to the target configuration information;

[0029] Invoke the target rendering service from the application running environment indicated by the environment indication identifier.

[0030] In a second aspect, an embodiment of the present disclosure further provides a page deployment device, including:

[0031] An obtaining module, configured to obtain page rendering information for an application and a deployment file corresponding to the application;

[0032] A deployment module, configured to perform a deployment operation of storing the page rendering information to an information reading position corresponding to a rendering service matching the application, and deploying the deployment file to an application running environment corresponding to the application, to obtain deployment environment information corresponding to the application;

[0033] A generating module, configured to generate target configuration information based on the deployment environment information and function indication information corresponding to an application deployment platform, and send the target configuration information to a function gateway corresponding to the application deployment platform, where the function gateway is configured to process an application usage request for the application based on the target configuration information.

[0034] In a possible implementation manner, the device further includes:

[0035] A rendering module, configured to, after sending the target configuration information to the function gateway, receive an application usage request for the application through the function gateway;

[0036] Using the functional gateway, determine the execution logic information and the target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information;

[0037] Invoke the target rendering service, and render the initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading location.

[0038] In a possible implementation manner, the device further includes:

[0039] An adjustment module, configured to, after obtaining the initial page, use the functional gateway to perform page adjustment on the initial page according to the page processing function indicated by the function indication information corresponding to the target configuration information, obtain a target page, and feedback the target page to the request side corresponding to the application usage request.

[0040] In a possible implementation manner, the rendering module is configured to use the routing calculation function in the request processing function to filter out a target path that matches the initial path carried in the application usage request from at least one preset path corresponding to the application;

[0041] Process the page execution logic indicated by the target path according to the docking protocol information between the functional gateway and the target rendering service to obtain execution logic information that matches the docking protocol information.

[0042] In a possible implementation manner, the rendering module is configured to use the traffic distribution function in the request processing function to determine the target rendering service corresponding to the application usage request from the multiple rendering services according to the resource usage conditions of the multiple rendering services in the application running environment; or,

[0043] Use the traffic distribution function in the request processing function to filter out a target rendering service that matches the request type from the multiple rendering services according to the request type of the application usage request.

[0044] In a possible implementation manner, the rendering module is configured to parse the execution logic information according to the docking protocol information to determine the page execution logic corresponding to the execution logic information;

[0045] Render the initial page corresponding to the application usage request according to the page execution logic and the page rendering information read from the information reading location.

[0046] In a possible implementation, the obtaining module is configured to obtain page rendering information that conforms to a preset specification from a specified rendering information storage address in response to a received information upload request, and obtain the deployment file from the file storage location corresponding to the deployment file.

[0047] In a possible implementation, the rendering module is configured to determine an environment indication identifier of the application running environment corresponding to the target rendering service according to the deployment environment information corresponding to the target configuration information;

[0048] Invoke the target rendering service from the application running environment indicated by the environment indication identifier.

[0049] In a third aspect, an alternative implementation of the present disclosure further provides a computer device, including a processor and a memory. The memory stores machine-readable instructions executable by the processor. The processor is configured to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the machine-readable instructions execute the steps in the first aspect, or any possible implementation manner in the first aspect.

[0050] In a fourth aspect, an alternative implementation of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run, it executes the steps in the first aspect, or any possible implementation manner in the first aspect.

[0051] For the effect description of the above page deployment device, computer device, and computer-readable storage medium, refer to the description of the above page deployment method, which will not be elaborated here.

[0052] The page deployment method, device, computer device, and storage medium provided by the embodiments of the present disclosure can combine the obtained page rendering information with the rendering service corresponding to the application by storing it in the information reading location corresponding to the rendering service matching the application. Subsequently, the combined rendering service can be used for page rendering, meeting the requirements of customizing the application page rendering service. Moreover, since various enhanced capabilities provided by the application deployment platform are deployed in the functional gateway, by sending the target configuration information generated based on the deployment environment information and the function indication information to the functional gateway, the functional gateway can subsequently process the application usage request based on the target configuration information and the deployed enhanced capabilities. In this way, while meeting the requirements of customizing the application page rendering service, the application deployment platform does not need to rely on its own provided various enhanced capabilities to process the application usage request. Instead, the various enhanced capabilities deployed in the functional gateway are used to replace the application deployment platform to process the application usage request, achieving the decoupling of the various enhanced capabilities provided by the application deployment platform and the custom page rendering service. This not only meets the requirements of customizing the application page rendering service but also enables the use of the various enhanced capabilities provided by the application deployment platform at the same time.

[0053] Furthermore, for the page deployment method, device, computer device, and storage medium provided by the embodiments of the present disclosure, after sending the target configuration information to the functional gateway, the functional gateway can process the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information, realizing the use of the request processing function provided by the application deployment platform. By further invoking the target rendering service and reading the page rendering information from the information reading location, the page can be rendered using the custom service and the target rendering service indicated by the page rendering information, meeting the requirements of customizing the application page rendering service. To make the above objects, features, and advantages of the present disclosure more obvious and understandable, the following specific embodiments are given in conjunction with the accompanying drawings and are described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the accompanying drawings required in the embodiments. The accompanying drawings are incorporated into the specification and form a part of the specification. These drawings show the embodiments conforming to the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative efforts.

[0055] Figure 1Shows a flowchart of a page deployment method provided by an embodiment of the present disclosure;

[0056] Figure 2 Shows a specific implementation flowchart of a page deployment method provided by an embodiment of the present disclosure;

[0057] Figure 3 Shows a schematic diagram of a page deployment device provided by an embodiment of the present disclosure;

[0058] Figure 4 Shows a schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure. Detailed implementation manners

[0059] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments. Usually, the components of the embodiments of the present disclosure described and illustrated herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the present disclosure claimed, but merely represents selected embodiments of the present disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative efforts shall fall within the scope of protection of the present disclosure.

[0060] In addition, the terms "first", "second", etc. in the description and claims of the embodiments of the present disclosure and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described here can be implemented in an order different from that shown or described here.

[0061] As used herein, "a plurality or several" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0062] Through research, it is found that during the deployment process of front-end applications, there is usually a need for custom page rendering services, and there is also a need to use various enhanced capabilities provided by the application deployment platform. However, in the related art, there is a defect that the above two needs cannot be satisfied simultaneously.

[0063] Based on the above research, the present disclosure provides a page deployment method, apparatus, computer device, and storage medium. By storing the obtained page rendering information in the information reading location corresponding to the rendering service matching the application, it is possible to combine the rendering service matching the application with the custom page rendering service indicated by the page rendering information. Subsequently, the combined rendering service can be used for page rendering, meeting the requirements of custom application page rendering services. Moreover, since various enhanced capabilities provided by the application deployment platform are deployed in the function gateway, by sending the target configuration information generated based on the deployment environment information and function indication information to the function gateway, the function gateway can subsequently process the application usage request based on the target configuration information and the deployed enhanced capabilities. In this way, on the basis of meeting the requirements of custom application page rendering services, instead of relying on the various enhanced capabilities provided by the application deployment platform itself to process the application usage request, the various enhanced capabilities deployed in the function gateway can be used to replace the application deployment platform for processing the application usage request, realizing the decoupling of the various enhanced capabilities provided by the application deployment platform and the custom page rendering service, which not only meets the requirements of custom application page rendering services but also enables the use of the various enhanced capabilities provided by the application deployment platform at the same time.

[0064] Regarding the defects existing in the above solutions, they are all the results obtained by the inventors through practice and careful research. Therefore, the process of discovering the above problems and the solutions proposed by the present disclosure for the above problems in the following text should be the contributions made by the inventors to the present disclosure during the process of the present disclosure.

[0065] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0066] To facilitate the understanding of this embodiment, first, a page deployment method disclosed in the embodiments of the present disclosure will be introduced in detail. The execution subject of the page deployment method provided in the embodiments of the present disclosure is generally a computer device with certain computing capabilities. In some possible implementation manners, the page deployment method can be implemented by a processor calling computer-readable instructions stored in a memory.

[0067] The page deployment method provided in the embodiments of the present disclosure will be described below by taking the execution subject as a computer device as an example.

[0068] As Figure 1 shown, it is a flowchart of a page deployment method provided in the embodiments of the present disclosure, which may include the following steps:

[0069] S101: Obtain page rendering information for an application and a deployment file corresponding to the application.

[0070] Here, the above application can be any front-end application that needs to be deployed on the server. For example, short video applications, novel applications, shopping applications, and so on. After the application is deployed on the server, the resources in the server are available for the application to use.

[0071] The page rendering information is used to represent the user-defined page rendering service. The deployment file can be used to deploy the application to the corresponding application environment. Specifically, the deployment file can describe all the information required when the application is deployed, such as the execution logic information of the application, the file information corresponding to the application, the files to be returned for various access requests, the file access paths or file identifiers of the files corresponding to various access requests, and other information.

[0072] In specific implementation, when there is a need to deploy an application, the page rendering information for the application to be deployed and the deployment file corresponding to the application to be deployed can be obtained from a preset information storage location. Among them, the preset information storage location can be, for example, memory, server, database, and so on.

[0073] In one embodiment, the steps for obtaining the page rendering information and the deployment file can be implemented according to the following steps:

[0074] In response to the received information upload request, obtain the page rendering information that conforms to the preset specification from the specified rendering information storage address, and obtain the deployment file from the file storage location corresponding to the deployment file.

[0075] Here, the information upload request can be a request initiated by the user using the user terminal to upload the page rendering information and the deployment file for the application.

[0076] The rendering information storage address is the storage address of the page rendering information corresponding to the pre-specified custom page rendering service. The page rendering information can specifically be page rendering code. Exemplarily, the rendering information storage address can be a specified code folder, a specified database directory, and so on.

[0077] The preset specification is the writing specification corresponding to the page rendering information, such as the code language specification, the code format specification, and so on.

[0078] The file storage location is the storage location of the deployment file corresponding to the application. The file storage locations corresponding to different applications can be different, and the file storage location is indicated by the information upload request.

[0079] Exemplarily, the user can customize the page rendering service according to the preset specifications and requirements, and write the page rendering information for the application at the rendering information storage address. Subsequently, based on the written page rendering information and the file storage location of the deployment file corresponding to the application, an information upload request for uploading the page rendering information and the deployment file to the application deployment platform can be initiated. Among them, the application deployment platform can be used to execute the application deployment operation and deploy the application to the server.

[0080] Furthermore, in response to the information upload request, the information upload request can be parsed to determine the file storage location indicated by the information upload request. Subsequently, the page rendering information that conforms to the preset specifications can be obtained from the rendering information storage address, and the deployment file corresponding to the application can be obtained from the determined file storage location.

[0081] S102: Execute the deployment operation of storing the page rendering information to the information reading location corresponding to the rendering service that matches the application, and deploying the deployment file to the application running environment corresponding to the application, to obtain the deployment environment information corresponding to the application.

[0082] Here, the application can be deployed in the server to realize the use of server resources. The rendering service body is used to execute the page rendering operation. It can be the page rendering service provided by the server that matches the application, and is a kind of server resource in the server. There can be multiple rendering services, and different rendering services can be used to render different pages. The information reading location can be the location where the server can read information. For example, the information reading location can be the database corresponding to the server. The application can be deployed in one or more servers, and each server can store the corresponding rendering service.

[0083] The application running environment is the running environment required for the application to run and the rendering service to run. Specifically, it can include Docker containers, FAAS services, and edge services. Among them, Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable container in a unified manner for deploying applications. FAAS: Function as a Service, which is a cloud computing service that allows developers to build, calculate, run, and manage these application packages in the form of functions without maintaining their own infrastructure.

[0084] The deployment environment information is used to indicate the above application running environment and each rendering service in the running environment. Specifically, the deployment environment information can be the environment indication identifier corresponding to the application running environment, the rendering service identifier corresponding to each rendering service, and / or the server identifier corresponding to each server corresponding to the application.

[0085] In specific implementation, after obtaining the page rendering information and the deployment file, the application deployment operation can be performed by using the application deployment platform. Specifically, the deployable server that matches the application can be determined first. For example, the server with idle resources currently can be determined and used as the deployable server that matches the application.

[0086] After that, the page rendering information can be stored at the information reading location corresponding to the deployable server that matches the application, that is, the page rendering information is stored at the information reading location corresponding to the rendering service that matches the application, so as to realize the combination of the rendering service that matches the application and the custom page rendering service indicated by the page rendering information. At the same time, the deployment file can be deployed to the application running environment corresponding to the application, for example, deployed to a docker container, and finally the application is deployed to the server.

[0087] Furthermore, the environment indication identifier corresponding to the application running environment, the rendering service identifiers of each rendering service provided by the server, and the server identifier can be used as the deployment environment information corresponding to the application.

[0088] S103: Generate target configuration information based on the deployment environment information and the function indication information corresponding to the application deployment platform, and send it to the function gateway corresponding to the application deployment platform. The function gateway is used to process the application usage request for the application based on the target configuration information.

[0089] Here, the function indication information is used to indicate the enabled enhanced capabilities corresponding to the application deployment platform. The enabled enhanced capabilities corresponding to the application deployment platform can be specified in advance. The target configuration information can represent the information related to the application that has been configured, and specifically can include but is not limited to the deployment environment information and the function indication information. For example, the target configuration information can also include the information reading location corresponding to the page rendering information, the deployment file corresponding to the application, the directory information of each application file corresponding to the application, the application file location information, and other information.

[0090] The function gateway can be a pre-set gateway deployed with various enhanced capabilities. Among them, each enhanced capability deployed in the function gateway can be determined according to the functions provided by the application deployment platform. For example, when the functions provided by the application deployment platform include the traffic distribution function and the routing calculation function, the traffic distribution function and the routing calculation function can also be deployed in the function gateway.

[0091] In specific implementation, the enabled enhanced capabilities corresponding to the application deployment platform can be determined first, and function indication information corresponding to the application deployment platform can be generated based on the enabled enhanced capabilities. Furthermore, based on the deployment environment information determined in S102 and the generated function indication information, target configuration information can be generated and sent to the function gateway, thereby completing the deployment of the application.

[0092] Further, after receiving the target configuration information, the function gateway can process the application usage request according to the function indication information corresponding to the target configuration information, and call the rendering service according to the deployment environment information and the processing result corresponding to the target configuration information to complete page rendering, and finally realize the response to the application usage request.

[0093] In this way, by storing the obtained page rendering information at the information reading location corresponding to the rendering service matching the application, the combination of the rendering service matching the application and the custom page rendering service indicated by the page rendering information can be realized. Subsequently, the combined rendering service can be used for page rendering to meet the requirements of the custom application page rendering service. And since various enhanced capabilities provided by the application deployment platform are deployed in the function gateway, by sending the target configuration information generated based on the deployment environment information and function indication information to the function gateway, the function gateway can be used subsequently to process the application usage request based on the target configuration information and the deployed enhanced capabilities.

[0094] In this way, on the basis of meeting the requirements of the custom application page rendering service, it is not necessary to use the various enhanced capabilities provided by the application deployment platform itself to process the application usage request, but instead use the various enhanced capabilities deployed in the function gateway to replace the application deployment platform to process the application usage request, realizing the decoupling of the various enhanced capabilities provided by the application deployment platform and the custom page rendering service, which not only meets the requirements of the custom application page rendering service but also enables the use of the various enhanced capabilities provided by the application deployment platform at the same time.

[0095] In one embodiment, after sending the target configuration information to the function gateway, the function network can also be used to process the received application usage request for the application according to the following steps:

[0096] Step 1: Receive the application usage request for the application through the function gateway.

[0097] Here, the application usage request is a request for the user to use the deployed application at the user side. For example, an application page loading request, an application function usage request, a page file acquisition request, etc.

[0098] In specific implementation, after a user initiates an application usage request, the function gateway can be utilized to receive the application usage request. That is, each application usage request for the application can first enter the function gateway.

[0099] Step 2: Use the function gateway to determine the execution logic information and the target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information.

[0100] Here, the request processing function is used to process the application usage request and is an enhanced capability pre-deployed in the function gateway. Based on this function, the execution logic information, the target rendering service, the server corresponding to the target rendering service, etc. corresponding to the application usage request can be determined. The execution logic information is used to represent the page execution logic corresponding to the application usage request. For example, the execution logic information may include the acquisition paths and file versions of each page file to be acquired corresponding to the application usage request, the request calculation result corresponding to the application usage request, etc.

[0101] The target rendering service is a service used to render the target page requested by the application usage request.

[0102] In specific implementation, after the function gateway receives the application usage request, the function indication information carried therein can be determined according to the target configuration information. Furthermore, the request processing function indicated by the function indication information can be determined. Then, the request processing function deployed in the function gateway can be used to process the application usage request to determine the execution logic information and the target rendering service corresponding to the application usage request.

[0103] Step 3: Invoke the target rendering service and render the initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading location.

[0104] Here, the initial page is the page rendered by using the target rendering service after responding to the application usage request.

[0105] Exemplarily, the function gateway can be used to invoke the target rendering service to further process the application usage request. Specifically, the page rendering information read from the information reading location by using the target rendering service can be utilized, that is, the user-defined page rendering service is obtained. After that, according to the execution logic information, the page file corresponding to the application usage request can be obtained, and then the custom page rendering service corresponding to the page rendering information and the target rendering service can be used to perform page rendering according to the obtained page file to obtain the initial page corresponding to the application usage request.

[0106] After obtaining the initial page, the initial page can be used as the target page requested by the application usage request, and the function gateway can be used to feed it back to the user end that initiated the application usage request.

[0107] In one embodiment, for the step of calling the target rendering service, the environment indicator of the application running environment corresponding to the target rendering service can be determined according to the deployment environment information corresponding to the target configuration information. Here, the environment indicator is used to uniquely identify the application running environment.

[0108] Then, the application running environment indicated by the environment indicator can be determined from the application running environments corresponding to different applications, and the target rendering service can be called from the application running environment. Here, if the application running environment includes multiple rendering services, when the environment indicator is determined using the deployment environment information, the target rendering service identifier of the target rendering service and / or the target server identifier corresponding to the server corresponding to the target rendering service can also be determined using the deployment environment information.

[0109] Afterwards, after determining the application running environment indicated by the environment indicator, the server corresponding to the target server identifier can be determined from multiple servers running in the application running environment according to the target server identifier, and the target rendering service with the target rendering service identifier can be determined from multiple rendering services provided by the server corresponding to the target server identifier according to the target rendering service identifier, and the target rendering service can be called.

[0110] In one embodiment, after obtaining the initial page, the function gateway can also be used to adjust the initial page according to the page processing function indicated by the function indication information corresponding to the target configuration information, obtain the target page, and feed back the target page to the request end corresponding to the application usage request.

[0111] Here, the requesting end may be a user end that initiates an application usage request, such as a client, a browser, a personal computer, etc.

[0112] The page processing function can be a function for adjusting the page rendered by the target rendering service, and is a function deployed in the function gateway. For example, the page processing function can be a page graying function, a page size adjustment function, a page font adjustment function, etc. A variety of page processing functions can be deployed in the function gateway, and the function indication information carried in the target configuration information can indicate the page processing function that the function gateway can enable for the application corresponding to the function indication information.

[0113] The target configuration information corresponding to different applications can be different, and the page processing functions indicated by different target configuration information can be different. That is, for different applications, the page processing functions provided by the function gateway for each application can be different. For example, for Application A, the page processing function indicated by the target configuration information corresponding to Application A can be the page grayscale function; for Application B, the page processing function indicated by the target configuration information corresponding to Application B can be the page size adjustment function; for Application C, the page processing function indicated by the target configuration information corresponding to Application C can be the page filling function.

[0114] In specific implementation, after rendering the initial page using the target rendering service, the initial page can be sent to the function gateway. Subsequently, the function gateway can be used to adjust the initial page according to the page processing function indicated by the function indication information corresponding to the target configuration information. For example, grayscale the initial page and supplement the page background for the blank page in the initial page, etc. Furthermore, the adjusted initial page can be used as the target page, and the target page can be fed back to the client corresponding to the application usage request.

[0115] In one embodiment, for the step of determining the execution logic information corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information in the above step two, it can be implemented according to the following steps:

[0116] S1: Use the routing calculation function in the request processing function to screen out the target path that matches the initial path carried in the application usage request from at least one preset path corresponding to the application.

[0117] Here, the request processing function can include a routing calculation function, and the routing calculation function can be used to determine the target path requested by each application usage request. The preset path can be multiple preset routing paths corresponding to the application, and different preset paths can point to different application products corresponding to the application. For example, different preset paths can point to different page files corresponding to the application. The initial path is the access path carried in the application usage request.

[0118] In specific implementation, after obtaining the application usage request, the routing calculation function in the function gateway can be used to match the initial path carried in the application usage request with the preset paths corresponding to the application, and determine the target path that matches the initial path from the preset paths.

[0119] Among them, the target path can be a preset path that is exactly the same as the initial path, or a preset path whose starting point is the same as that of the initial path, but the ending point is an intermediate path point in the initial path. For example, if the initial path is / a / b / c, a preset path that matches the initial path can be / a / b.

[0120] If there are multiple preset paths whose starting points are the same as that of the initial path, but the ending points are intermediate path points in the initial path, the preset path with the longest path length among the multiple preset paths can be used as the final target path. For example, if the initial path is / a / b / c, and the preset paths that match the initial path are / a / b and / a, then the preset path / a / b can be used as the target path corresponding to the initial path.

[0121] S2: Process the page execution logic indicated by the target path according to the docking protocol information between the functional gateway and the target rendering service to obtain execution logic information that matches the docking protocol information.

[0122] Here, the page execution logic can represent the execution path for loading the target page corresponding to the application usage request. Exemplarily, the target path can be directly used as the page execution logic. The docking protocol information can be the information transmission protocol between the functional gateway and the rendering service, and the functional gateway and the rendering service can transmit information based on this docking protocol information. In specific implementation, the docking protocol information can be the protocol used by the application deployment platform when deploying the application to the server.

[0123] In specific implementation of this step, the functional gateway can be used to process the page execution logic indicated by the target path according to the docking protocol information to obtain execution logic information that matches the docking protocol information. For example, the page execution logic can be filled into the preset position of the docking protocol field corresponding to the docking protocol information, and the filled docking protocol field can be used as the execution logic information.

[0124] In one embodiment, for the step of determining the target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information in the above step two, it can be executed according to the process indicated by any one of the following two methods:

[0125] Method 1: Use the traffic distribution function in the request processing function to determine the target rendering service corresponding to the application usage request from multiple rendering services according to the resource usage conditions of the multiple rendering services in the application running environment.

[0126] Here, the request processing function may further include a traffic distribution function, which is used to distribute each application usage request to each server corresponding to the application, so as to utilize the resources in the server to process the application usage request. The servers deploying the application may include multiple ones, and there may be one or more rendering services corresponding to each server, and the rendering service may run in the application running environment. The resource usage of the rendering service may be the computing resource usage of the server corresponding to the rendering service.

[0127] In specific implementation, the traffic distribution function in the function gateway may be utilized to screen out, from the rendering services, the rendering services whose currently remaining resource amount is greater than or equal to the required resource amount of the application usage request according to the resource usage of each rendering service in the multiple rendering services in the application running environment corresponding to the application and the required resource amount of the application usage request, and use the screened-out rendering service as the target rendering service corresponding to the application usage request.

[0128] Method 2: Utilize the traffic distribution function in the request processing function to screen out the target rendering service that matches the request type from multiple rendering services according to the request type of the application usage request.

[0129] Here, different rendering services can be used to process application usage requests of different request types. For example, rendering service A is used to process application usage requests of the short page request type, and rendering service B is used to process application usage requests of the long page request type.

[0130] In specific implementation, the traffic distribution function in the function gateway may be utilized to screen out the target rendering service that matches the request type from multiple rendering services according to the request type of the application usage request and the request types that each rendering service can handle.

[0131] In one embodiment, for the step of rendering the initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading position in step three, after determining the execution logic information and the page rendering information, the execution logic information determined by the function gateway may be parsed according to the docking protocol information by using the called target rendering service to determine the page execution logic corresponding to the execution logic information.

[0132] Then, the initial page corresponding to the application usage request may be rendered according to the page execution logic and the page rendering information read from the information reading position. In specific implementation, the page file corresponding to the application usage request may be obtained according to the target path corresponding to the page execution logic, and the page file may be used for page rendering by using the target rendering service and the custom page rendering service corresponding to the page rendering information to obtain the rendered initial page.

[0133] As shown Figure 2 in the figure, it is a specific implementation flowchart of a page deployment method provided by an embodiment of the present disclosure, which may include the following steps:

[0134] S201: Obtain page rendering information for the application, and obtain the deployment file corresponding to the application.

[0135] Among them, the page rendering information can be obtained from the specified rendering information storage address, and the deployment file can be obtained from the file storage location corresponding to the deployment file.

[0136] S202: Store the page rendering information in the information reading location corresponding to the rendering service matching the application, and deploy the deployment file to the application running environment corresponding to the application to obtain deployment environment information.

[0137] S203: Generate target configuration information based on the deployment environment information and the function indication information corresponding to the application deployment platform.

[0138] S204: Send the target configuration information to the function gateway.

[0139] S205: Receive an application usage request for the application through the function gateway.

[0140] S206: Use the function gateway to determine the execution logic information and the target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information.

[0141] Here, the request processing function may include a routing calculation function and a traffic distribution function.

[0142] S207: Invoke the target rendering service from the application running environment indicated by the environment indication identifier carried in the target configuration information.

[0143] S208: Use the target rendering service to render the initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading location.

[0144] S209: Use the function gateway to adjust the initial page according to the page processing function to obtain the target page.

[0145] S210: Use the function gateway to feedback the target page to the request side corresponding to the application usage request.

[0146] Regarding the specific implementation steps of the above S201 to S210, reference may be made to the above embodiments, and details are not described herein again.

[0147] Those skilled in the art can understand that in the above methods of the specific embodiments, the writing order of each step does not mean a strict execution order and does not impose any limitation on the implementation process. The specific execution order of each step should be determined according to its function and possible internal logic.

[0148] Based on the same inventive concept, embodiments of the present disclosure also provide a page deployment device corresponding to the page deployment method. Since the principle of solving problems by the device in the embodiments of the present disclosure is similar to that of the above page deployment method in the embodiments of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0149] As Figure 3 shown, it is a schematic diagram of a page deployment device provided by an embodiment of the present disclosure, including:

[0150] An acquisition module 301, configured to acquire page rendering information for an application and a deployment file corresponding to the application;

[0151] A deployment module 302, configured to perform a deployment operation of storing the page rendering information to an information reading location corresponding to a rendering service matching the application, and deploying the deployment file to an application running environment corresponding to the application, to obtain deployment environment information corresponding to the application;

[0152] A generation module 303, configured to generate target configuration information based on the deployment environment information and function indication information corresponding to an application deployment platform, and send the target configuration information to a function gateway corresponding to the application deployment platform, where the function gateway is configured to process an application usage request for the application based on the target configuration information.

[0153] In a possible implementation manner, the device further includes:

[0154] A rendering module 304, configured to, after sending the target configuration information to the function gateway, receive an application usage request for the application through the function gateway;

[0155] Using the function gateway, determine execution logic information and a target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information;

[0156] Call the target rendering service, and render an initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading location.

[0157] In a possible implementation manner, the device further includes:

[0158] The adjustment module 305 is configured to, after obtaining the initial page, use the function gateway to perform page adjustment on the initial page according to the page processing function indicated by the function indication information corresponding to the target configuration information, obtain a target page, and feedback the target page to the request side corresponding to the application usage request.

[0159] In a possible implementation manner, the rendering module 304 is configured to use the routing calculation function in the request processing function to screen out a target path that matches the initial path carried in the application usage request from at least one preset path corresponding to the application;

[0160] Process the page execution logic indicated by the target path according to the docking protocol information between the function gateway and the target rendering service to obtain execution logic information that matches the docking protocol information.

[0161] In a possible implementation manner, the rendering module 304 is configured to use the traffic distribution function in the request processing function to determine a target rendering service corresponding to the application usage request from the multiple rendering services according to the resource usage conditions of the multiple rendering services in the application running environment; or,

[0162] Use the traffic distribution function in the request processing function to screen out a target rendering service that matches the request type from the multiple rendering services according to the request type of the application usage request.

[0163] In a possible implementation manner, the rendering module 304 is configured to parse the execution logic information according to the docking protocol information to determine the page execution logic corresponding to the execution logic information;

[0164] Render the initial page corresponding to the application usage request according to the page execution logic and the page rendering information read from the information reading position.

[0165] In a possible implementation manner, the acquisition module 301 is configured to, in response to the received information upload request, obtain page rendering information that conforms to the preset specification from a specified rendering information storage address, and obtain the deployment file from the file storage location corresponding to the deployment file.

[0166] In a possible implementation manner, the rendering module 304 is configured to determine an environment indication identifier of the application running environment corresponding to the target rendering service according to the deployment environment information corresponding to the target configuration information;

[0167] Invoke the target rendering service from the application running environment indicated by the environment indication identifier.

[0168] Descriptions of the processing flows of the various modules in the device and the interaction flows between the various modules can refer to the relevant descriptions in the foregoing method embodiments and will not be elaborated herein.

[0169] Embodiments of the present disclosure also provide a computer device, as Figure 4 shown, which is a schematic structural diagram of a computer device provided by an embodiment of the present disclosure, including:

[0170] a processor 41 and a memory 42; the memory 42 stores machine-readable instructions executable by the processor 41, and the processor 41 is configured to execute the machine-readable instructions stored in the memory 42. When the machine-readable instructions are executed by the processor 41, the processor 41 performs the following steps: S101: Obtain page rendering information for an application and a deployment file corresponding to the application; S102: Perform a deployment operation of storing the page rendering information at an information reading location corresponding to a rendering service matching the application and deploying the deployment file to an application running environment corresponding to the application, to obtain deployment environment information corresponding to the application, and S103: Generate target configuration information based on the deployment environment information and function indication information corresponding to the application deployment platform, and send the target configuration information to a function gateway corresponding to the application deployment platform, and the function gateway is configured to process an application usage request for the application based on the target configuration information.

[0171] The foregoing memory 42 includes a memory 421 and an external memory 422; the memory 421 here is also called an internal memory, which is used to temporarily store operation data in the processor 41 and data exchanged with an external memory 422 such as a hard disk, and the processor 41 exchanges data with the external memory 422 through the memory 421.

[0172] The specific execution process of the foregoing instructions can refer to the steps of the page deployment method described in the embodiments of the present disclosure and will not be elaborated herein.

[0173] Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, it executes the steps of the page deployment method described in the foregoing method embodiments. Among them, the storage medium may be a volatile or non-volatile computer-readable storage medium.

[0174] A computer program product of the page deployment method provided by the embodiments of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code are used to execute the steps of the page deployment method described in the foregoing method embodiments. Specifically, reference may be made to the foregoing method embodiments and will not be elaborated herein.

[0175] The computer program product can be specifically implemented in the form of hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is specifically embodied as a computer storage medium. In another alternative embodiment, the computer program product is specifically embodied as a software product, such as a Software Development Kit (SDK), etc.

[0176] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described devices can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein. In several embodiments provided by the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. Also, for example, multiple units or components can be combined, or some features can be ignored, or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0177] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0178] In addition, in each embodiment of the present disclosure, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0179] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present disclosure. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0180] Finally, it should be noted that the above-described embodiments are only specific implementation manners of the present disclosure, used to illustrate the technical solutions of the present disclosure, rather than limiting them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present disclosure can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims

1. A page deployment method, characterized in that: include: Obtaining page rendering information for an application and a deployment file corresponding to the application; Execute a deployment operation of storing the page rendering information in an information reading location corresponding to a rendering service matching the application, and deploying the deployment file to an application running environment corresponding to the application, to obtain deployment environment information corresponding to the application; Based on the deployment environment information and the function indication information corresponding to the application deployment platform, target configuration information is generated and sent to the function gateway corresponding to the application deployment platform, wherein the function gateway is used to process the application usage request for the application based on the target configuration information, and call the rendering service according to the deployment environment information corresponding to the target configuration information and the processing result of the application usage request for the application to complete page rendering, thereby responding to the application usage request, wherein the function indication information is used to indicate the enabled enhanced capabilities corresponding to the application deployment platform, and various enhanced capabilities provided by the application deployment platform are deployed in the function gateway.

2. The method according to claim 1, characterized in that After sending the target configuration information to the functional gateway, the method further includes: receiving, through the functional gateway, an application use request for the application; Determining, by means of the functional gateway, execution logic information and a target rendering service corresponding to the application usage request according to the request processing function indicated by the function indication information corresponding to the target configuration information; The target rendering service is called to render an initial page corresponding to the application usage request according to the execution logic information and the page rendering information read from the information reading position.

3. The method according to claim 2, characterized in that After obtaining the initial page, the method further includes: The functional gateway is used to adjust the initial page according to the page processing function indicated by the functional indication information corresponding to the target configuration information to obtain the target page, and the target page is fed back to the request end corresponding to the application usage request.

4. The method according to claim 2, characterized in that: The determining, according to the request processing function indicated by the function indication information corresponding to the target configuration information, execution logic information corresponding to the application usage request includes: Using the routing calculation function in the request processing function, a target path matching the initial path carried in the application use request is screened out from at least one preset path corresponding to the application; According to the docking protocol information between the functional gateway and the target rendering service, the page execution logic indicated by the target path is processed to obtain execution logic information matching the docking protocol information.

5. The method according to claim 2, characterized in that: Determining, according to the request processing function indicated by the function indication information corresponding to the target configuration information, a target rendering service corresponding to the application usage request, including: Determine the target rendering service corresponding to the application usage request from the multiple rendering services according to resource usage of the multiple rendering services in the application running environment by utilizing the traffic distribution function in the request processing function; or By utilizing the traffic distribution function in the request processing function, according to the request type of the application usage request, a target rendering service matching the request type is screened out from the multiple rendering services.

6. The method according to claim 4, characterized in that The rendering, according to the execution logic information and the page rendering information read from the information reading position, to obtain an initial page corresponding to the application use request includes: Parsing the execution logic information according to the docking protocol information to determine the page execution logic corresponding to the execution logic information; An initial page corresponding to the application usage request is rendered according to the page execution logic and the page rendering information read from the information reading position.

7. The method according to claim 1, characterized in that The obtaining of page rendering information for an application and a deployment file corresponding to the application includes: In response to the received information upload request, the page rendering information that meets the preset specification is obtained from the specified rendering information storage address, and the deployment file is obtained from the file storage location corresponding to the deployment file.

8. The method according to claim 4, characterized in that The calling of the target rendering service includes: Determine, according to the deployment environment information corresponding to the target configuration information, an environment indication identifier of the application running environment corresponding to the target rendering service; The target rendering service is called from the application running environment indicated by the environment indication identifier.

9. A page deployment device, characterized in that: include: An acquisition module, used to acquire page rendering information for an application and a deployment file corresponding to the application; A deployment module, used to execute a deployment operation of storing the page rendering information in an information reading location corresponding to a rendering service matching the application, and deploying the deployment file to an application running environment corresponding to the application, to obtain deployment environment information corresponding to the application; A generation module is used to generate target configuration information based on the deployment environment information and the function indication information corresponding to the application deployment platform, and send it to the function gateway corresponding to the application deployment platform, wherein the function gateway is used to process the application use request for the application based on the target configuration information, and call the rendering service according to the deployment environment information corresponding to the target configuration information and the processing result of the application use request for the application to complete page rendering, thereby responding to the application use request, wherein the function indication information is used to indicate the enabled enhanced capabilities corresponding to the application deployment platform, and the various enhanced capabilities provided by the application deployment platform are deployed in the function gateway.

10. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the page deployment method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a computer device, the computer device executes the steps of the page deployment method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Low-code financial data analysis visual engine

    CN113721901A

  • Data visualization method and device, computer system and readable storage medium

    CN113760252A