A cloud service control method and related device
By sending a pre-start request to the cloud server and storing pre-start information, it determines and connects to the target cloud service, solving the problem of low game startup efficiency and achieving a user experience of quickly starting the game.
Patent Information
- Application Number
- CN202111335233.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-11-11
AI Technical Summary
The existing technology is inefficient when starting a game, especially when a large game is started, it takes several minutes or even longer to reach a playable state, resulting in poor user experience.
By sending a pre-start request to the cloud server, receiving and storing pre-start information, determining the cloud server identification information of the target cloud service, establishing a connection to start the target cloud service, and reducing the game resource loading delay and initialization time.
Significantly improves the startup efficiency of cloud services and games. Users can quickly enter game content without waiting for resource loading and initialization processes.
Smart Images

Figure CN114100143B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a cloud service control method and related devices, wherein the related devices include a cloud service control device, a computer device, and a computer-readable storage medium. Background Art
[0002] At present, there are many ways to quickly start games. For example, the game resource files are stored in an SSD (i.e., a solid-state electronic storage array hard disk) to reduce the loading delay of the game resource files, thereby quickly starting the game; for example, multiple game processes are started at the same time to synchronously load the game resource files through multiple game processes, thereby quickly starting the game; for another example, the game resource files are compressed using a fast compression algorithm, and the game resource files are packaged into the smallest package in the hard disk to be quickly loaded into the cache, and then the game resource files are opened in the cache, thereby reducing the transmission delay of the game resource files from the hard disk to the cache, thereby quickly starting the game; for another example, when the game is exited, the game resources are not completely released, and when the game is started next time, less game resources can be loaded to achieve the purpose of quickly starting the game.
[0003] However, when it comes to large-scale games, the game resource files themselves are very large, and there are too many items to initialize. Even if the resources that occupy all the program processes of the entire machine are initialized and the machine is started at the risk of freezing, it is still impossible to play immediately. In addition to the delay in loading the game resource files during the game startup process, the game's network communication, authentication, and security checks will take up the game startup time, making it impossible for the game to quickly reach a playable state. Based on this, each time the game is started, it must go through the initialization of the game program startup, wait for the loading of the game resource files, wait for network requests after entering the game, load the activity page, and other startup processes before the game can be started. In other words, the game startup process requires several minutes of startup time or even longer startup time to actually start the game and enter the game content.
[0004] In summary, these existing methods still have the problem of low game startup efficiency when the game is started. Summary of the invention
[0005] The embodiments of the present application provide a cloud service control method and related devices, which include a cloud service control device, a computer device, and a computer-readable storage medium, which can improve the efficiency of cloud service startup.
[0006] A cloud service control method, applied to a terminal, comprising:
[0007] Sending a pre-start request for the cloud service to the cloud server;
[0008] Receiving pre-start information returned by the cloud server in response to the pre-start request, the pre-start information including a mapping relationship between service identification information of a post-pre-start cloud service pre-started in the cloud server and cloud server identification information of the cloud server;
[0009] In response to a start request for a target cloud service, determining target service identification information that matches the reference identification information carried in the start request;
[0010] Determine the target cloud server identification information of the target cloud service according to the mapping relationship and the target service identification information;
[0011] Based on the target cloud server identification information, a connection is established with the target cloud server to start the target cloud service.
[0012] Accordingly, an embodiment of the present application provides a cloud service control device, including:
[0013] A first sending unit may be used to send a pre-start request for a cloud service to a cloud server;
[0014] A first receiving unit may be configured to receive pre-start information returned by the cloud server in response to the pre-start request, wherein the pre-start information includes a mapping relationship between service identification information of a post-pre-start cloud service pre-started in the cloud server and cloud server identification information of the cloud server;
[0015] A response unit, which may be used to respond to a start request for a target cloud service and determine target service identification information that matches the reference identification information carried in the start request;
[0016] A determination unit may be used to determine target cloud server identification information of a target cloud service according to the mapping relationship and the target service identification information;
[0017] The first establishing unit may be configured to establish a connection with a target cloud server based on the target cloud server identification information to start a target cloud service.
[0018] In some embodiments, the cloud service control device further includes a storage unit, which can be used to store the pre-start information in the resource storage.
[0019] Correspondingly, the response unit may also be configured to, in response to a start request for a target cloud service, select target service identification information matching the reference identification information carried in the start request from the resource storage.
[0020] In some embodiments, the cloud service control device also includes a first exit unit, which can be used to respond to an exit request for a target cloud service by sending an exit request to a target cloud server; in response to the target cloud server returning target pre-start information for the exit request, update the pre-start information in the resource storage device.
[0021] In some embodiments, the terminal includes a client and a background service program corresponding to the client; the first exit unit can be specifically used to respond to the exit request for the target cloud service through the client, and send the exit request to the background service program, so that the background service program sends the exit request to the target cloud server; the background service program responds to the target cloud server returning the target pre-start information for the exit request, and updates the pre-start information in the resource storage device.
[0022] In some embodiments, the first sending unit may be specifically configured to obtain the amount of pre-start information currently stored from the resource storage device; when the amount of information is less than or equal to a preset threshold, send a pre-start request to the cloud server.
[0023] In some embodiments, the first sending unit may be specifically configured to obtain a preset pre-start frequency value for the pre-start information; and send a pre-start request to the cloud server based on the preset pre-start frequency value.
[0024] In some embodiments, the first sending unit may be specifically configured to obtain historical usage data for the cloud service; and based on the historical usage data, send a pre-start request for the cloud service to the cloud server.
[0025] A cloud service control method, applied to a cloud server, comprising:
[0026] The receiving terminal sends a pre-start request for the cloud service;
[0027] Pre-starting the cloud service based on the pre-start request to determine service identification information of the pre-started cloud service and cloud server identification information of a cloud server corresponding to the pre-started cloud service;
[0028] Generate pre-start information based on the mapping relationship between the service identification information and the cloud server identification information;
[0029] Sending pre-start information to the terminal;
[0030] In response to a connection request sent by the terminal based on the pre-start information, a connection is established with the terminal so that the terminal starts the target cloud service.
[0031] Accordingly, an embodiment of the present application provides a cloud service control device, including:
[0032] A second receiving unit may be used to receive a pre-start request for a cloud service sent by a terminal;
[0033] A pre-start unit may be used to pre-start the cloud service based on the pre-start request to determine service identification information of the pre-started cloud service and cloud server identification information of a cloud server corresponding to the pre-started cloud service;
[0034] A generating unit, which may be used to generate pre-start information based on a mapping relationship between the service identification information and the cloud server identification information;
[0035] A second sending unit may be used to send pre-start information to the terminal;
[0036] The second establishing unit may be configured to establish a connection with the terminal in response to a connection request sent by the terminal based on the pre-start information, so that the terminal starts the target cloud service.
[0037] In some embodiments, the terminal includes a background service program; the cloud service control device also includes a second exit unit, which can be used to receive an exit request for a target cloud service sent by the terminal through the background service program; and send target pre-start information based on the exit request to the background service program so that the background service program updates the pre-start information in the resource storage of the terminal.
[0038] In some embodiments, the second receiving unit can be specifically used to receive a pre-start request for a cloud service sent by the terminal based on the amount of information in the pre-start information; or, receive a pre-start request for a cloud service sent by the terminal based on a preset pre-start frequency value of the pre-start information.
[0039] In addition, an embodiment of the present application also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any cloud service control method provided in the embodiment of the present application.
[0040] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any cloud service control method provided in the embodiment of the present application.
[0041] The embodiments of the present application can send a pre-start request for a cloud service to a cloud server; receive pre-start information returned by the cloud server in response to the pre-start request, the pre-start information including a mapping relationship between service identification information of a pre-started cloud service pre-started in the cloud server and cloud server identification information of the cloud server; in response to a start request for a target cloud service, determine target service identification information that matches the reference identification information carried in the start request; determine target cloud server identification information of the target cloud service based on the mapping relationship and the target service identification information; establish a connection with the target cloud server based on the target cloud server identification information to start the target cloud service; because the embodiments of the present application can determine the cloud server identification information of the target cloud service based on the pre-start information for the pre-start request when starting the target cloud service, it is possible to establish a connection with the target cloud server based on the cloud server identification information, thereby improving the startup efficiency of the cloud service. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 It is a scenario diagram of the cloud service control method provided in an embodiment of the present application;
[0044] Figure 2 1 is a flowchart of a cloud service control method provided in an embodiment of the present application;
[0045] Figure 3 It is a schematic diagram of the process of exiting the target cloud service provided in an embodiment of the present application;
[0046] Figure 4 FIG2 is a second flow chart of the cloud service control method provided in an embodiment of the present application;
[0047] Figure 5 is a timing diagram of the cloud service control method provided in an embodiment of the present application;
[0048] Figure 6 3 are schematic diagrams of the process of the cloud service control method provided in the embodiment of the present application;
[0049] Figure 7 This is a schematic diagram of a process for a terminal to obtain pre-start information provided by an embodiment of the present application;
[0050] Figure 8 This is a schematic diagram of a process for establishing a connection between a terminal and a target cloud server provided in an embodiment of the present application;
[0051] Fig. 9 It is a schematic diagram of a process of storing target pre-start information in a resource storage device by a terminal according to an embodiment of the present application;
[0052] Fig.10 is a schematic diagram of the structure of a cloud service control device provided in an embodiment of the present application;
[0053] Fig.11 is a second schematic diagram of the structure of a cloud service control device provided in an embodiment of the present application;
[0054] Fig.12 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0056] The embodiment of the present application provides a cloud service control method and related devices, which include a cloud service control device, a computer device and a computer-readable storage medium. The cloud service control device can be integrated in the computer device, which can be a server or a terminal.
[0057] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0058] For example, see Figure 1, taking the cloud service control device integrated in a computer device, which is a terminal as an example, the terminal sends a pre-start request for a cloud service to a cloud server; receives pre-start information returned by the cloud server in response to the pre-start request; in response to a start request for a target cloud service, determines target service identification information that matches the reference identification information carried in the start request; determines target cloud server identification information of the target cloud service based on a mapping relationship and the target service identification information; and establishes a connection with the target cloud server based on the target cloud server identification information to start the target cloud service.
[0059] The pre-start information includes a mapping relationship between service identification information of a post-pre-start cloud service pre-started in the cloud server and cloud server identification information of the cloud server.
[0060] Among them, cloud services can be cloud games, cloud computing, cloud education, etc.
[0061] Among them, the service identification information refers to the identification information used to distinguish different cloud services. Taking cloud service as cloud gaming as an example, there are many types of cloud games, and different service identification information can be used to refer to different cloud games.
[0062] The reference identification information is identification information of the target cloud service, and the computer device distinguishes different target cloud services through the reference identification information.
[0063] The pre-started cloud service is pre-started by the cloud server, so that the pre-started cloud service runs on the cloud server.
[0064] The pre-start request may include a pre-start request for at least one cloud service, and accordingly, the pre-start cloud service includes at least one pre-start cloud service. The cloud server may include at least one cloud server. A cloud server may run at least one pre-start cloud service.
[0065] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0066] This embodiment will be described from the perspective of a cloud service control device, which can be specifically integrated in a computer device, which can be a terminal or other device; wherein the terminal can include a tablet computer, a laptop computer, a personal computer (PC), a wearable device, a virtual reality device or other smart devices that can acquire data.
[0067] like Figure 2 As shown, the specific process of the cloud service control method is as follows:
[0068] S101. Send a pre-start request for a cloud service to a cloud server.
[0069] Among them, cloud services can be cloud games, cloud computing, cloud education, etc.
[0070] The cloud service may include at least one cloud service. The cloud server may include at least one cloud server. Different cloud services may be pre-started by the same cloud server or by different cloud servers. Pre-starting means that the cloud server loads and runs the cloud service.
[0071] When there is only one cloud server, the terminal can send a pre-start request to any cloud server. In the embodiment of the present application, the cloud server that receives the pre-start request is called the main cloud server, and the other cloud servers are called sub-cloud servers.
[0072] In the embodiment of the present application, the resource files required for the operation of the cloud service may be pre-stored on the cloud server. That is, each cloud server stores at least one resource file corresponding to the cloud service.
[0073] Based on the above, the master cloud server receives the pre-start request for the cloud service, and the master cloud server pre-starts the cloud service based on the resource files on the master cloud server. The master cloud server can also interact with the sub-cloud server so that the sub-cloud server pre-starts the cloud service based on the resource files on the sub-cloud server.
[0074] Of course, the embodiment of the present application can send a pre-start request to each cloud server so that each cloud server pre-starts the cloud service corresponding to itself.
[0075] There are many situations in which the pre-start request for the cloud service is sent to the cloud server in the embodiment of the present application, as described below:
[0076] (i) Specifically, the terminal obtains the information quantity of the currently stored pre-start information from the resource storage; when the information quantity is less than or equal to a preset threshold, the terminal sends a pre-start request to the cloud server.
[0077] Among them, the embodiment of the present application can set up a resource storage device, and the resource storage device can be set up in a terminal, and the resource storage device can also be set up in a cloud server.
[0078] In an embodiment of the present application, the cloud server generates pre-start information based on the pre-start request and can return the pre-start information to the terminal, so that the terminal can store the pre-start information returned from the cloud server in the resource storage.
[0079] In an embodiment of the present application, when the amount of information is less than or equal to a preset threshold, a pre-start request may be sent to a cloud server for at least one cloud service.
[0080] Among them, the preset threshold can be set to 60, but is not limited to 60. The embodiment of the present application can be set according to specific needs.
[0081] (ii) Specifically, the terminal obtains a preset pre-start frequency value for the pre-start information; and sends a pre-start request to the cloud server based on the preset pre-start frequency value.
[0082] Among them, the preset pre-start frequency value can be a numerical value of a preset pre-start frequency, and the embodiment of the present application can send a pre-start request to the cloud server based on the preset pre-start frequency value.
[0083] In the embodiment of the present application, the preset pre-start frequency value can be set to 1 minute or 1 hour, but is not limited to 1 minute or 1 hour. The embodiment of the present application can be set according to demand.
[0084] (III) Specifically, the terminal obtains historical usage data for the cloud service; based on the historical usage data, sends a pre-start request for the cloud service to the cloud server.
[0085] Among them, historical usage data refers to the usage data of cloud services in the historical period. Historical usage data includes the frequency of users' use of cloud services in the historical period, the duration of users' use of cloud services in the historical period, and the number of users of cloud services in the historical period.
[0086] After users use cloud services for a long time, the big data platform can accumulate a large amount of historical usage data of users. The terminal can obtain the historical usage data of ZhenGuDi cloud services from the big data platform.
[0087] In an embodiment of the present application, when the historical usage data meets a preset condition, a pre-start request for the cloud service is sent to the cloud server.
[0088] Among them, the historical usage data meets the preset conditions may include the number of users in the historical usage data meeting the preset user number threshold, the frequency of use of the cloud service by users in the historical usage data meeting the preset usage frequency threshold, and the duration of use of the cloud service by users in the historical usage data meeting the preset duration threshold.
[0089] Of course, the embodiments of the present application may also add other conditions, for example, when the historical usage data meets the preset conditions and the amount of pre-start information in the resource storage is less than or equal to the preset threshold, a pre-start request for the cloud service is sent to the cloud server.
[0090] S102: Receive pre-start information returned by the cloud server in response to the pre-start request.
[0091] The pre-start information includes a mapping relationship between service identification information of a post-pre-start cloud service pre-started in the cloud server and cloud server identification information of the cloud server.
[0092] The service identification information refers to identification information used to distinguish different cloud services. For example, if the cloud service is cloud gaming, there are many types of cloud gaming, and different cloud gaming services can be referred to using different service identification information. For example, if the cloud service is cloud education, for example, cloud education includes different cloud classrooms, and different service identification information can be referred to using different cloud classrooms.
[0093] The cloud server identification information refers to identification information used to distinguish different cloud servers. The cloud server identification information may include the name identification information, address identification information, and connection port identification information of the cloud server.
[0094] The cloud server may include at least one cloud server. A cloud server may run at least one pre-launched cloud service.
[0095] The pre-start request may include a pre-start request for at least one cloud service, and correspondingly, the post-pre-start cloud service includes at least one post-pre-start cloud service.
[0096] The pre-started cloud service is pre-started by the cloud server, so that the pre-started cloud service runs on the cloud server.
[0097] The embodiment of the present application can perform security verification on the pre-start information. For example, the terminal receives the pre-start information returned by the cloud server in response to the pre-start request, and verifies the pre-start information; if the pre-start information matches the preset pre-start information, the pre-start information is stored.
[0098] Among them, if the pre-start information matches the preset pre-start information, the pre-start information is stored specifically as follows: if the cloud server identification information of the pre-start information is the same as the cloud server identification information of the preset pre-start information, the service identification information of the pre-start information is matched with the service identification information of the preset pre-start information; if the service identification information of the pre-start information is the same as the service identification information of the preset pre-start information, the pre-start information is stored.
[0099] In the embodiment of the present application, the location where the pre-start information is stored may be a resource storage device. Specifically, after receiving the pre-start information returned by the cloud server in response to the pre-start request, the terminal stores the pre-start information in the resource storage device.
[0100] S103: In response to a start request for a target cloud service, determine target service identification information that matches the reference identification information carried in the start request.
[0101] The reference identification information is identification information of the target cloud service, and the terminal distinguishes different target cloud services through the reference identification information.
[0102] Specifically, the terminal may select, in response to a start request for a target cloud service, target service identification information matching the reference identification information carried in the start request from the resource storage.
[0103] Specifically, the terminal traverses all service identification information based on the reference identification information; matches the reference identification information with the service identification information for each service identification information; and uses the service identification information that matches the reference identification information as the target service identification information.
[0104] Among them, there are multiple ways for the embodiments of the present application to determine whether the reference identification information matches the service identification information. For example, when the reference identification information is the same as the service identification information, this situation can be called the reference identification information matches the service identification information. For example, when the keyword of the reference identification information is the same as the keyword of the service identification information, this situation can be called the reference identification information matches the service identification information. For example, the terminal splices the reference identification information with the service identification information to obtain the spliced identification information; when the spliced identification information is the same as the preset identification information, this situation can be called the reference identification information matches the service identification information.
[0105] Specifically, in the embodiment of the present application, different storage areas may be set in the resource storage device, and different storage areas may store different pre-start information of the pre-start cloud service. For example, in the embodiment of the present application, the pre-start information of the pre-start cloud service may be stored in different storage areas according to the popularity of the pre-start cloud service. The popularity of a cloud service refers to the number of times a user pays attention to the cloud service, and the number of attentions includes the number of searches, clicks, and uses.
[0106] For example, the storage area of the resource storage device includes a first storage area, a second storage area, and a third storage area. When the heat of the cloud service after pre-start is less than or equal to the first preset heat threshold, the pre-start information of the cloud service after pre-start is stored in the first storage area; when the heat of the cloud service after pre-start is greater than the first preset heat threshold and less than or equal to the second preset heat threshold, the pre-start information of the cloud service after pre-start is stored in the second storage area; when the heat of the cloud service after pre-start is greater than the second preset heat threshold, the pre-start information of the cloud service after pre-start is stored in the third storage area.
[0107] Based on the above, the embodiments of the present application can obtain the popularity of the target cloud service; based on the popularity of the target cloud service, determine the storage area in the resource storage device that matches the target cloud service; extract the pre-start information in the storage area; match the service identification information in the pre-start information with the reference identification information; if the service identification information matches the reference identification information, then use the service identification information that matches the reference identification information as the target service identification information.
[0108] S104: Determine target cloud server identification information of the target cloud service according to the mapping relationship and the target service identification information.
[0109] Among them, it can be known from the above that the mapping relationship is the mapping relationship between the service identification information of the pre-started cloud service and the cloud server identification information of the cloud server.
[0110] Based on the above, the terminal selects the service identification information that matches the target service identification information from the mapping relationship; and uses the cloud server identification information corresponding to the service identification information that matches the target service identification information as the target cloud server identification information of the target cloud service.
[0111] S105: Establish a connection with the target cloud server based on the target cloud server identification information to start the target cloud service.
[0112] In this embodiment of the present application, the target cloud server is determined based on the target cloud server identification information. Based on this, the terminal establishes a connection with the target server based on the TCP protocol or the UDP protocol to start the target cloud service.
[0113] Since the target cloud service has been pre-started on the target server, the terminal can directly start the target cloud service. Taking the target cloud service as a target cloud game as an example, the terminal starts the target cloud service to directly display the game interface of the target cloud game. The user does not have to wait for the loading time. The user can directly operate the terminal to realize the information interaction between the terminal and the target cloud server for the target cloud game.
[0114] In addition, the embodiment of the present application establishes a connection with the target cloud server based on the target cloud server identification information to start the target cloud service and then exits the target cloud service. Figure 3 As shown, the process of exiting the target cloud service in the embodiment of the present application can be as follows:
[0115] S1. In response to a logout request for a target cloud service, send a logout request to a target cloud server.
[0116] In the embodiment of the present application, the terminal may include a client and a background service program corresponding to the client. The client may exchange information with the target server through the background service program.
[0117] Based on this, the terminal can respond to the exit request for the target cloud service through the client and send the exit request to the background service program, so that the background service program sends the exit request to the target cloud server.
[0118] S2. In response to the target cloud server returning the target pre-start information for the exit request, update the pre-start information in the resource storage.
[0119] Since the terminal may include a client and a background service program corresponding to the client, based on this, the terminal may respond to the target cloud server returning the target pre-start information for the exit request through the background service program, and update the pre-start information in the resource storage.
[0120] Among them, since the embodiment of the present application deletes the pre-start information of the target cloud service from the resource storage after the terminal starts the target cloud service, the embodiment of the present application can store the exited target cloud service to the resource storage through the terminal to update the pre-start information in the resource storage.
[0121] The embodiments of the present application can send a pre-start request for a cloud service to a cloud server; receive pre-start information returned by the cloud server in response to the pre-start request, the pre-start information including a mapping relationship between service identification information of a pre-started cloud service pre-started in the cloud server and cloud server identification information of the cloud server; in response to a start request for a target cloud service, determine target service identification information that matches the reference identification information carried in the start request; determine target cloud server identification information of the target cloud service based on the mapping relationship and the target service identification information; establish a connection with the target cloud server based on the target cloud server identification information to start the target cloud service; because the embodiments of the present application can determine the cloud server identification information of the target cloud service based on the pre-start information for the pre-start request when starting the target cloud service, it is possible to establish a connection with the target cloud server based on the cloud server identification information, thereby improving the startup efficiency of the cloud service.
[0122] According to the method described in the above embodiment, the following is further described in detail with examples.
[0123] In this embodiment, the cloud service control device is specifically integrated into a computer device, and the computer device is a cloud server.
[0124] like Figure 4 As shown, a cloud service control method, the specific process is as follows:
[0125] S201: A receiving terminal sends a pre-start request for a cloud service.
[0126] Among them, cloud services can be cloud games, cloud computing, cloud education, etc.
[0127] There may be multiple cloud services, that is, the receiving terminal sends a pre-start request for at least one cloud service.
[0128] In the embodiment of the present application, there are many situations in which the receiving terminal sends a pre-start request for the cloud service, as detailed below:
[0129] (1) The cloud server receives a pre-start request for the cloud service sent by the terminal based on the information quantity of the pre-start information.
[0130] Among them, the embodiment of the present application can set a resource storage device, and the resource storage device can be set in the terminal, and the resource storage device can also be set in the cloud server. Of course, when the resource storage device can be set in the terminal, the resource storage device can be integrated into the storage device of the terminal.
[0131] In an embodiment of the present application, the cloud server can generate pre-start information based on the pre-start request and can return the pre-start information to the terminal, so that the terminal can store the pre-start information returned from the cloud server in the resource storage.
[0132] (2) A pre-start request for a cloud service sent by a receiving terminal based on a preset pre-start frequency value of the pre-start information.
[0133] Among them, the preset pre-start frequency value can be a numerical value of a preset pre-start frequency, and the embodiment of the present application can send a pre-start request to the cloud server based on the preset pre-start frequency value.
[0134] In the embodiment of the present application, the preset pre-start frequency value can be set to 1 minute or 1 hour, but is not limited to 1 minute or 1 hour. The embodiment of the present application can be set according to demand.
[0135] (3) Receiving a pre-start request for a cloud service sent by the terminal based on historical usage data of the pre-start information.
[0136] Among them, historical usage data refers to the usage data of cloud services in the historical period. Historical usage data includes the frequency of users' use of cloud services in the historical period, the duration of users' use of cloud services in the historical period, and the number of users of cloud services in the historical period.
[0137] S202: Pre-start the cloud service based on the pre-start request to determine service identification information of the pre-started cloud service and cloud server identification information of a cloud server corresponding to the pre-started cloud service.
[0138] The service identification information refers to the identification information used to distinguish different cloud services.
[0139] Among them, the present application implements pre-starting the cloud service through the cloud server, that is, the current cloud server is the cloud server corresponding to the pre-started cloud service.
[0140] The cloud server obtains its own cloud server identification information and the service identification information of the pre-started cloud service.
[0141] S203: Generate pre-start information based on the mapping relationship between the service identification information and the cloud server identification information.
[0142] The embodiment of the present application can be understood as the pre-start information including the mapping relationship between the service identification information and the cloud server identification information.
[0143] S204: Send pre-start information to the terminal.
[0144] The cloud server sends pre-start information to the terminal, so that the terminal stores the pre-start information in the resource storage.
[0145] S205. In response to the connection request sent by the terminal based on the pre-start information, establish a connection with the terminal so that the terminal starts the target cloud service.
[0146] Among them, the embodiment of the present application establishes a connection between the cloud server and the terminal based on the TCP protocol or the UDP protocol, so that the cloud server and the terminal can exchange information, and the terminal starts the target cloud service.
[0147] In addition, in the embodiment of the present application, after establishing a connection with the terminal in response to the connection request sent by the terminal based on the pre-start information so that the terminal starts the target cloud service, the target service can also be exited. The process of exiting the target cloud service in the embodiment of the present application can be as follows:
[0148] Specifically, the terminal includes a background service program. The cloud server receives an exit request for a target cloud service sent by the terminal through the background service program, and sends target pre-start information based on the exit request to the background service program, so that the background service program updates the pre-start information in the resource storage of the terminal.
[0149] Among them, since the embodiment of the present application deletes the pre-start information of the target cloud service from the resource storage after the terminal starts the target cloud service, the embodiment of the present application can store the exited target cloud service in the resource storage through the background service program to update the pre-start information in the resource storage.
[0150] The embodiments of the present application can receive a pre-start request for a cloud service sent by a terminal; pre-start the cloud service based on the pre-start request to determine the service identification information of the cloud service after the pre-start and the cloud server identification information of the cloud server corresponding to the cloud service after the pre-start; generate pre-start information based on the mapping relationship between the service identification information and the cloud server identification information; send the pre-start information to the terminal; establish a connection with the terminal in response to a connection request sent by the terminal based on the pre-start information, so that the terminal starts the target cloud service; because the embodiments of the present application can pre-start the cloud service and generate the pre-start information after receiving the pre-start request, when the terminal starts the target cloud service, it can establish a connection with the cloud server based on the pre-start information, thereby improving the startup efficiency of the cloud service.
[0151] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0152] According to the method described in the above embodiment, the following is further described in detail with examples.
[0153] In this embodiment, the cloud service control device is specifically integrated in a computer device, the computer device is a terminal, and the cloud service is a cloud game.
[0154] Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is not played on the player's game terminal, but on a cloud server, which renders the game scene into a video and audio stream and transmits it to the player's game terminal over the network. The player's game terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input commands and send them to the cloud server.
[0155] like Figure 5 As shown, a cloud service control method, the specific process is as follows:
[0156] S301. The terminal sends a pre-start request for a cloud game to a cloud server.
[0157] The terminal includes a client and a background service program corresponding to the client. The background service program is in real-time communication with the cloud server. The background service program can notify the cloud server to start or shut down at any time, that is, the background service program can command the cloud server to start or shut down the cloud game. When the game server starts the cloud game, the cloud server sends the cloud game startup information to the background service program; when the game server shuts down the cloud game, the cloud server sends the cloud game shutdown information to the background service program.
[0158] The background service program of the embodiment of the present application can establish a connection with the cloud server through the TCP protocol. The embodiment of the present application can define a variety of commands to enable the background service program to interact with the cloud server. The background service program sends commands to the cloud server, and the cloud server controls the program for the cloud game in the cloud server by parsing the commands. The commands include a start command (start_game) and a close command (close_game).
[0159] After the cloud server receives the command from the remote background service program, the cloud server can call the program of the window server to activate the cloud game to pre-start the cloud game; the cloud server can also call the script of the Linux server or the program of the Linux server to execute the cloud game startup script and the cloud game startup command to pre-start the cloud game.
[0160] The embodiment of the present application can call the program of the window server to close the cloud game; the cloud server can also call the script of the Linux server or the program of the Linux server to execute the cloud game closing script and the cloud game closing command to close the cloud game.
[0161] Based on the communication between the above-mentioned background service program and the cloud server, the embodiment of the present application can flexibly set the method of pre-starting the cloud game.
[0162] For example, in an embodiment of the present application, a pre-start request may be triggered by a client, and the client sends the pre-start request to a background service program, which then sends the pre-start request to a cloud server.
[0163] For another example, in an embodiment of the present application, a background service program may respond to a control instruction input by a developer, so that the background service program sends a pre-start request to a cloud server.
[0164] In the embodiment of the present application, the background service program may directly interact with the cloud server, and there may be multiple methods for the terminal to send a pre-start request for a cloud game to the cloud server through the background service program.
[0165] For example, the background service program obtains the number of pre-start information currently stored from the resource storage; when the number of information is less than or equal to a preset threshold, a pre-start request is sent to the cloud server. In this way, when the number of users playing cloud games is large, the cloud game has been allocated to the user after pre-start, and there is no pre-start information of the cloud game allocated to the user in the resource storage. Based on this, when the number of information is less than or equal to the preset threshold, a pre-start request is sent to the cloud server through the background service program.
[0166] Among them, the background service program sets up a storage structure, which is the resource storage in the embodiment of the present application, and the storage structure can also be called a resource pool.
[0167] For example, the background service program obtains a preset pre-start frequency value for the pre-start information; and sends a pre-start request to the cloud server based on the preset pre-start frequency value.
[0168] For example, the background service program obtains historical usage data for cloud games; based on the historical usage data, a pre-start request for cloud games is sent to the cloud server.
[0169] like Figure 6 As shown, the terminal sends a pre-start request for the cloud game to the cloud server through the background service program. The cloud server may include cloud server A, cloud server B, and cloud server C. Each cloud server can store resource files corresponding to multiple cloud games, so that each cloud server can pre-start multiple cloud games. For example, cloud server A can pre-start cloud games A, B, and C; cloud server B can pre-start cloud games D, E, and F; cloud server C can pre-start cloud games G, H, and I.
[0170] In the embodiment of the present application, the terminal can send the pre-start request to each cloud server through the background service program, or send the pre-start request to any cloud server or any cloud server that has not pre-started the cloud game. For example, the terminal sends the pre-start request to cloud server B.
[0171] S302: The cloud server receives a pre-start request.
[0172] The cloud game may include at least one game. The cloud server may include at least one cloud server. Different cloud games may be pre-started by the same cloud server or by different cloud servers. Pre-starting means that the cloud server loads and runs the cloud game.
[0173] The embodiment of the present application can send a pre-start request to each cloud server so that each cloud server pre-starts the cloud game corresponding to itself.
[0174] S303. The cloud server pre-starts the cloud game based on the pre-start request.
[0175] When there is at least one cloud game, it can be pre-started by one cloud server. When there are multiple cloud games, different cloud games can be pre-started by different cloud servers, or each cloud server can pre-start a preset number of cloud games.
[0176] For example, Figure 6 As shown, cloud server A pre-starts cloud game A, cloud game B, and cloud game C; cloud server B pre-starts cloud game D, cloud game E, and cloud game F; cloud server C can pre-start cloud game G, cloud game H, and cloud game I.
[0177] S304: The cloud server determines the service identification information of the pre-started cloud game and the cloud server identification information of the cloud server corresponding to the pre-started cloud game.
[0178] Specifically, the cloud server extracts the service identification information of the pre-started cloud game and the cloud server identification information of the cloud server itself by monitoring the status of its own cloud game. The status of the cloud game includes the start state and the shutdown state.
[0179] S305: The cloud server generates pre-start information based on the mapping relationship between the service identification information and the cloud server identification information.
[0180] The embodiment of the present application can be understood as the pre-start information including a mapping relationship between the service identification information and the cloud server identification information.
[0181] Among them, the pre-start information of the embodiment of the present application may also include the running status of the cloud game after pre-start and the parameters of the cloud server corresponding to the cloud game after pre-start.
[0182] S306: The cloud server sends pre-start information to the terminal.
[0183] For example, Figure 6 As shown, the cloud server returns pre-start information to the background service program.
[0184] S307: The terminal receives the pre-start information returned by the cloud server.
[0185] The pre-start information includes a mapping relationship between service identification information of a pre-started cloud game pre-started in the cloud server and cloud server identification information of the cloud server.
[0186] S308: The terminal stores the pre-start information in a resource storage device.
[0187] In the embodiment of the present application, a monitoring command can be sent to the cloud server through a background service program to monitor the status of the cloud game after pre-starting; thus, the pre-starting information in the resource storage can be updated based on the status of the cloud game after pre-starting. The status of the cloud game includes a start state and a shutdown state.
[0188] For example, when the state of the target cloud game after pre-start is the start state, if the pre-start information of the target cloud game after pre-start does not exist in the resource storage device, the pre-start information of the target cloud game after pre-start is stored in the resource storage device to update the pre-start information in the resource storage device.
[0189] When the state of the target cloud game after pre-start is closed, if the pre-start information of the target cloud game after pre-start exists in the resource storage, the pre-start information of the target cloud game after pre-start is deleted from the resource storage to update the pre-start information in the resource storage.
[0190] Based on the above, the pre-start process of cloud games does not require human intervention and can be completely started by setting up a background service program. Since a cloud server can include multiple cloud servers and a cloud game can include multiple cloud games, multiple servers and multiple cloud games can be pre-started quickly and concurrently, thereby achieving the purpose of quickly supplementing pre-start information, thereby laying the foundation for the user's cloud game startup.
[0191] For example, Figure 6 As shown, the cloud server, such as cloud server B, returns the pre-start information to the background service program, and the background service program stores the pre-start information in the resource storage.
[0192] The following is a detailed description of the process by which the terminal obtains the pre-start information.
[0193] like Figure 7 As shown, taking the preset pre-start frequency value as an example, the background service program is triggered to send a pre-start request to the cloud server based on the preset pre-start frequency value. The cloud server generates pre-start information through the above steps S303 to S305. The cloud server sends the pre-start information to the background service program. After receiving the pre-start information, the background service program stores the pre-start information in the resource storage, and the resource storage returns the information of successful storage to the background service program.
[0194] S309: In response to the start request for the target cloud game, the terminal selects target service identification information matching the reference identification information carried in the start request from the resource storage.
[0195] Among them, the embodiment of the present application traverses all service identification information based on reference identification information; for each service identification information, the reference identification information is matched with the service identification information; and the service identification information matched with the reference identification information is used as the target service identification information.
[0196] S310. The terminal determines the target cloud server identification information of the target cloud game according to the mapping relationship and the target service identification information.
[0197] Among them, the terminal selects the service identification information that matches the target service identification information from the mapping relationship; and uses the cloud server identification information corresponding to the service identification information that matches the target service identification information as the target cloud server identification information of the target cloud game.
[0198] For example, Figure 6 As shown, the terminal sends a start request to the background service program through the client, and the background service program interacts with the resource storage and retrieves the target cloud server identification information from the pre-start information in the resource storage.
[0199] S311. The terminal sends a connection request to the target cloud server based on the target cloud server identification information.
[0200] For example, Figure 6 As shown, the terminal sends a connection request to the target cloud server through the client. The target cloud server can be cloud server A.
[0201] S312: The target cloud server receives the connection request.
[0202] S313: The target cloud server establishes a connection with the terminal.
[0203] The following is a detailed description of the process of establishing a connection between the terminal and the target cloud server.
[0204] like Figure 8 As shown, the user can perform a startup operation for the target cloud game. In response to the startup operation, the client sends a startup request for the target cloud game to the background service program. The background service program receives the startup request, and the background service program interacts with the resource storage based on the startup request. The terminal selects the target service identification information that matches the reference identification information carried in the startup request in the resource storage. Based on the mapping relationship and the target service identification information, the terminal determines the target cloud server identification information of the target cloud game from the resource storage. Based on this, the terminal controls the resource storage to send the target cloud server identification information to the client. The client receives the target cloud server identification information and sends a connection request to the target cloud server to establish a connection with the target server.
[0205] Among them, the client of the embodiment of the present application communicates with the target cloud server through the TCP or UDP protocol.
[0206] S314: The target cloud server returns a successful connection message to the terminal.
[0207] The successful connection information refers to the successful connection between the target cloud server and the terminal.
[0208] S315. The terminal starts the target cloud game based on the successful connection information.
[0209] After the client establishes a communication connection with the target cloud server, the client starts the target cloud game. In the embodiment of the present application, the client and the target cloud server can interact with the target cloud game by means of commands.
[0210] In the process of starting the target cloud game in the embodiment of the present application, there is only the process of allocating the identification information of the target cloud server, and this process can be realized by data transmission inside the terminal, and the efficiency of data transmission can reach the millisecond level. The terminal starts the target cloud game, which can be regarded as the stage of starting the target cloud game, during which there are no other interactive processes and delays. The target cloud server connected by the terminal is a cloud server that has pre-started the cloud game, which can speed up the startup efficiency of the cloud game.
[0211] Since cloud games have been pre-launched on the cloud server, that is, cloud games are already running on the cloud server, when a user wants to play a cloud game, the user only needs to click on the game through the client. After a short connection process between the terminal and the cloud server, the client directly displays the console interface of the cloud game or the content screen of the cloud game. The user can directly operate the game input device to interact with the game program without waiting in between.
[0212] When users play cloud games, they need to store the user data generated by them during the process of playing cloud games. This embodiment of the application is implemented by cloud archiving. This embodiment of the application uses a distributed storage architecture of the cloud shared by cloud servers to achieve cloud archiving of user data using a cloud disk mode. The distributed storage architecture of the cloud shared by cloud servers can improve the storage efficiency of user data.
[0213] When the user wants to exit the target cloud game, he can trigger the exit request by performing the target operation on the terminal.
[0214] S316. The terminal responds to the exit request for the target cloud game and sends the exit request to the target cloud server.
[0215] Specifically, the terminal sends the exit request to the target cloud server in response to the exit request for the target cloud game.
[0216] S317: The target cloud server receives the exit request.
[0217] S318. The target cloud server returns target pre-start information for the exit request to the terminal.
[0218] S319: The terminal receives target pre-start information.
[0219] S320: The terminal updates the pre-start information in the resource storage.
[0220] Specifically, the terminal updates the pre-start information in the resource storage in response to the target cloud server returning the target pre-start information for the exit request.
[0221] For example, Figure 6 As shown, the terminal sends an exit request to cloud server A through the client. The exit request can carry the service identification information of the target cloud game and the server identification information of the target cloud server. For example, the exit request carries the service identification information of cloud game B and the server identification information of cloud server A. Cloud server A returns the target pre-start information corresponding to the exit request to the terminal so that the terminal updates the pre-start information in the resource storage. In this process, cloud server A can directly return the target pre-start information to the resource storage, or return the target pre-start information to the background service program, and then store it in the resource storage through the background service program.
[0222] The following describes in detail the process of storing the target pre-start information in the resource storage device by the terminal.
[0223] like Fig. 9 As shown, the user can perform an exit operation for the target cloud game, and the client responds to the exit operation and triggers an exit request. The client sends an exit request to the background service program. The background service program receives the exit request and sends the exit request to the target cloud server. The target cloud server receives the exit request. Based on the exit request, the target cloud server sends the target pre-start information to the background service program, the background service program interacts with the resource storage, and the background service program stores the target pre-start information in the resource storage. The terminal controls the resource storage to return the storage success information for the target pre-start information to the background service program, and the background service program returns the exit success information to the client.
[0224] After receiving the exit request, the target cloud server disconnects the connection port between the target cloud server and the client. After the client exits the cloud game, the cloud game can continue to run on the cloud server. The target pre-start information is recycled to the resource storage through the background service program to facilitate cloud game resource scheduling and improve exit efficiency.
[0225] The embodiments of the present application can send a pre-start request for a cloud service to a cloud server; receive pre-start information returned by the cloud server in response to the pre-start request, the pre-start information including a mapping relationship between service identification information of a pre-started cloud service pre-started in the cloud server and cloud server identification information of the cloud server; in response to a start request for a target cloud service, determine target service identification information that matches the reference identification information carried in the start request; determine target cloud server identification information of the target cloud service based on the mapping relationship and the target service identification information; establish a connection with the target cloud server based on the target cloud server identification information to start the target cloud service; because the embodiments of the present application can determine the cloud server identification information of the target cloud service based on the pre-start information for the pre-start request when starting the target cloud service, it is possible to establish a connection with the target cloud server based on the cloud server identification information, thereby improving the startup efficiency of the cloud service.
[0226] In order to better implement the above method, an embodiment of the present application also provides a cloud service control device, which can be integrated in a computer device, which is a terminal, and the terminal can include a tablet computer, a laptop computer and / or a personal computer, etc.
[0227] For example, Fig.10 As shown, the cloud service control device may include a first sending unit 301, a first receiving unit 302, a responding unit 303, a determining unit 304, a first establishing unit 305, a storage unit 306 and a first exiting unit 307, as follows:
[0228] (1) a first sending unit 301;
[0229] The first sending unit 301 may be configured to send a pre-start request for a cloud service to a cloud server.
[0230] In some embodiments, the first sending unit 301 can be specifically used to obtain the amount of pre-start information currently stored from the resource storage; when the amount of information is less than or equal to a preset threshold, send a pre-start request to the cloud server.
[0231] In some embodiments, the first sending unit 301 may be specifically configured to obtain a preset pre-start frequency value for the pre-start information; and send a pre-start request to the cloud server based on the preset pre-start frequency value.
[0232] In some embodiments, the first sending unit 301 may be specifically used to obtain historical usage data for the cloud service; and based on the historical usage data, send a pre-start request for the cloud service to the cloud server.
[0233] (2) a first receiving unit 302;
[0234] The first receiving unit 302 can be used to receive pre-start information returned by the cloud server in response to the pre-start request, where the pre-start information includes a mapping relationship between service identification information of a pre-start cloud service pre-started in the cloud server and cloud server identification information of the cloud server.
[0235] (3) Response unit 303;
[0236] The responding unit 303 may be configured to respond to a start request for a target cloud service and determine target service identification information that matches the reference identification information carried in the start request.
[0237] The responding unit 303 may be specifically configured to respond to a start request for a target cloud service by selecting target service identification information matching the reference identification information carried in the start request from a resource storage device.
[0238] (4) determining unit 304;
[0239] The determining unit 304 may be configured to determine the target cloud server identification information of the target cloud service according to the mapping relationship and the target service identification information.
[0240] (5) a first establishing unit 305;
[0241] The first establishing unit 305 may be configured to establish a connection with a target cloud server based on the target cloud server identification information to start a target cloud service.
[0242] (6) storage unit 306;
[0243] The storage unit 306 may be used to store the pre-start information in the resource storage.
[0244] (7) a first exit unit 307;
[0245] The first exit unit 307 can be used to respond to the exit request for the target cloud service by sending the exit request to the target cloud server; in response to the target cloud server returning the target pre-start information for the exit request, update the pre-start information in the resource storage.
[0246] In some embodiments, the terminal includes a client and a background service program corresponding to the client; the first exit unit 307 can be specifically used to respond to the exit request for the target cloud service through the client, and send the exit request to the background service program, so that the background service program sends the exit request to the target cloud server; the background service program responds to the target cloud server returning the target pre-start information for the exit request, and updates the pre-start information in the resource storage.
[0247] As can be seen from the above, the first sending unit 301 of the embodiment of the present application can be used to send a pre-start request for a cloud service to a cloud server; the first receiving unit 302 can be used to receive the pre-start information returned by the cloud server in response to the pre-start request, and the pre-start information includes a mapping relationship between the service identification information of the pre-start cloud service pre-started in the cloud server and the cloud server identification information of the cloud server; the response unit 303 can be used to respond to the start request for the target cloud service and determine the target service identification information that matches the reference identification information carried in the start request; the determination unit 304 can be used to determine the target cloud server identification information of the target cloud service based on the mapping relationship and the target service identification information; the first establishment unit 305 can be used to establish a connection with the target cloud server based on the target cloud server identification information to start the target cloud service; because the embodiment of the present application can determine the cloud server identification information of the target cloud service based on the pre-start information for the pre-start request when starting the target cloud service, it is possible to establish a connection with the target cloud server based on the cloud server identification information, thereby improving the startup efficiency of the cloud service.
[0248] In order to better implement the above method, an embodiment of the present application also provides a cloud service control device, which can be integrated in a computer device, which is a terminal, and the terminal can include a tablet computer, a laptop computer and / or a personal computer, etc.
[0249] For example, Fig.11 As shown, the cloud service control device may include a second receiving unit S401, a pre-starting unit S402, a generating unit S403, a second sending unit S404, and a second establishing unit S405, as follows:
[0250] (1) a second receiving unit S401;
[0251] The second receiving unit S401 may be configured to receive a pre-start request for a cloud service sent by a terminal.
[0252] In some embodiments, the second receiving unit S401 can be specifically used to receive a pre-start request for a cloud service sent by a terminal based on the amount of information in the pre-start information; or, receive a pre-start request for a cloud service sent by a terminal based on a preset pre-start frequency value of the pre-start information.
[0253] (2) Pre-start unit S402;
[0254] The pre-start unit S402 may be configured to pre-start the cloud service based on the pre-start request to determine service identification information of the pre-started cloud service and cloud server identification information of a cloud server corresponding to the pre-started cloud service.
[0255] (3) generating unit S403;
[0256] The generating unit S403 may be configured to generate pre-start information based on a mapping relationship between the service identification information and the cloud server identification information.
[0257] (4) second sending unit S404;
[0258] The second sending unit S404 may be configured to send pre-start information to the terminal.
[0259] (5) second establishing unit S405;
[0260] The second establishing unit S405 may be configured to establish a connection with the terminal in response to a connection request sent by the terminal based on the pre-start information, so that the terminal starts the target cloud service.
[0261] (6) Second exit unit S406;
[0262] The second exit unit S406 can be used to receive an exit request for a target cloud service sent by a terminal through a background service program; and send target pre-start information based on the exit request to the background service program so that the background service program updates the pre-start information in the resource storage of the terminal.
[0263] The second receiving unit S401 of the embodiment of the present application can be used to receive a pre-start request for a cloud service sent by a terminal; the pre-start unit S402 can be used to pre-start the cloud service based on the pre-start request to determine the service identification information of the cloud service after the pre-start and the cloud server identification information of the cloud server corresponding to the cloud service after the pre-start; the generating unit S403 can be used to generate the pre-start information based on the mapping relationship between the service identification information and the cloud server identification information; the second sending unit S404 can be used to send the pre-start information to the terminal; the second establishing unit S405 can be used to establish a connection with the terminal in response to a connection request sent by the terminal based on the pre-start information, so that the terminal starts the target cloud service; because the embodiment of the present application can pre-start the cloud service after receiving the pre-start request and generate the pre-start information, in this way, when the terminal starts the target cloud service, it can establish a connection with the target cloud server based on the pre-start information, thereby improving the startup efficiency of the cloud service.
[0264] The present application also provides a computer device, such as Fig.12 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0265] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Fig.12 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0266] The processor 401 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and computer programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0267] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0268] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0269] The computer device may further include an input unit 404, which may be used to receive input digital or character information communications and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0270] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 will run the computer programs stored in the memory 402, thereby realizing various functions, as follows:
[0271] Send a pre-start request for a cloud service to a cloud server; receive pre-start information returned by the cloud server in response to the pre-start request, the pre-start information including a mapping relationship between service identification information of a pre-started cloud service pre-started in the cloud server and cloud server identification information of the cloud server; in response to a start request for a target cloud service, determine target service identification information that matches reference identification information carried in the start request; determine target cloud server identification information of the target cloud service based on the mapping relationship and the target service identification information; and establish a connection with the target cloud server based on the target cloud server identification information to start the target cloud service.
[0272] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0273] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0274] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute any cloud service control method provided in the embodiment of the present application.
[0275] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0276] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0277] Since the instructions stored in the computer-readable storage medium can execute the steps in any cloud service control method provided in the embodiments of the present application, the beneficial effects that can be achieved by any cloud service control method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0278] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various optional implementations provided in the above embodiments.
[0279] The above is a detailed introduction to a cloud service control method and related devices provided in an embodiment of the present application. The related devices include a cloud service control device, a computer device and a computer-readable storage medium. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A cloud service control method, It is characterized in that Applied to a terminal, the method comprises: Sending a pre-start request for the cloud service to the cloud server; Receiving pre-start information returned by the cloud server in response to the pre-start request, the pre-start information including a mapping relationship between service identification information of a post-pre-start cloud service pre-started in the cloud server and cloud server identification information of the cloud server; In response to a start request for a target cloud service, determining target service identification information that matches reference identification information carried in the start request; Determine the target cloud server identification information of the target cloud service according to the mapping relationship and the target service identification information; Based on the target cloud server identification information, a connection is established with the target cloud server to start the target cloud service.
2. The cloud service control method according to claim 1, It is characterized in that After receiving the pre-start information returned by the cloud server in response to the pre-start request, the method further includes: Storing the pre-start information in a resource storage; The step of determining, in response to a start request for a target cloud service, target service identification information that matches the reference identification information carried in the start request comprises: in response to a start request for the target cloud service, selecting, from the resource storage device, target service identification information that matches the reference identification information carried in the start request.
3. The cloud service control method according to claim 2, It is characterized in that After establishing a connection with the target cloud server based on the target cloud server identification information to start the target cloud service, the method further includes: In response to a logout request for the target cloud service, sending the logout request to the target cloud server; In response to the target cloud server returning target pre-start information for the exit request, the pre-start information in the resource storage is updated.
4. The cloud service control method according to claim 3, It is characterized in that The terminal includes a client and a background service program corresponding to the client; The step of sending the exit request to the target cloud server in response to the exit request to the target cloud service includes: In response to the exit request for the target cloud service, the client sends the exit request to the background service program, so that the background service program sends the exit request to the target cloud server; The updating of the pre-start information in the resource storage device in response to the target cloud server returning the target pre-start information for the exit request comprises: updating the pre-start information in the resource storage device in response to the target cloud server returning the target pre-start information for the exit request through the background service program.
5. The cloud service control method according to claim 2, It is characterized in that The sending a pre-start request for the cloud service to the cloud server includes: Acquire the information quantity of the pre-start information currently stored in the resource storage; When the amount of information is less than or equal to a preset threshold, the pre-start request is sent to the cloud server.
6. The cloud service control method according to claim 2, It is characterized in that The sending a pre-start request for the cloud service to the cloud server includes: Obtaining a preset pre-start frequency value for the pre-start information; Based on the preset pre-start frequency value, the pre-start request is sent to the cloud server.
7. The cloud service control method according to claim 2, It is characterized in that The sending a pre-start request for the cloud service to the cloud server includes: Obtain historical usage data for cloud services; Based on the historical usage data, a pre-start request for the cloud service is sent to the cloud server.
8. A cloud service control method, It is characterized in that Applied to a cloud server, the method comprises: The receiving terminal sends a pre-start request for the cloud service; Pre-starting the cloud service based on the pre-start request to determine service identification information of the pre-started cloud service and cloud server identification information of a cloud server corresponding to the pre-started cloud service; Generate pre-start information based on the mapping relationship between the service identification information and the cloud server identification information; Sending the pre-start information to the terminal; In response to a connection request sent by the terminal based on the pre-start information, a connection is established with the terminal so that the terminal starts a target cloud service.
9. The cloud service control method according to claim 8, It is characterized in that The terminal includes a background service program; after the connection request sent by the terminal based on the pre-start information is established with the terminal so that the terminal starts the target cloud service, the method includes: Receiving a request for exiting the target cloud service sent by the terminal through the background service program; The target pre-start information based on the exit request is sent to the background service program, so that the background service program updates the pre-start information in the resource storage of the terminal.
10. The cloud service control method according to claim 8, It is characterized in that The receiving a pre-start request for a cloud service sent by the terminal includes: receiving a pre-start request for the cloud service sent by the terminal based on the amount of information in the pre-start information; or, A pre-start request for the cloud service is received, which is sent by the terminal based on a preset pre-start frequency value of the pre-start information.
11. A cloud service control device, It is characterized in that include: A first sending unit, configured to send a pre-start request for a cloud service to a cloud server; A first receiving unit is configured to receive pre-start information returned by the cloud server in response to the pre-start request, wherein the pre-start information includes a mapping relationship between service identification information of a post-pre-start cloud service pre-started in the cloud server and cloud server identification information of the cloud server; A response unit, configured to respond to a start request for a target cloud service and determine target service identification information that matches the reference identification information carried in the start request; a determining unit, configured to determine the target cloud server identification information of the target cloud service according to the mapping relationship and the target service identification information; The first establishing unit is used to establish a connection with a target cloud server based on the target cloud server identification information to start the target cloud service.
12. A cloud service control device, It is characterized in that include: A second receiving unit, configured to receive a pre-start request for a cloud service sent by a terminal; a pre-starting unit, configured to pre-start the cloud service based on the pre-starting request, so as to determine service identification information of the pre-started cloud service and cloud server identification information of a cloud server corresponding to the pre-started cloud service; A generating unit, configured to generate pre-start information based on a mapping relationship between the service identification information and the cloud server identification information; A second sending unit, configured to send the pre-start information to the terminal; The second establishing unit is used to establish a connection with the terminal in response to a connection request sent by the terminal based on the pre-start information, so that the terminal starts a target cloud service.
13. A computer device, It is characterized in that It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the cloud service control method according to any one of claims 1 to 10.
14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the cloud service control method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Food managing method and food managing system
CN104457133A
Service request processing method and device, storage medium and terminal
CN110401706A
Information pushing method and system
CN110968772A
Cloud service calling method and device
CN111552568A
Method and system for providing a pre-launched virtual desktop session
IN201744001865A
