Application isolation operation method, electronic equipment and readable storage medium
By creating a target parsing container in the low-code application logic and processing application metadata and resources therein, the problem of incomplete application isolation in the existing technology is solved, and effective isolation and management of resources is achieved.
Patent Information
- Application Number
- CN202510068794.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-13
AI Technical Summary
The prior art is difficult to achieve comprehensive application isolation in low-code application logic, and it is prone to resource use conflicts and omissions.
By creating the target parsing container corresponding to the target application based on the application metadata specification, the parsing container is called in response to business requests to parse the application metadata, obtain business resources, and process the application metadata through these resources, thereby achieving a comprehensive isolation operation of the application.
A more comprehensive and complete application isolation is achieved, avoiding resource usage conflicts and omissions, and ensuring that the isolation operation cycle of the application is carried out in the parsing container.
Smart Images

Figure CN119987940A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method for isolated operation of an application, an electronic device, and a readable storage medium. Background Art
[0002] The logic of low-code applications is defined through application metadata and parsed by the corresponding low-code runtime engine. Multiple applications can be run on the same low-code runtime engine service to share runtime resources, but it is necessary to ensure that different applications are isolated from each other at runtime.
[0003] In the relevant logical isolation method, based on the analysis of application metadata, the resources required by the application obtained by analysis are isolated on demand. However, when the application metadata specifications are continuously iterated and updated, the required resources are continuously updated accordingly. The relevant logical isolation method only isolates the resources required by the application on demand and cannot achieve a comprehensive isolation effect, which is prone to resource usage conflicts and omissions. Summary of the invention
[0004] The embodiments of the present application provide a method for application isolation operation, an electronic device, and a readable storage medium, which can solve the problems of resource usage conflicts and omissions that are prone to occur in related logical isolation methods.
[0005] In order to solve the above technical problems, this application is implemented as follows: In a first aspect, an embodiment of the present application provides a method for isolated operation of an application, the method comprising: creating a target resolution container corresponding to a target application based on an application metadata specification; in response to a business request of the target application, calling the target resolution container to parse the application metadata of the target application and obtain the business resources of the target application; and processing the application metadata of the target application through the business resources.
[0006] In a second aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method for application isolation operation as described in the first aspect are implemented.
[0007] In a third aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for isolated application operation as described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method for application isolation operation as described in the first aspect.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes a program or instructions, which, when executed, implement the steps of the method for application isolation operation as described in the first aspect.
[0010] In an embodiment of the present application, a target resolution container corresponding to the target application is created for the target application based on the application metadata specification, so that the target application can run in the target resolution container corresponding to it. In response to the business request of the target application, the target resolution container corresponding to the target application is called to parse the application metadata of the target application, and the business resources required for the target application to execute the business are obtained, so that the application metadata involved in the current business of the target application is processed through the obtained business resources, so that the target resolution container corresponding to the target application serves as the basis and isolation boundary for the operation of the target application, and the entire cycle of the operation of the target application is isolated in the resolution container, which can achieve a more comprehensive and complete isolation operation of the target application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0012] Figure 1 A schematic diagram of a method flow for application isolation operation provided by an exemplary embodiment of the present application is shown; Figure 2 A schematic diagram showing application isolation operation provided by an exemplary embodiment of the present application is shown; Figure 3 One of the application scenarios of application isolation operation provided by an exemplary embodiment of the present application is shown; Figure 4 The second application scenario of application isolation operation provided by an exemplary embodiment of the present application is shown; Figure 5 The third application scenario of application isolation operation provided by an exemplary embodiment of the present application is shown; Figure 6 The fourth application scenario of application isolation operation provided by an exemplary embodiment of the present application is shown; Figure 7 A schematic diagram of the structure of an application isolation operation system provided by an exemplary embodiment of the present application is shown; Figure 8 A service relationship diagram of a parsing container provided by an exemplary embodiment of the present application is shown; Figure 9a A schematic diagram of a method flow for application isolation operation provided by another exemplary embodiment of the present application is shown; Figure 9b A schematic diagram of a method flow for application isolation operation provided by another exemplary embodiment of the present application is shown; Fig.9c A schematic diagram of a method flow for application isolation operation provided by another exemplary embodiment of the present application is shown; Fig.10 The fifth application scenario of application isolation operation provided by an exemplary embodiment of the present application is shown; Fig.11 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0013] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0014] Figure 1 A schematic diagram of a method flow chart of application isolation operation provided by an exemplary embodiment of the present application is shown. Figure 1 , the method comprises the following steps.
[0015] Step 102: Create a target parsing container corresponding to the target application based on the application metadata specification.
[0016] Among them, application metadata is data that describes data, which can be used to describe the attributes, structure, other related information, etc. of the data, and can also be used to describe the service information of the resource. The application metadata specification is a rule that specifies the description of data, the representation of data, and the structured data. In the embodiment of the present application, when the application metadata specification is updated, the target parsing container created based on the application metadata specification can still meet the current application metadata specification, and the parsing of the application metadata and the service of the resource in the target parsing container can also maintain scalability.
[0017] Step 104: In response to the service request of the target application, the target resolution container is called to resolve the application metadata of the target application to obtain the service resources of the target application.
[0018] The service request of the target application may be received through a user interface (UI), a receiving port, a message, etc.
[0019] Among them, the target resolution container serves as the isolation boundary for resource acquisition, use, and management of the target application. After receiving the business request of the target application, the target resolution container is called to parse the application metadata of the target application to determine the business resources required to execute the business of the target application, and obtain the business resources through the target resolution container, thereby isolating the analysis of application metadata, the acquisition of business resources, and the use of business resources in the target resolution container.
[0020] Step 106: Process the application metadata of the target application through the business resources.
[0021] In an embodiment of the present application, a target resolution container corresponding to the target application is created for the target application based on the application metadata specification, so that the target application can run in the target resolution container corresponding to it. The target resolution container is created based on the application metadata specification. The target resolution container is updated due to the update of the application metadata specification. Its internal rules for resource acquisition, use, management, etc. are also updated accordingly, and can adapt to new metadata types and resource types to avoid resource usage conflicts and omissions. In response to the business request of the target application, the target resolution container corresponding to the target application is called to parse the application metadata of the target application, and the business resources required for the target application to perform the business are obtained, so that the application metadata involved in the current business of the target application is processed through the obtained business resources, so that the target resolution container corresponding to the target application serves as the basis and isolation boundary for the operation of the target application, and the entire cycle of the target application operation is isolated in the resolution container, which can achieve a more comprehensive and complete isolated operation of the target application.
[0022] In an optional implementation, the above step 104 calls the target parsing container to parse the application metadata of the target application to obtain the business resources of the target application, which may include the following steps.
[0023] Step 1041: Acquire application metadata of the target application from an application metadata repository according to the identification information of the target application; wherein the application metadata repository stores the identification information of the target application and corresponding application metadata.
[0024] The application metadata warehouse is used to store and manage the application metadata of each application. The identification information of the application and the corresponding application metadata are stored in the application metadata warehouse in a corresponding manner. The target application is at least one of the applications. In response to a service request of the target application, the application metadata required for the service can be quickly obtained from the application metadata warehouse according to the identification information of the target application. This operation is also performed in the target resolution container.
[0025] Step 1042: parse the application metadata to determine the resource type corresponding to the application metadata.
[0026] Among them, based on the description of the service information of the resource based on the application metadata, the resource type corresponding to the application metadata can be determined according to the analysis of the application metadata, where the resource type may include the following: database resources, cache resources, message resources, sandbox / class loader resources, external connection access resources, other resources and extended resources.
[0027] Step 1043: According to the resource type, obtain the business resource corresponding to the resource type.
[0028] The business resources are obtained by sending a resource application to the runtime engine, and the runtime engine provides the resource services required by the target application to the target resolution container according to the resource application.
[0029] In the embodiment of the present application, in response to the service request of the target application, the target parsing container corresponding to the target application is called to parse the application metadata, the application metadata is obtained from the application metadata warehouse according to the identification information of the target application, and a business processing session corresponding to the current business is constructed for the business request. Further, the business processing sessions corresponding to different businesses can be constructed, so that in the target parsing container corresponding to a target application, the business processing sessions corresponding to different businesses are also isolated from each other, such as Figure 2 As shown, the parsing containers corresponding to different applications are isolated from each other, and the business processing sessions corresponding to different businesses in the same parsing container are also isolated from each other. The current application metadata is parsed to determine the resource type corresponding to the application metadata, so as to obtain the business resources corresponding to the resource type according to the determined resource type, and then the application metadata is processed through the business resources. The acquisition of the application metadata of the target application, the parsing of the application metadata, and the processing of the application metadata are all executed in the target parsing container corresponding to the target application, so as to realize the isolated operation of the target application.
[0030] In an optional implementation, after processing the application metadata of the target application through the business resources in step 106, the method may further include: releasing the business resources.
[0031] In an embodiment of the present application, in response to a business request of a target application, a target resolution container corresponding to the target application is called to resolve the application metadata of the target application, obtain the business resources of the target application, and then use the business resources to process the application metadata. After the processing is completed, the business resources are released so that the business resources can be acquired and used again in other businesses, thereby improving resource utilization.
[0032] In an optional implementation, after processing the application metadata of the target application through the business resources in step 106, the method may further include the following steps.
[0033] Step 1081 , obtaining processing indicators of the application metadata of the target application; wherein the processing indicators include processing time and processing errors of the application metadata of the target application.
[0034] Among them, in the process of processing application metadata through business resources, the processing status of application metadata is monitored, which may include counting the processing time of application metadata, detecting application metadata processing errors, and other indicators used to characterize the processing status of application metadata. Based on the obtained processing indicators of the application metadata of the target application, the processing status of the application metadata is determined to manage and control the current business and the operation of the target application.
[0035] Step 1082: Report the processing indicator in a reporting manner corresponding to the indicator type of the processing indicator.
[0036] The indicator type of the processing indicator corresponds to the reporting method of the processing indicator. For example, for data statistically analyzed by time dimension, the statistical data for a period of time can be monitored to represent the processing of application metadata for a period of time. The processing indicator of this indicator type is reported after a period of statistics. For immediate and sudden data, the real-time monitoring data can represent the real-time processing of application metadata. The processing indicator of this indicator type is reported in real time.
[0037] In an embodiment of the present application, the processing status of application metadata during the isolated operation of the target application is monitored, and processing indicators of the application metadata of the target application are obtained. The indicator type of the processing indicator has a corresponding reporting method, so that the processing indicator is reported according to the reporting method corresponding to the indicator type of the processing indicator. The reporting characteristics of the processing indicator are distinguished by the indicator type, and the processing indicator is reported according to the reporting method that conforms to the reporting characteristics, which can improve the timeliness of the processing indicator and the accuracy of the reporting.
[0038] In an optional implementation, after processing the application metadata of the target application through the business resources in step 106, the method may further include the following steps.
[0039] Step 1101, obtaining usage indicators of the business resources; wherein the usage indicators include resource occupancy information and resource usage abnormality information of the business resources.
[0040] Among them, in the process of processing application metadata through business resources, the usage of business resources is monitored, which may include counting resource occupancy messages of business resources, detecting abnormal resource usage information of business resources, and other indicators used to characterize the usage of business resources. Based on the obtained business resource usage indicators, the usage of business resources is determined to manage and control business resources based on the current business and target application operations.
[0041] Step 1102: Report the usage indicator in accordance with the indicator type of the usage indicator and the reporting method corresponding to the indicator type.
[0042] Among them, the indicator type of the usage indicator corresponds to the reporting method of the usage indicator. For example, for data statistically calculated according to the time dimension, the usage of business resources in a period of time can be represented by monitoring the statistical data for a period of time. The usage indicator of this indicator type is reported after statistics for a period of time. For immediate and sudden data, the real-time monitoring data can represent the real-time usage of business resources. The usage indicator of this indicator type is reported in real time.
[0043] In an embodiment of the present application, the usage of business resources during the isolated operation of the target application is monitored to obtain usage indicators of the business resources. The indicator type of the usage indicator has a corresponding reporting method, so that the usage indicator is reported in accordance with the reporting method corresponding to the indicator type of the usage indicator. The reporting characteristics of the usage indicator are distinguished by the indicator type, and the usage indicator is reported in accordance with the reporting method that conforms to the reporting characteristics. This can improve the timeliness of the usage indicator and the accuracy of the reporting, and achieve efficient management and control of business resources.
[0044] In an optional implementation, the indicator type includes: a statistical indicator type or an alarm indicator type; the reporting method corresponding to the statistical indicator type is to report the accumulated indicators within the preset period according to a preset period; the reporting method corresponding to the alarm indicator type is to report the acquired indicators in real time.
[0045] The preset period may include a time period, for example, m hours as a time period, and the reporting method corresponding to the statistical indicator type is to report the indicators accumulated for m hours every m hours. It may also include a number period, for example, n times as a number period, and the reporting method corresponding to the statistical indicator type is to report the indicators accumulated for n times every n times. The preset period may also include other forms of periods, such as setting a threshold, and reporting the accumulated indicators when the indicators reach the threshold, which is only used as an exemplary embodiment and is not specifically limited.
[0046] In an embodiment of the present application, the indicator type of the processing indicator of the above-mentioned application metadata or the indicator type of the use of business resources may include a statistical indicator type or an alarm indicator type, wherein the indicator of the statistical indicator type is data obtained by statistics according to the time dimension or other dimensions, so that the corresponding reporting method of the indicator of the statistical indicator type is to report the accumulated indicators within the preset period according to the preset period. The indicator of the alarm indicator type is the data monitored immediately and suddenly, so that the corresponding reporting method of the indicator of the alarm indicator type is real-time reporting, and the indicator of the alarm indicator type needs to be obtained in time. The real-time reporting method enables the indicator of the alarm indicator type to be reported in time, so as to quickly obtain the situation of processing errors in the application metadata or the abnormal use of business resources, so as to efficiently manage the application metadata and business resources.
[0047] In an optional implementation, the above step 102 of creating a target parsing container corresponding to the target application based on the application metadata specification may include: creating a target parsing container corresponding to different application scenario information for the target application.
[0048] The target parsing containers corresponding to the different application scenario information are not completely the same, and the application scenario information includes at least one of the following: development environment type, service deployment configuration, and user type.
[0049] In an embodiment of the present application, corresponding target resolution containers can be created for different application scenarios of the target application. For example, target resolution containers corresponding to different development environment types, target resolution containers corresponding to different service deployment configurations, and target resolution containers corresponding to different user types can be created. Thus, in different application scenarios, in response to the business request of the target application, the target resolution container corresponding to the application scenario information is called to parse the application metadata, and the corresponding business resources are obtained to process the application metadata, thereby realizing isolated operation of the target application in different application scenarios.
[0050] In an optional implementation, the above step 104, in response to the business request of the target application, calls the target parsing container to parse the application metadata of the target application to obtain the business resources of the target application, which may include the following steps.
[0051] Step 11: Determine the target development environment type of the target application according to the business request.
[0052] The target development environment type includes one of the following: development environment, test environment, and production environment.
[0053] Step 12: Call a target parsing container corresponding to the target development environment type to parse the application metadata of the target application to obtain the business resources of the target application.
[0054] In the embodiment of the present application, the target development environment type of the target application is determined according to the business request, and then the target parsing container corresponding to the target development environment type is called to parse the application metadata of the target application to obtain the business resources for processing the application metadata. Figure 3 , Figure 3 One of the application scenarios of application isolation operation provided by an exemplary embodiment of the present application is shown. When the business request indicates that a development environment is deployed for a development user and that the development user is supported to develop a target application, the target resolution container corresponding to the development environment is called to implement the operation of the target application. When the business request indicates that a test environment is deployed for a test user and that the test user is supported to test the target application, the target resolution container corresponding to the test environment is called to implement the operation of the target application. When the business request indicates that a production environment is deployed for a business user and that the production user is supported to use the target application, the target resolution container corresponding to the production environment is called to implement the operation of the target application. Thus, the corresponding target resolution container is called for different development environments to parse the application metadata of the target application, obtain the corresponding business resources, and implement the isolated operation of the target application in the development environment dimension.
[0055] In an optional implementation, in response to multiple business requests of the target application, corresponding target resolution containers are called respectively for the development environment types indicated by the multiple business requests, wherein multiple target resolution containers in the same development environment type constitute a cluster under the same development environment, and target resolution containers in different development environment types constitute different clusters, different clusters are isolated from each other, and multiple target resolution containers in the same cluster are also isolated from each other.
[0056] In an optional implementation, the above step 104, in response to the business request of the target application, calls the target parsing container to parse the application metadata of the target application to obtain the business resources of the target application, which may include the following steps.
[0057] Step 21: Determine the target service deployment configuration of the target application according to the business request.
[0058] The target service deployment configuration includes one of the following: a low-level service deployment configuration, a standard service deployment configuration, and an advanced service deployment configuration.
[0059] Step 22: calling a target parsing container corresponding to the target service deployment configuration to parse the application metadata of the target application to obtain the business resources of the target application.
[0060] In the embodiment of the present application, the target service deployment configuration of the target application is determined according to the business request, and then the target parsing container corresponding to the target service deployment configuration is called to parse the application metadata of the target application to obtain the business resources for processing the application metadata. Figure 4 , Figure 4 The second application scenario of application isolation operation provided by an exemplary embodiment of the present application is shown. When the business request indicates that a low-level service deployment configuration is deployed for the user and that the user is supported to use the target application based on the low-level service deployment configuration, the target resolution container corresponding to the low-level service deployment configuration is called to realize the operation of the target application. When the business request indicates that a standard service deployment configuration is deployed for the user and that the user is supported to use the target application based on the standard service deployment configuration, the target resolution container corresponding to the standard service deployment configuration is called to realize the operation of the target application. When the business request indicates that an advanced service deployment configuration is deployed for the user and that the user is supported to use the target application based on the advanced service deployment configuration, the target resolution container corresponding to the advanced service deployment configuration is called to realize the operation of the target application. Thus, the corresponding target resolution container is called for different service deployment configurations to parse the application metadata of the target application, obtain the corresponding business resources, and realize the isolated operation of the target application in the dimension of service deployment configuration.
[0061] In an optional implementation, in response to multiple business requests of the target application, corresponding target resolution containers are called respectively for the service deployment configurations indicated by the multiple business requests, wherein multiple target resolution containers in the same service deployment configuration constitute a cluster under the same service deployment configuration, and target resolution containers in different service deployment configurations constitute different clusters, and different clusters are isolated from each other, and multiple target resolution containers in the same cluster are also isolated from each other.
[0062] In an optional implementation, the above step 104, in response to the business request of the target application, calls the target parsing container to parse the application metadata of the target application to obtain the business resources of the target application, which may include the following steps.
[0063] Step 31: Determine the target user type of the target application according to the service request.
[0064] The target user type includes one of the following: development user, test user, business user, free user, ordinary user, and high-end user.
[0065] Step 32: calling a target parsing container corresponding to the target user type to parse the application metadata of the target application to obtain the business resources of the target application.
[0066] In the embodiment of the present application, the target user type of the target application is determined according to the business request, and then the target parsing container corresponding to the target user type is called to parse the application metadata of the target application to obtain the business resources for processing the application metadata. Figure 5 , Figure 5 The third application scenario of application isolation operation provided by an exemplary embodiment of the present application is shown. When the business request instructs free users to use the target application, the target resolution container corresponding to the free user is called to implement the operation of the target application. When the business request instructs ordinary users to use the target application, the target resolution container corresponding to the ordinary user is called to implement the operation of the target application. When the business request instructs high-end users to use the target application, the target resolution container corresponding to the high-end user is called to implement the operation of the target application. It should be noted that free users correspond to the above-mentioned low-level service deployment configuration, ordinary users correspond to the above-mentioned standard service deployment configuration, and high-end users correspond to the above-mentioned high-level service deployment configuration. That is to say, the business request may also include an indication of the target user type and the target service deployment configuration, and the target user type and the target service deployment configuration correspond to each other.
[0067] In the embodiment of the present application, when the service request instructs the development user, the test user, and the service user to use the target application, refer to the above Figure 3 , development users correspond to development environments, test users correspond to test environments, and business users correspond to production environments. In other words, business requests can also include indications of target user types and target development environment types, and the target user types correspond to the target development environment types. Thus, for different user types, the corresponding target resolution container is called to resolve the application metadata of the target application, obtain the corresponding business resources, and realize the isolated operation of the target application in the dimension of user type.
[0068] In an optional implementation, the target application is a low-code application or a pan-low-code application, wherein the low-code application or the pan-low-code application satisfies the application metadata specification.
[0069] In the examples of this application, see Figure 6 , Figure 6 The fourth application scenario of application isolation operation provided by an exemplary embodiment of the present application is shown. Low-code applications or pan-low-code applications that meet the application metadata specifications can also create their corresponding target parsing containers based on the application metadata specifications, so that the low-code applications or pan-low-code applications can run in their corresponding target parsing containers. The target parsing container serves as the basis and isolation boundary for the operation of the low-code applications or pan-low-code applications, and isolates the entire operation cycle of the low-code applications or pan-low-code applications in the parsing container to achieve isolated operation.
[0070] Figure 7 A schematic diagram of the structure of an application isolation operation system provided by an exemplary embodiment of the present application is shown. Figure 7 The application isolation operation system 700 includes a parsing container 71 and a runtime engine 72. The parsing container 71 includes a business request processing module 711, an application metadata parsing module 712, a resource management module 713, a monitoring module 714, and an application programming interface (Application Programming Interfaces, API) 715. The parsing container 71 provides a capability support API based on the application metadata specification, and monitors the running status and resource usage status of the target application in the API. The runtime engine 72 includes a parsing container management module 721.
[0071] In the application isolation operation system 700 provided in the embodiment of the present application, the parsing container serves as the boundary of the operation and resource use of the target application. The parsing container layer is added to the architecture layering, and the target application is bound to its corresponding parsing container, so that the target application is isolated and operated in its corresponding parsing container. The business request processing module 711 in the parsing container 71 is used to receive the business request of the target application. The application metadata parsing module 712 is used to load the application metadata of the target application in the parsing container according to the business request, parse the application metadata, and determine the resource type corresponding to the application metadata. The resource management module 713 is used to apply for resources to the runtime engine 72 through the API 715 according to the resource type determined by the application metadata parsing module 712, obtain the business resources corresponding to the resource type, and manage all resources in the parsing container 71, so that the parsing container 71 processes the application metadata through the obtained business resources. The monitoring module 714 is used to collect and monitor the processing indicators of the application metadata and the usage indicators of the business resources. The runtime engine 72 identifies the parsing container 71 through the identification information corresponding to the parsing container 71 and interacts with the parsing container 71. The parsing container management module 721 of the runtime engine 72 is used to manage the created parsing container and provide feedback on the resource application of the parsing container. Figure 2 and Fig.10 As shown, different application scenarios of the same application are also run in isolation in their corresponding parsing containers, such as Figures 3 to 6 As shown, each of the above-mentioned parsing containers is managed by the parsing container management module 721 .
[0072] In the embodiment of the present application, the runtime engine provides business resource services and general function call services, supports parsing container resource applications, and calls general functions. Figure 8 , Figure 8The service relationship diagram of the parsing container provided by an exemplary embodiment of the present application is shown, and the parsing container is managed by the parsing container management module. The parsing container provides business processing services for the target application, which are assigned to various types of metadata processors by the business process processor in the parsing container. The business processing is completed by calling the object instance in the parsing container, and the specific implementation is not limited here. The parsing container also provides resource usage services within the application metadata specification to provide business resource support for the session processor that processes the business. The parsing container is created based on the application metadata specification, in which the application metadata parsing and processing and resource usage services maintain scalability, that is, the types of application metadata and the types of business resources can be expanded based on the application metadata specification. The parsing container also provides a monitoring service. The monitoring module can monitor the processing indicators of the application metadata, such as processing time, processing errors, etc., and can also monitor the usage indicators of business resources, such as business resource occupancy information, resource usage exception information, etc.
[0073] In an optional implementation, the present application embodiment provides another method for application isolation operation, which can be applied to Figure 7 The application isolation operation system 700 shown, Figure 9a , Figure 9b and Fig.9c A flow chart showing a method for isolating and running an application provided by another exemplary embodiment of the present application is shown in FIG. Figure 9a , Figure 9b and Fig.9c , the method may include the following steps.
[0074] Step 901: Create a parsing container corresponding to the application based on the application metadata specification.
[0075] The application may include at least one, and the parsing container may include at least one corresponding one. The parsing container is associated with the application through the identification information of the application.
[0076] Step 902: Load the application metadata in the parsing container, obtain the resource type and logical metadata type corresponding to the application metadata, and complete the initialization of the application metadata.
[0077] Step 903: Initialize resources corresponding to the resource type according to the resource type corresponding to the application metadata.
[0078] Among them, resources may include database resources, cache resources, message resources, sandbox / class loader resources, external connection access resources, other resources and extended resources. In actual implementation, all resource types involved in the application metadata can be traversed through the resource type factory to complete loading initialization.
[0079] In the embodiment of the present application, the creation of the parsing container and the initialization of resources can be triggered in the following scenarios: During the startup phase of the runtime engine, the parsing container corresponding to the application is created and the resources are initialized according to the application range supported by the runtime engine. If the runtime engine supports multiple applications, the creation of the parsing container and the initialization of resources can be triggered by the application request.
[0080] Step 904: Receive a service request from an application, parse the service request to determine the application to which the service belongs, and obtain a parsing container corresponding to the application according to identification information of the application.
[0081] In an optional implementation, the parsing container corresponding to the application can be obtained from the parsing container management module of the runtime engine. Alternatively, the creation of the parsing container can be triggered when the parsing container corresponding to the application is not created in the parsing container management module.
[0082] Step 905: call the business process processor in the parsing container to build a business session corresponding to the business.
[0083] Step 906 , disassemble the business processing process through the business process processor, call each type of application metadata processor corresponding to the application metadata to parse the application metadata, and determine the business resource type corresponding to the application metadata.
[0084] Step 907: Acquire the business resource corresponding to the business resource type through the resource management module, and process the application metadata.
[0085] Step 908: When the application metadata processing is completed, the service resources occupied by the current service session are released, and the processing result is fed back.
[0086] The release rule of the service resources may be set based on the monitored resource utilization of the service resources.
[0087] Step 909: Monitor the processing indicators of the application metadata and the usage indicators of the business resources through the monitoring module.
[0088] The processing indicators of application metadata may include the processing time of application metadata, processing errors of application metadata, and other indicators used to characterize the processing of application metadata. The usage indicators of business resources may include resource occupation messages of business resources, resource usage exception information of business resources, and other indicators used to characterize the usage of business resources.
[0089] Step 910: Determine the reporting method of the indicator according to the processing indicator of the application metadata and the indicator type of the usage indicator of the business resource.
[0090] Among them, the indicator type includes a statistical indicator type or an alarm indicator type; the reporting method corresponding to the statistical indicator type is to report the accumulated indicators within the preset period according to the preset period; the reporting method corresponding to the alarm indicator type is to report the acquired indicators in real time. The reporting method corresponding to the statistical indicator type is to report the accumulated indicators within the preset period according to the preset period; the reporting method corresponding to the alarm indicator type is to report the acquired indicators in real time.
[0091] Step 911a, reporting the indicators of the statistical indicator type cumulatively according to a preset period; Step 911b, reporting the indicators of the alarm indicator type in real time.
[0092] In the examples of this application, see Fig.10 The fifth application scenario of application isolation operation provided by an exemplary embodiment of the present application shown is that for multiple applications in different fields (for example, application A, application B, and application C), the isolated operation of each application is achieved through the above steps 901 to 911b, and the processing indicators of the application metadata and the usage indicators of business resources monitored by the parsing container corresponding to the application in each field are reported to achieve unified operation and maintenance of each application.
[0093] Through the method of application isolation operation provided in the embodiment of the present application, the operation of the application is isolated in its corresponding parsing container, and the processing of application metadata, the management of business resources, and the monitoring and reporting of processing indicators and usage indicators are implemented in the parsing container, thereby comprehensively and completely isolating and managing the application.
[0094] The embodiment of the present application also provides an electronic device, Fig.11 A schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application is shown. Fig.11 , the electronic device is used to execute the above-mentioned method of application isolation operation, Fig.11 A schematic diagram of the structure of an electronic device for implementing various embodiments of the present application. Electronic devices may have relatively large differences due to different configurations or performances, and may include a processor (processor) 1101, a communication interface (CommunicationsInterface) 1102, a memory (memory) 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104. The processor 1101 can call a computer program stored in the memory 1103 and can be run on the processor 1101 to execute the various steps of the above-mentioned application isolation operation method embodiment, and can achieve the same technical effect, so it will not be repeated here to avoid repetition.
[0095] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0096] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).
[0097] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.
[0098] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned application isolation operation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0099] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0100] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned application isolation operation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0101] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0102] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes a program or instructions. When the program or instructions are executed, the various processes of the above-mentioned application isolation operation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0103] It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0105] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0106] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for operating in isolation of an application, characterized in that: include: Create a target parsing container corresponding to the target application based on the application metadata specification; In response to a service request of the target application, calling the target parsing container to parse the application metadata of the target application to obtain the service resources of the target application; The application metadata of the target application is processed through the business resource.
2. The method according to claim 1, characterized in that The calling the target parsing container to parse the application metadata of the target application to obtain the business resources of the target application includes: According to the identification information of the target application, acquiring the application metadata of the target application from the application metadata warehouse; wherein the application metadata warehouse stores the identification information of the target application and the corresponding application metadata; Parsing the application metadata to determine the resource type corresponding to the application metadata; According to the resource type, a business resource corresponding to the resource type is acquired.
3. The method according to claim 1, characterized in that After processing the application metadata of the target application by the business resource, the method further includes: Acquire processing indicators of the application metadata of the target application; wherein the processing indicators include processing time and processing errors of the application metadata of the target application; The processing indicator is reported in a reporting manner corresponding to the indicator type of the processing indicator.
4. The method according to claim 1, characterized in that: After processing the application metadata of the target application by the business resource, the method further includes: Acquire usage indicators of the business resources; wherein the usage indicators include resource occupancy information and resource usage abnormality information of the business resources; The usage indicator is reported according to a reporting method corresponding to the indicator type of the usage indicator and the indicator type.
5. The method according to claim 3 or 4, characterized in that: The indicator type includes: a statistical indicator type or an alarm indicator type; the reporting method corresponding to the statistical indicator type is to report the accumulated indicators within the preset period according to a preset period; the reporting method corresponding to the alarm indicator type is to report the acquired indicators in real time.
6. The method according to claim 1, characterized in that The step of creating a target parsing container corresponding to the target application based on the application metadata specification includes: Creating a target parsing container corresponding to different application scenario information for the target application; The target parsing containers corresponding to the different application scenario information are not completely the same, and the application scenario information includes at least one of the following: development environment type, service deployment configuration, and user type.
7. The method according to claim 6, characterized in that The step of calling the target parsing container to parse the application metadata of the target application in response to the service request of the target application to obtain the service resources of the target application includes: Determine the target development environment type of the target application according to the business request; wherein the target development environment type includes one of the following: development environment, test environment, production environment; A target parsing container corresponding to the target development environment type is called to parse the application metadata of the target application to obtain the business resources of the target application.
8. The method according to claim 6, characterized in that The step of calling the target parsing container to parse the application metadata of the target application in response to the service request of the target application to obtain the service resources of the target application includes: Determine the target service deployment configuration of the target application according to the business request; wherein the target service deployment configuration includes one of the following: a low-level service deployment configuration, a standard service deployment configuration, and an advanced service deployment configuration; A target parsing container corresponding to the target service deployment configuration is called to parse the application metadata of the target application to obtain the business resources of the target application.
9. The method according to claim 6, characterized in that The step of calling the target parsing container to parse the application metadata of the target application in response to the service request of the target application to obtain the service resources of the target application includes: Determine the target user type of the target application according to the service request; wherein the target user type includes one of the following: development user, test user, business user, free user, ordinary user, high-end user; A target parsing container corresponding to the target user type is called to parse the application metadata of the target application to obtain the business resources of the target application.
10. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method for application isolation operation as described in any one of claims 1 to 9 are implemented.
11. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the method for isolated operation of applications as described in any one of claims 1 to 9 are implemented.
12. A computer program product, characterized in that The computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises a program or instructions, and when the program or instructions are executed, the steps of the method for application isolation operation as described in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Software deployment method and device, electronic equipment, storage medium and program product
CN118012453A
Low-code application running method and device, equipment, medium and product
CN118444932A
Application processing system, method and equipment based on low-code platform, storage medium and program product
CN119002922A
Reusable user interface in metadata driven application
US11966761B1
Technologies for integrating and sandboxing web resources
US20190230090A1