A user environment delivery method, device and medium for SaaS service

By determining the resource pool according to the user industry type in SaaS services and generating the user environment, the problem of low user environment delivery efficiency in the prior art is solved, and rapid and autonomous user environment acquisition is achieved, and costs are reduced.

CN114546597BActive Publication Date: 2025-02-14INSPUR GENERSOFT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210177916.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2025-02-14
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

The user environment delivery method of existing SaaS services is inefficient and cannot meet user needs.

Method used

By receiving user environment acquisition requests, the current resource pool is determined in multiple pre-built enterprise resource planning resource pools according to the user's industry type, and obtain and judge whether the number of user environment resources meets the preset threshold, and generate a user environment that meets the requirements.

Benefits of technology

It improves the efficiency of user environment delivery, enables users to obtain the environment independently without manual participation in the background, and reduces the personnel costs of SaaS manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546597B_ABST
    Figure CN114546597B_ABST
Patent Text Reader

Abstract

The embodiments of this specification disclose a method, device and medium for delivering a user environment for a SaaS service, the method comprising: receiving a user environment acquisition request, wherein the user environment acquisition request includes the industry type of the user; determining a current resource pool corresponding to the industry type in a plurality of pre-built enterprise resource planning resource pools according to the industry type of the user in the user environment acquisition request; obtaining the number of user environment resources in the current resource pool corresponding to the industry type, and determining whether the number of user environment resources in the current resource pool meets a preset threshold; when the number of user environment resources in the current resource pool meets the preset threshold, determining user environment resources that meet the requirements in the current resource pool, wherein the user environment resources that meet the requirements are copies of pre-generated user environment template files; generating a user environment to be delivered according to the user environment resources that meet the requirements and the pre-acquired custom information of the user environment to be delivered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to a method, device and medium for delivering a user environment of a SaaS service. Background Art

[0002] Software-as-a-Service (SaaS) is a completely innovative software application model that has emerged with the development of Internet technology and the maturity of application software. It is one of the simplest ways to use enterprise software so far. Users only need to perform simple operations to obtain a large-scale software service within a few hours or even minutes. Compared with the traditional way of using software, users save a series of complicated processes such as research and development, deployment, operation and maintenance, and the time and cost of obtaining software are greatly reduced.

[0003] Enterprise Resource Planning (ERP) is an enterprise information management system that integrates material resources, financial resources and information resources. When users use ERP software that uses SaaS services, they need to obtain a set of customer environments. Generally, users submit a form to the backend of the SaaS service, and the backend staff activates the customer environment based on the form. After that, they notify the user via SMS or email to complete the delivery of the customer environment. This delivery method has low delivery efficiency and cannot meet user needs. Summary of the invention

[0004] One or more embodiments of this specification provide a user environment delivery method, device and medium for SaaS service, which are used to solve the following technical problems: the delivery efficiency of existing delivery methods is low and cannot meet user needs.

[0005] One or more embodiments of this specification adopt the following technical solutions:

[0006] One or more embodiments of the present specification provide a user environment delivery method for a SaaS service, the method comprising: receiving a user environment acquisition request, wherein the user environment acquisition request includes the industry type of the user; determining a current resource pool corresponding to the industry type in a plurality of pre-built enterprise resource planning resource pools according to the industry type of the user in the user environment acquisition request; obtaining the number of user environment resources in the current resource pool corresponding to the industry type, and determining whether the number of user environment resources in the current resource pool meets a preset threshold; when the number of user environment resources in the current resource pool meets the preset threshold, determining user environment resources that meet the requirements in the current resource pool, wherein the user environment resources that meet the requirements are copies of pre-generated user environment template files; generating the user environment to be delivered according to the user environment resources that meet the requirements and pre-acquired custom information of the user environment to be delivered.

[0007] Furthermore, before receiving the user environment acquisition request, the method also includes: updating the server code environment of the SaaS service according to a pre-set designated code branch to determine the software version of the SaaS service; generating multiple resource pools corresponding to multiple industries, and configuring resource pool information of each resource pool; based on the application interface request, generating an initialized user environment for each industry according to the software version of the SaaS service and the resource pool information of each resource pool; generating a user environment template file for each industry according to the initialized user environment of each industry.

[0008] Furthermore, generating a user environment template file for each industry based on the initialized user environment for each industry specifically includes: determining a database template file for the initialized user environment based on the industry type corresponding to the initialized user environment for each industry; determining designated software for applying the SaaS service, and obtaining the running files required for the designated software to run in the software version of the SaaS service; generating the user environment template file for each industry based on the database template file and the running files, and storing them at the designated location of the SaaS service.

[0009] Furthermore, the resource pool information includes the number of environmental resources in the resource pool; before determining the current resource pool corresponding to the industry type in multiple pre-built enterprise resource planning resource pools based on the industry type of the user in the user environment acquisition request, the method also includes: generating the same number of copy files of the user environment template file based on the number of environmental resources in the current resource pool; storing the multiple copy files in the current resource pool to generate an initial current resource pool.

[0010] Furthermore, after determining whether the number of environmental resources in the current resource pool meets a preset threshold, the method further includes: when the number of environmental resources in the current resource pool is lower than the preset threshold, obtaining the current number of environmental resources in the current resource pool; determining the number of environmental resources to be supplemented based on the difference between the current number of environmental resources and the preset threshold; obtaining a user environment template file corresponding to the industry type of the user at a designated location of the SaaS service; generating a plurality of to-be-supplemented copy files of the user environment template file of the same number based on the number of resources to be supplemented; and storing the plurality of to-be-supplemented copy files in the current resource pool to complete the environmental resource supplementation of the current resource pool.

[0011] Furthermore, the resource pool information includes a resource detection frequency of the resource pool. After the initial current resource pool is generated, the method also includes: generating a resource quantity timing detection task based on the resource detection frequency of the current resource pool; detecting the resource quantity of the current resource pool through the resource quantity timing detection task; when the resource quantity of the current resource pool is lower than a preset threshold, triggering a pre-generated resource quantity timing replenishment task; based on the pre-generated resource quantity timing replenishment task, replenishing the resource quantity of the current resource pool so that the resource quantity of the current resource pool meets the preset threshold.

[0012] Furthermore, determining the user environment resources that meet the requirements in the current resource pool specifically includes: obtaining environment resource calling interface information corresponding to multiple user environment resources in the current resource pool, wherein the calling interface information includes the number of interface calls and the interface response time of the current environment resource calling interface; sorting the environment resource calling interfaces corresponding to the multiple user environment resources in order of the number of interface calls from small to large, and generating a first sorting result of the environment resource calling interfaces corresponding to the multiple user environment resources; in the first sorting result, screening out multiple environment resource designated calling interfaces in a specified order; determining the environment resource calling interface that meets the requirements based on the interface response time of the multiple environment resource designated calling interfaces, wherein, among the multiple environment resource designated calling interfaces, the interface response time of the environment resource calling interface that meets the requirements is less than that of other environment resource designated calling interfaces; determining the corresponding user environment resource that meets the requirements based on the environment resource calling interface that meets the requirements.

[0013] Furthermore, the receiving of the user environment acquisition request specifically includes: obtaining the user's registration information, wherein the user's registration information includes the industry type corresponding to the user; generating the user's environment acquisition request based on the user's registration information; and receiving the user environment acquisition request based on the user's specified trigger operation.

[0014] One or more embodiments of this specification provide a user environment delivery device for a SaaS service, including:

[0015] at least one processor; and,

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0018] Receive a user environment acquisition request, wherein the user environment acquisition request includes the industry type of the user; determine a current resource pool corresponding to the industry type in a plurality of pre-built enterprise resource planning resource pools based on the industry type of the user in the user environment acquisition request; obtain the number of user environment resources in the current resource pool corresponding to the industry type, and determine whether the number of user environment resources in the current resource pool meets a preset threshold; when the number of user environment resources in the current resource pool meets the preset threshold, determine user environment resources that meet the requirements in the current resource pool, wherein the user environment resources that meet the requirements are copies of pre-generated user environment template files; generate the user environment to be delivered based on the user environment resources that meet the requirements and pre-acquired custom information of the user environment to be delivered.

[0019] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:

[0020] Receive a user environment acquisition request, wherein the user environment acquisition request includes the industry type of the user; determine a current resource pool corresponding to the industry type in a plurality of pre-built enterprise resource planning resource pools based on the industry type of the user in the user environment acquisition request; obtain the number of user environment resources in the current resource pool corresponding to the industry type, and determine whether the number of user environment resources in the current resource pool meets a preset threshold; when the number of user environment resources in the current resource pool meets the preset threshold, determine user environment resources that meet the requirements in the current resource pool, wherein the user environment resources that meet the requirements are copies of pre-generated user environment template files; generate the user environment to be delivered based on the user environment resources that meet the requirements and pre-acquired custom information of the user environment to be delivered.

[0021] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: users can complete the process independently without the need for manual background participation of the SaaS service provider, and can obtain an exclusive environment for product experience in a relatively short period of time, which greatly improves delivery efficiency, retains customer resources, reduces the personnel costs of SaaS manufacturers, and has a high promotion and reuse value. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0023] Figure 1 A flowchart of a user environment delivery method for a SaaS service provided in an embodiment of this specification;

[0024] Figure 2 A flowchart of another method for delivering a user environment of a SaaS service provided in an embodiment of this specification;

[0025] Figure 3 A schematic diagram of the structure of a user environment delivery device for a SaaS service provided in an embodiment of this specification. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0027] Software-as-a-Service (SaaS) is a completely innovative software application model that has emerged with the development of Internet technology and the maturity of application software. It is one of the simplest ways to use enterprise software so far. Users only need to perform simple operations to obtain a large-scale software service within a few hours or even minutes. Compared with the traditional way of using software, users save a series of complicated processes such as research and development, deployment, and operation and maintenance, and the time and cost of obtaining software are greatly reduced. SaaS can provide cross-regional and cross-platform software services. At the same time, software service providers can uniformly manage software versions, which will bring the following benefits: shorten product launch time: multi-terminal adaptation, unified version, unified update; reduce maintenance costs: there is no need to maintain multiple versions of software instances at the same time, and the pressure of operation and maintenance is reduced; easy to upgrade: because the version is effectively controlled, a single upgrade can cover all tenant terminals; fast delivery: SaaS products have greatly improved delivery speed compared to traditional ERP products.

[0028] Enterprise Resource Planning (ERP) is an enterprise information management system that integrates material resources, financial resources and information resources. When users use ERP software that uses SaaS services, they need to obtain a set of customer environments. Generally, users submit a form to the backend of the SaaS service, and the backend staff activates the customer environment based on the form. After that, they notify the user via SMS or email to complete the delivery of the customer environment. This delivery method has low delivery efficiency and cannot meet user needs.

[0029] The embodiments of this specification provide a method for delivering a user environment of a SaaS service. It should be noted that the execution subject of the embodiments of this specification may be a server or any device with data processing capabilities. Figure 1 A flowchart of a user environment delivery method for a SaaS service provided in an embodiment of this specification is shown in FIG. Figure 1 As shown, it mainly includes the following steps:

[0030] Step S101: receiving a user environment acquisition request.

[0031] It should be noted that, before step S101, initialization settings are required, specifically: according to the pre-set designated code branch, the server code environment of the SaaS service is updated to determine the software version of the SaaS service; multiple resource pools corresponding to multiple industries are generated, and the resource pool information of each resource pool is configured; based on the application interface request, according to the software version of the SaaS service and the resource pool information of each resource pool, an initialized user environment for each industry is generated; based on the initialized user environment of each industry, a user environment template file for each industry is generated.

[0032] In one embodiment of the present specification, the server code environment of the SaaS service is updated according to a pre-set designated code branch. Generally, multiple commonly used code branches are set during the development of SaaS services, and each code branch corresponds to a different version of the SaaS service software. According to the designated code branch, the server code environment of the SaaS service is updated, and the SaaS service is restarted to obtain the corresponding version of the SaaS service. In actual application scenarios, if the user is a new user, the latest version of the current SaaS service is used.

[0033] In one embodiment of the present specification, since different users belong to different industries, the environmental resources corresponding to different industries are also different, so the resource pool corresponding to the industry can be generated according to the industry type of each industry. Resource pool information is configured for each resource pool, and the configurable resource pool information includes: each resource pool type, the number of environmental resources in the resource pool, the frequency of replenishing the resource pool, the step size of each replenishment of the resource pool, and the upper limit of a single user creating a customer environment. Among them, the resource pool type can be set according to the industry type, the resource pool quantity parameter can be the number of environmental resources that can be stored in the resource pool, and the frequency of replenishing the resource pool can be set according to the resource pool type. For example, if industry A is a popular industry and there are many users in the industry, then the frequency of replenishing the resource pool corresponding to industry A can be set to replenish once every ten minutes, and industry B is an unpopular industry with fewer users in the industry, then the frequency of replenishing the resource pool corresponding to industry B can be set to replenish once every 24 hours. It should be noted that the frequency of replenishing the resource pool can also be the resource detection frequency of the resource pool. When it is detected that the number in the resource pool is lower than the preset threshold, it will be replenished. In addition, the step length of each resource pool replenishment indicates the number of environment resources replenished each time. For example, if 10 resources need to be replenished, you can choose to replenish 5 at a time and complete it in two times, or you can choose to replenish 2 at a time and complete it in 5 times. The specific step length can be set according to the configuration of the server. Generally, obtaining customer environments is usually used in the scenario of user experience of SaaS service software. In this scenario, the user is an experience customer and has not purchased this service. In order to avoid malicious use, an upper limit on the number of customer environments created by a single user is set.

[0034] Based on the Application Program Interface (API) request, the initialization user environment for each industry is generated according to the software version of the SaaS service and the resource pool information of each resource pool. It should be noted that the API interface request here adopts the backend API interface request method, only accepts requests initiated locally, and performs API interface authentication to ensure the security of the interface. Afterwards, based on the initialization user environment of each industry, the user environment template file of each industry is generated.

[0035] Specifically, based on the initialized user environment of each industry, a user environment template file for each industry is generated, specifically including: determining the database template file for the initialized user environment according to the industry type corresponding to the initialized user environment of each industry; determining the designated software for the application SaaS service, and obtaining the running files required for the designated software to run in the software version of the SaaS service; generating the user environment template file for each industry based on the database template file and the running file, and storing them in the designated location of the SaaS service.

[0036] In one embodiment of the present specification, the database template file for the initialization user environment is determined according to the industry type corresponding to the initialization user environment of each industry. In an actual application environment, different industries correspond to different database template files. For example, the database template file corresponding to the mechanical processing industry is data related to mechanical processing, while the database template file corresponding to the financial industry is data related to finance.

[0037] In one embodiment of the present specification, the designated software for the application SaaS service is determined, and the operating files required for the designated software to run in the software version of the SaaS service are obtained. The designated software here may be ERP software. The operating files required for the software to run are different in the software versions of different SaaS services. Therefore, it is necessary to determine the operating files according to the corresponding version number of the software running. And based on the database template file and the operating file, the user environment template file of each industry is generated. The generation method here can be in the form of combination, that is, the database template file and the operating file are combined as the user environment template file. The generated template file is stored in the designated location of the SaaS service. The designated location here can be in the designated directory of the server.

[0038] Receiving a user environment acquisition request specifically includes: obtaining the user's registration information, wherein the user's registration information includes the industry type corresponding to the user; generating the user's environment acquisition request based on the user's registration information; and receiving the user's environment acquisition request based on the user's specified trigger operation.

[0039] In one embodiment of the present specification, the user who obtains the user environment for product experience can be a new user or an old user who has expired and has not renewed. When the user is a new user, the user is guided to register through the official interface of the SaaS service to obtain the registration information of the new user; when the user is an old user, the registration information of the user can be obtained from the historical registration record based on the identity information of the old user. Based on the user's registration information, a user environment acquisition request is generated, wherein the user environment acquisition request includes the user's industry type. And based on the user's specified trigger operation, the user's environment acquisition request is received. It should be noted that the user's specified trigger operation can be clicking the "Create Enterprise" button, which automatically sends the user environment acquisition request to the SaaS service.

[0040] Step S102 : According to the industry type of the user in the user environment acquisition request, a current resource pool corresponding to the industry type is determined from a plurality of pre-built enterprise resource planning resource pools.

[0041] After receiving the user environment acquisition request, according to the industry type of the user in the user environment request, the current resource pool corresponding to the current industry type is determined from the pre-built multiple resource pools. Therefore, it is also necessary to build resource pools corresponding to each industry.

[0042] Specifically, according to the number of environment resources in the current resource pool, the same number of copy files of the user environment template file are generated; and the multiple copy files are stored in the current resource pool to generate an initial current resource pool.

[0043] In one embodiment of the present specification, a copy file of a user environment template file is generated, and the number of copy files is determined according to the number of environment resources in the resource pool, and the copy files under the number are stored in a pre-built resource pool to generate an initial resource pool. For example, if the number of environment resources in the resource pool corresponding to the mechanical processing industry is 50, 50 copy files of the user environment template file are generated and placed in the resource pool corresponding to the mechanical processing industry.

[0044] After the initial current resource pool is generated, there may be multiple users in the same industry who acquire user environments. For example, user A and user B acquire user environments in sequence. When user A acquires the corresponding user environment, the number of environment resources in the resource pool becomes 49. When user B acquires the corresponding user environment, the number of environment resources in the resource pool becomes 48. And so on. When there are many users, there may be a situation where the number of user environment resources in the resource pool is insufficient. Therefore, it is necessary to supplement the user environment resources in the resource pool.

[0045] Specifically, based on the resource detection frequency of the current resource pool, a resource quantity timing detection task is generated; the resource quantity of the current resource pool is detected through the resource quantity timing detection task; when the resource quantity of the current resource pool is lower than a preset threshold, a pre-generated resource quantity timing replenishment task is triggered; based on the pre-generated resource quantity timing replenishment task, the resource quantity of the current resource pool is replenished so that the resource quantity of the current resource pool meets the preset threshold.

[0046] In one embodiment of the present specification, a resource quantity timed detection task is generated according to the resource detection frequency set when the resource pool is configured, and the time interval of the detection frequency is consistent with the timing time of the detection task. The resource quantity in the resource pool is detected by the resource quantity timed detection task. If the resource quantity of the current resource pool is lower than the preset threshold, the pre-generated resource quantity timed replenishment task is triggered. It should be noted that the timing time of the resource quantity timed replenishment task here is the same as the timing time of the detection task. According to the pre-generated resource quantity timed replenishment task, the resource quantity of the current resource pool is replenished so that the resource quantity of the current resource pool meets the preset threshold. Combined with the system scheduled tasks, continuous inspections are carried out, and replenishment is carried out after the resource pool quantity is found to be lower than the set value, which frees the hands of operation and maintenance personnel and operation personnel, effectively reduces human resource costs, and enables users to independently complete the rapid delivery of customer environments.

[0047] Step S103, obtaining the number of user environment resources in the current resource pool corresponding to the industry type, and determining whether the number of user environment resources in the current resource pool meets a preset threshold.

[0048] In one embodiment of the present specification, after determining the current resource pool corresponding to the industry type, the number of resources in the current resource pool is obtained, and it is determined whether the number of resources in the current resource pool meets the preset threshold. In actual application scenarios, if there are multiple users who simultaneously obtain the user environment, it is necessary to ensure that the number of resources in the resource pool is not less than the number of users. For example, 10 users simultaneously trigger the acquisition of the user environment, but at this time the number of resources in the resource pool is 5. If the subsequent steps are performed directly, there will be a situation where 5 users fail to operate. In addition, the preset threshold can be determined based on the number of simultaneous deliveries that can be provided by the SaaS service, or in other ways, and the embodiments of this specification do not make specific limitations here.

[0049] Step S104: when the number of user environment resources in the current resource pool meets a preset threshold, user environment resources that meet the requirements are determined in the current resource pool.

[0050] In one embodiment of the present specification, if the number of user environment resources in the current resource pool meets a preset threshold, it is necessary to determine a user environment resource that meets the requirements from multiple user environment resources in the resource pool, wherein the user environment resource that meets the requirements and other user environment resources are copies of a pre-generated user environment template file.

[0051] Since all user environment resources in the resource pool are copies of the user environment template file, they can be randomly selected as user environment resources that meet the requirements, or the user environment resources corresponding to the optimal interface can be determined based on the calling interface of the user environment resources.

[0052] Specifically, obtain the environment resource calling interface information corresponding to multiple user environment resources in the current resource pool, wherein the calling interface information includes the number of interface calls and the interface response time of the current environment resource calling interface; sort the environment resource calling interfaces corresponding to multiple user environment resources in order of the number of interface calls from small to large, and generate a first sorting result of the environment resource calling interfaces corresponding to multiple user environment resources; in the first sorting result, screen out multiple environment resource designated calling interfaces in a specified order; determine an environment resource calling interface that meets the requirements based on the interface response time of the multiple environment resource designated calling interfaces, wherein, among the multiple environment resource designated calling interfaces, the interface response time of the environment resource calling interface that meets the requirements is shorter than that of other environment resource designated calling interfaces; determine the corresponding user environment resource that meets the requirements based on the environment resource calling interface that meets the requirements.

[0053] In one embodiment of the present specification, the user environment resources in the resource pool are obtained through the environment resource calling interface, and the environment resource calling interface information corresponding to all the user environment resources in the resource pool is obtained. The interface information here can be the number of interface calls and the interface response time of the current environment resource calling interface. The interface response time refers to the time interval between the time when the interface receives the interface call request and the time when the user environment resource called is sent. The smaller the time interval, the better the performance of the interface. The number of interface calls represents the total number of times the interface is called. The more times it is called, the greater the possibility of being called next time. In order to avoid the situation where the same interface is called when multiple users request the user environment at the same time, the environment resource calling interfaces corresponding to multiple user environment resources are sorted in order from small to large according to the number of interface calls, and the first sorting result of the environment resource calling interfaces corresponding to multiple user environment resources is generated. In the first sorting result, multiple environment resource specified calling interfaces of a specified order are screened out, which can be the top three calling interfaces or the top five calling interfaces. According to the interface response times of multiple environment resource specified calling interfaces, an environment resource calling interface that meets the requirements is determined, wherein among the multiple environment resource specified calling interfaces, the environment resource calling interface that meets the requirements has the shortest interface response time; according to the determined environment resource calling interface that meets the requirements, the corresponding user environment resource that meets the requirements is determined.

[0054] In one embodiment of the present specification, although a scheduled replenishment task is pre-set, there may still be a situation where the number of environmental resources in the resource pool is lower than the preset threshold. For example, the time interval between two adjacent scheduled replenishment tasks is 10 minutes, the first environmental resource replenishment is performed at 7:00, and the second environmental resource replenishment is at 7:10. In the time interval of 7:00-7:05, 25 users obtain user environments. There are 50 user environmental resources in the current resource pool. At 7:06, 25 remain. The preset threshold is 30. At this time, the number of environmental resources in the resource pool is lower than the preset threshold. If the number of environmental resources in the current resource pool is lower than the preset threshold, it is necessary to replenish the environmental resources in the resource pool in a timely manner. After the resource pool is replenished, the user environmental resources are selected.

[0055] Specifically, when the number of environmental resources in the current resource pool is lower than a preset threshold, it also includes: obtaining the current number of environmental resources in the current resource pool; determining the number of resources to be supplemented based on the difference between the current number of environmental resources and the preset threshold; obtaining the user environment template file corresponding to the user's industry type at the specified location of the SaaS service; generating multiple to-be-supplemented copy files of the same number of user environment template files based on the number of resources to be supplemented; storing the multiple to-be-supplemented copy files in the current resource pool to complete the environmental resource supplementation of the current resource pool.

[0056] In one embodiment of the present specification, if the number of environmental resources in the current resource pool is lower than a preset threshold, the current number of environmental resources in the current resource pool is obtained, and the number of environmental resources to be supplemented is determined according to the difference between the current number of environmental resources and the preset threshold. For example, if the current number of environmental resources is 20 and the preset threshold is 25, the difference of 25 and 20, 5, is used as the environmental resource to be supplemented, that is, 5 environmental resources need to be supplemented.

[0057] In one embodiment of the present specification, the following method can be used to obtain the environmental resources to be supplemented: according to the storage location of the environmental resource template file, the user environment template file corresponding to the user's industry type is obtained in the storage location; and multiple copy files of the user environment template file to be supplemented are generated, and the number of the multiple copy files to be supplemented is the same as the number of environmental resources to be supplemented. The following method can also be used to obtain the environmental resources to be supplemented: first, the database template file corresponding to the current resource pool is restored, and then the operation file required for operation is copied to generate the resource information to be supplemented. After that, the resource information is inserted into the information table of the SaaS management background to complete the replenishment of the resource pool once, and the replenishment is stopped after the set value is reached. In other words, multiple copy files to be supplemented are stored in the current resource pool to complete the environmental resource replenishment of the current resource pool.

[0058] Step S105 : generating a user environment to be delivered according to the user environment resources that meet the requirements and the pre-acquired customized information of the user environment to be delivered.

[0059] In one embodiment of the present specification, the customized information of the user environment to be delivered is obtained. It should be noted that the customized information refers to the enterprise information filled in by the user according to the operation process of the interface after registration or login. Since the user environment resources that meet the requirements are copies of the environment resource template file, the user resources that meet the requirements are filled with content according to the customized information of the user environment to generate the user environment to be delivered.

[0060] Through the technical solution provided in the embodiments of this specification, users can complete the process independently without the need for manual backend participation by the SaaS service provider, and can obtain an exclusive environment for product experience in a relatively short period of time, which greatly improves delivery efficiency, retains customer resources, reduces the personnel costs of SaaS manufacturers, and has a high promotion and reuse value.

[0061] This specification embodiment also provides another user environment delivery method for SaaS services, such as Figure 2 As shown, it mainly includes:

[0062] First, initialize the template file in advance: initialize a database instance according to the code environment branch, that is, initialize the standard environment, and generate the database template file and the running file required at runtime. Create the environment resource template file according to the database template file and the running file required at runtime. Specifically include the following steps: First, update the server code environment to the specified code branch and restart the SaaS service. Secondly, configure each resource pool type, resource pool quantity parameters, frequency of replenishing resource pools, step size of each resource pool replenishment, and the upper limit of a single user creating a customer environment. Finally, according to the specified code branch, use the API interface request to initialize a standard customer environment. Using the background API interface request method, only locally initiated requests are accepted, and API interface authentication is performed to ensure the security of the interface. According to the initialized customer environment, the corresponding database and related resource files required for runtime are packaged as a template file for customer environment resources.

[0063] Secondly, the customer requests to obtain the experience environment: after registering and logging in to the SaaS official website, the user clicks on Create Enterprise to initiate an environment acquisition request. After initiating the request, the program checks the corresponding number of resources in the required resource pool. If the resources are sufficient, the parameters of the customer environment are initialized. Specifically, according to the resource type selected by the customer, a customer environment instance is taken out from the corresponding resource pool, and the customer environment information is initialized according to the relevant information customized by the customer. The environment acquisition is completed and the ERP guide page is automatically entered. The delivery of the customer environment can be completed in about one minute. If the number of resources is insufficient, the user will be prompted that the resources are insufficient and please try again later, and the task of replenishing the resource pool will be initiated to replenish the resources. When the user needs to obtain resources, he does not need to send an application to the SaaS backend administrator, nor does he need to reinitialize an environment instance. For the user, the effect of activation can basically be achieved as soon as the registration is completed, and the user does not need to wait on the browser all the time. The initialization of user information can be completed within one minute, and the user does not need to wait too much, which greatly improves the user experience and the efficiency of customer environment delivery.

[0064] In addition, a scheduled task is set up to automatically check the number of resources and replenish them: according to the time set for the scheduled task and the number of resources set, the scheduled task will poll to check whether the number of resources is lower than the set value. If it is lower than the set value, the resource pool will be automatically replenished. The resource pool will be replenished according to the set number of resource pools. The template file saved in the server is used to first restore the database, and then copy the runtime file. The resource information is inserted into the information table of the SaaS management background to complete a resource pool replenishment. The replenishment stops after reaching the set value, that is, until the set number value is met. The background scheduled task detects that the number of resources has decreased and starts to replenish resources again. Based on the database template file, according to different resource pool types, the database template file and the product runtime running file are restored and kept running. The created resource pool information is added to the SaaS management background, thereby completing a resource pool replenishment.

[0065] The embodiment of this specification also provides a user environment delivery device for SaaS service, such as Figure 3 As shown, the device includes:

[0066] at least one processor; and,

[0067] a memory communicatively connected to the at least one processor; wherein,

[0068] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0069] A user environment acquisition request is received, wherein the user environment acquisition request includes the industry type of the user; based on the industry type of the user in the user environment acquisition request, a current resource pool corresponding to the industry type is determined in a plurality of pre-built enterprise resource planning resource pools; the number of user environment resources in the current resource pool corresponding to the industry type is obtained, and it is determined whether the number of user environment resources in the current resource pool meets a preset threshold; when the number of user environment resources in the current resource pool meets the preset threshold, user environment resources that meet the requirements are determined in the current resource pool, wherein the user environment resources that meet the requirements are copies of pre-generated user environment template files; and a user environment to be delivered is generated based on the user environment resources that meet the requirements and the pre-acquired custom information of the user environment to be delivered.

[0070] The embodiment of this specification also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0071] A user environment acquisition request is received, wherein the user environment acquisition request includes the industry type of the user; based on the industry type of the user in the user environment acquisition request, a current resource pool corresponding to the industry type is determined in a plurality of pre-built enterprise resource planning resource pools; the number of user environment resources in the current resource pool corresponding to the industry type is obtained, and it is determined whether the number of user environment resources in the current resource pool meets a preset threshold; when the number of user environment resources in the current resource pool meets the preset threshold, user environment resources that meet the requirements are determined in the current resource pool, wherein the user environment resources that meet the requirements are copies of pre-generated user environment template files; and a user environment to be delivered is generated based on the user environment resources that meet the requirements and the pre-acquired custom information of the user environment to be delivered.

[0072] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0073] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0074] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.

Claims

1. A user environment delivery method for SaaS service, characterized in that: The method comprises: Receiving a user environment acquisition request, wherein the user environment acquisition request includes the industry type of the user; According to the industry type of the user in the user environment acquisition request, determining a current resource pool corresponding to the industry type from a plurality of pre-built enterprise resource planning resource pools; Obtaining the number of user environment resources in the current resource pool corresponding to the industry type, and determining whether the number of user environment resources in the current resource pool meets a preset threshold; When the number of user environment resources in the current resource pool meets a preset threshold, determining a user environment resource that meets the requirements in the current resource pool, wherein the user environment resource that meets the requirements is a copy file of a pre-generated user environment template file; The user environment to be delivered is generated according to the user environment resources that meet the requirements and the pre-acquired customized information of the user environment to be delivered.

2. A user environment delivery method for SaaS service according to claim 1, characterized in that: Before receiving the user environment acquisition request, the method further includes: According to a preset designated code branch, the server code environment of the SaaS service is updated to determine the software version of the SaaS service; Generate multiple resource pools corresponding to multiple industries, and configure resource pool information for each resource pool; Based on the application program interface request, generating an initialization user environment for each industry according to the software version of the SaaS service and the resource pool information of each resource pool; A user environment template file for each industry is generated according to the initialized user environment for each industry.

3. A user environment delivery method for SaaS service according to claim 2, characterized in that: Generating a user environment template file for each industry according to the initialized user environment for each industry specifically includes: Determining a database template file for the initialization user environment according to the industry type corresponding to the initialization user environment of each industry; Determine the designated software for applying the SaaS service, and obtain the running files required for the designated software to run in the software version of the SaaS service; The user environment template file for each industry is generated based on the database template file and the operation file, and is stored in a designated location of the SaaS service.

4. A user environment delivery method for SaaS service according to claim 3, characterized in that: The resource pool information includes the quantity of environmental resources in the resource pool; Before determining a current resource pool corresponding to the industry type from among a plurality of pre-built enterprise resource planning resource pools according to the industry type of the user in the user environment acquisition request, the method further includes: Generate the same number of copy files of the user environment template file according to the number of environment resources in the current resource pool; The multiple copy files are stored in the current resource pool to generate an initial current resource pool.

5. A user environment delivery method for SaaS service according to claim 3, characterized in that: After determining whether the number of environmental resources in the current resource pool meets a preset threshold, the method further includes: When the amount of environmental resources in the current resource pool is lower than a preset threshold, obtaining the current amount of environmental resources in the current resource pool; Determining the amount of environmental resources to be replenished according to the difference between the current amount of environmental resources and the preset threshold; At a designated location of the SaaS service, obtaining a user environment template file corresponding to the industry type of the user; According to the number of resources to be supplemented, generating a plurality of to-be-supplemented copy files of the user environment template file of the same number; The multiple copy files to be supplemented are stored in the current resource pool to complete the environmental resource supplement of the current resource pool.

6. A method for delivering a user environment of a SaaS service according to claim 4, characterized in that: The resource pool information includes a resource detection frequency of the resource pool. After generating the initial current resource pool, the method further includes: Generate a resource quantity timing detection task according to the resource detection frequency of the current resource pool; Detecting the quantity of resources in the current resource pool through the resource quantity timing detection task; When the number of resources in the current resource pool is lower than a preset threshold, a pre-generated resource quantity scheduled replenishment task is triggered; Based on the pre-generated resource quantity timing replenishment task, the resource quantity of the current resource pool is replenished so that the resource quantity of the current resource pool meets the preset threshold.

7. A method for delivering a user environment of a SaaS service according to claim 1, characterized in that: The determining of the user environment resources that meet the requirements in the current resource pool specifically includes: Obtaining environment resource calling interface information corresponding to a plurality of user environment resources in the current resource pool, wherein the calling interface information includes the number of interface calls and the interface response time of the current environment resource calling interface; Sort the environment resource call interfaces respectively corresponding to the plurality of user environment resources in order of the number of interface calls from small to large, and generate a first sorting result of the environment resource call interfaces respectively corresponding to the plurality of user environment resources; In the first sorting result, a plurality of environment resource designated calling interfaces in a designated order are screened out; Determine an environment resource calling interface that meets the requirements according to the interface response times of the multiple environment resource designated calling interfaces, wherein, among the multiple environment resource designated calling interfaces, the interface response time of the environment resource calling interface that meets the requirements is shorter than that of other environment resource designated calling interfaces; According to the environment resource calling interface that meets the requirements, corresponding user environment resources that meet the requirements are determined.

8. The user environment delivery method of a SaaS service according to claim 1, characterized in that: The receiving of the user environment acquisition request specifically includes: Acquire the user's registration information, wherein the user's registration information includes the industry type corresponding to the user; Generate an environment acquisition request for the user according to the registration information of the user; Based on the specified trigger operation of the user, a user environment acquisition request is received.

9. A user environment delivery device for SaaS service, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Receiving a user environment acquisition request, wherein the user environment acquisition request includes the industry type of the user; According to the industry type of the user in the user environment acquisition request, determining a current resource pool corresponding to the industry type from a plurality of pre-built enterprise resource planning resource pools; Obtaining the number of user environment resources in the current resource pool corresponding to the industry type, and determining whether the number of user environment resources in the current resource pool meets a preset threshold; When the number of user environment resources in the current resource pool meets a preset threshold, determining a user environment resource that meets the requirements in the current resource pool, wherein the user environment resource that meets the requirements is a copy file of a pre-generated user environment template file; The user environment to be delivered is generated according to the user environment resources that meet the requirements and the pre-acquired customized information of the user environment to be delivered.

10. A non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: Receive a user environment acquisition request, where: The user environment acquisition request includes the industry type of the user; According to the industry type of the user in the user environment acquisition request, determining a current resource pool corresponding to the industry type from a plurality of pre-built enterprise resource planning resource pools; Obtaining the number of user environment resources in the current resource pool corresponding to the industry type, and determining whether the number of user environment resources in the current resource pool meets a preset threshold; When the number of user environment resources in the current resource pool meets a preset threshold, determining a user environment resource that meets the requirements in the current resource pool, wherein the user environment resource that meets the requirements is a copy file of a pre-generated user environment template file; The user environment to be delivered is generated according to the user environment resources that meet the requirements and the pre-acquired customized information of the user environment to be delivered.

Citation Information

Patent Citations

  • Systems and methods for management of cloud computing resources for information systems

    CN108780403A

  • Hybrid cloud management method and device, medium and electronic equipment

    CN112671850A