CN111790159B - Data processing method, device, equipment and computer readable storage medium - Google Patents

Data processing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111790159B
CN111790159B CN201911330401.2A CN201911330401A CN111790159B CN 111790159 B CN111790159 B CN 111790159B CN 201911330401 A CN201911330401 A CN 201911330401A CN 111790159 B CN111790159 B CN 111790159B
Authority
CN
China
Prior art keywords
cloud
information
instances
terminal
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911330401.2A
Other languages
Chinese (zh)
Other versions
CN111790159A (en
Inventor
杜晶
林顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yaji Software Co Ltd
Original Assignee
Xiamen Yaji Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yaji Software Co Ltd filed Critical Xiamen Yaji Software Co Ltd
Priority to CN201911330401.2A priority Critical patent/CN111790159B/en
Publication of CN111790159A publication Critical patent/CN111790159A/en
Application granted granted Critical
Publication of CN111790159B publication Critical patent/CN111790159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/71Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory

Abstract

The embodiment of the application provides a data processing method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: after the GS is registered to a region server to which the GS belongs, sending configuration information of the GS to the region server, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud end matched with the GS; and establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances. According to the method, the GS is respectively subjected to data interaction with the instance and the terminal through the micro-service, so that the terminal runs the cloud game, when the cloud game runs normally, operation and maintenance personnel can operate and maintain the micro-service, and the flexibility of the operation and maintenance service is improved.

Description

Data processing method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for data processing.
Background
The traditional game is that a game client is installed on a local terminal, and then the game is run through the game client; the cloud game does not need to install a game client at a local terminal, the game client runs at the cloud end, then the cloud end transmits pictures and sound of the running game to the local terminal, and a user operates and experiences the game through the local terminal. In the prior art, a cloud game scheme adopts a C/S (Client/Server) mode, services in the C/S mode are configured with relevant information of each service in advance, and each service is started when a game runs, and provides services according to the configured relevant information. The C/S mode needs to pre-configure the relevant information of the service, and the flexibility of the later operation and maintenance service is low, for example, the relevant information of each service is centrally stored in a central database, and when the relevant information of one service is updated, other services need to be stopped until the operation and maintenance service is finished.
Disclosure of Invention
The present application provides a method, an apparatus, a device, and a computer-readable storage medium for data processing, which are used to solve the problem of how to improve flexibility of operation and maintenance services.
In a first aspect, the present application provides a data processing method, applied to an application component GS, including:
after the GS is registered to a region server to which the GS belongs, sending configuration information of the GS to the region server, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud end matched with the GS;
and establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances.
Optionally, examples include at least one of a cloud handset, a cloud PC.
Optionally, establishing a connection between instances running on the cloud corresponding to the GS, and performing data interaction with a terminal indicated in the scheduling instruction, including:
receiving the audio and video of the cloud game sent by the example;
encoding the audio and video of the cloud game to obtain encoded data;
packaging the coded data to obtain a first data packet;
and sending the first data packet to the terminal.
Optionally, establishing connection between instances running on the cloud corresponding to the GS, and performing data interaction with a terminal indicated in the scheduling instruction, includes:
receiving a second data packet sent by the terminal;
decoding the second data packet to obtain a control instruction;
and sending the control instruction to the example so as to enable the example to simulate and control the cloud game according to the control instruction.
Optionally, the function information of the microservice provided by the GS includes at least one of:
the method comprises the steps of encoding audio and video of the cloud game, packaging encoded data and decoding a data packet comprising a control instruction.
Optionally, the information of the instance includes function information of the micro-service provided by the instance, including at least one of:
the method comprises the steps of running the running environment of the cloud game, sending the audio and video of the cloud game to the GS, and simulating and controlling the cloud game according to a control instruction.
Optionally, sending state information to the regional server, where the state information is used to represent a state change of the microservice provided by at least one of the GS and the instances in the operation process, and the state information includes information that the microservice is abnormal;
sending the status information to a regional server, comprising:
and sending the information of the micro-service abnormity to the area server, wherein the information is used for enabling the area server to call other GS to replace the GS and/or call other instances to replace the instances.
In a second aspect, the present application provides an apparatus for data processing, which is applied to an application component GS, and includes:
the first processing module is used for sending configuration information of the GS to the regional server after the GS is registered to the regional server to which the GS belongs, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud matched with the GS;
and the second processing module is used for establishing connection between the instances running on the cloud matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances.
Optionally, examples include at least one of a cloud handset, a cloud PC.
Optionally, the second processing module is specifically configured to receive an audio/video of the cloud game sent by the instance; encoding the audio and video of the cloud game to obtain encoded data; packaging the coded data to obtain a first data packet; and sending the first data packet to the terminal.
Optionally, the second processing module is specifically configured to receive a second data packet sent by the terminal; decoding the second data packet to obtain a control instruction; and sending the control instruction to the example so as to enable the example to simulate and control the cloud game according to the control instruction.
Optionally, the function information of the microservice provided by the GS includes at least one of:
the method comprises the steps of encoding audio and video of the cloud game, packaging encoded data and decoding a data packet comprising a control instruction.
Optionally, the information of the instance includes function information of the microservice provided by the instance, including at least one of:
the method comprises the steps of running the running environment of the cloud game, sending the audio and video of the cloud game to the GS, and simulating and controlling the cloud game according to a control instruction.
Optionally, sending state information to the regional server, where the state information is used to represent a state change of the microservice provided by at least one of the GS and the instances in the operation process, and the state information includes information that the microservice is abnormal;
transmitting the status information to the area server, comprising:
and sending the information of the micro-service abnormity to the area server, wherein the information is used for enabling the area server to call other GS to replace the GS and/or call other instances to replace the instances.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a bus;
a bus for connecting the processor and the memory;
a memory for storing operating instructions;
and the processor is used for executing the data processing method of the first aspect of the application by calling the operation instruction.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program for performing the method of data processing of the first aspect of the present application.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
after the GS is registered to a region server to which the GS belongs, sending configuration information of the GS to the region server, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud end matched with the GS; and establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances. Therefore, the GS is respectively subjected to data interaction with the instance and the terminal through the micro-service, so that the terminal runs the cloud game, when the terminal runs the cloud game, the connection between the instance and the terminal is interrupted due to the abnormity of the instance, the normal instance is redistributed by the regional server, the connection state between the instance and the terminal before interruption can be recovered, when the cloud game runs normally, the operation and maintenance personnel can operate and maintain the micro-service, and the flexibility of the operation and maintenance service is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another data processing method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
For better understanding and description of the embodiments of the present application, some technical terms used in the embodiments of the present application will be briefly described below.
Cloud: the cloud is a software resource, application and service platform built on the network based on an application virtualization technology.
Cloud cell-phone: a Cloud Phone (Cloud Phone) is a simulated Phone that applies a Cloud computing technology to a network terminal service and implements a Cloud service through a Cloud server.
Cloud PC: namely, the cloud computer runs in a cloud server on a network through a virtualization technology, and provides resources such as an operating system desktop, application, hardware and the like to a terminal user in a service mode of service according to needs and elastic distribution.
P2P: P2P (Peer-to-Peer) is a network technology, and the core idea of the P2P architecture is that each node can act as both a client and a server.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The embodiment of the present application provides a data processing method, which is applied to an application component GS, and a flowchart of the method is shown in fig. 1, where the method includes:
s101, after the GS is registered to a region server to which the GS belongs, sending configuration information of the GS to the region server, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud end matched with the GS.
Optionally, the operation and maintenance personnel pre-configure the GS, the configured GS is started and automatically registered to the regional server to which the GS belongs, then the GS sends the configuration information of the GS to the regional server, and the regional server stores the received configuration information of the GS in the database.
Optionally, the instance comprises at least one of a cloud handset and a cloud PC, wherein a plurality of cloud handset instances or a plurality of cloud PC instances run in respective cloud server instances.
Alternatively, the GS (Game Service) may be an application component running in the cloud, the GS may be an application component in a cloud mobile phone or a cloud PC, and the GS may also be an application component located at the same level as the cloud mobile phone or the cloud PC.
Alternatively, a microservice is an application that implements a function.
Optionally, the micro service provided by the GS, the micro service provided by the cloud mobile phone, and the micro service provided by the cloud PC are services predefined by an operation and maintenance worker, the operation and maintenance worker defines functions of the micro service in advance to obtain function information of the micro service, the function information of the micro service is description of functions that can be realized by the micro service, and the function information of the micro service includes the function information of the micro service provided by the GS, the function information of the micro service provided by the cloud mobile phone, and the function information of the micro service provided by the cloud PC.
Optionally, the function information of the microservice provided by the GS includes at least one of:
the method comprises the steps of encoding audio and video of the cloud game, packaging encoded data and decoding a data packet comprising a control instruction.
Optionally, the instance information includes function information of the micro-service provided by the instance, including at least one of:
the method comprises the steps of running the running environment of the cloud game, sending the audio and video of the cloud game to the GS, and simulating and controlling the cloud game according to a control instruction.
And S102, establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances.
Optionally, the terminal of the game user requests service from the dispatch center; according to an IP (Internet Protocol) address of the terminal, the dispatching center determines a region to which the terminal belongs and an operator to which the terminal belongs; according to the region to which the terminal belongs and the operator to which the terminal belongs, the scheduling center determines a region server matched with the terminal, and feeds back the IP address of the region server to the terminal; the terminal requests service from the regional server; the area server determines a GS (service gateway) providing service for the terminal by inquiring a database, and sends a scheduling instruction to the GS, wherein the scheduling instruction indicates the GS to establish connection with the terminal; the area server sends the IP address of the GS to the terminal for the terminal to establish a connection with the GS.
Optionally, the terminal of the game user runs a mobile phone game, and the corresponding instance running on the cloud is a cloud mobile phone; the terminal of the game user runs a PC game, and the corresponding instance running on the cloud is a cloud PC.
In the embodiment of the application, after the GS is registered to a local server to which the GS belongs, the configuration information of the GS is sent to the local server, wherein the configuration information comprises the function information of the microservice provided by the GS and the information of the instances running on the cloud end matched with the GS; and establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances. Therefore, the GS is respectively subjected to data interaction with the instance and the terminal through the micro-service, so that the terminal runs the cloud game, when the terminal runs the cloud game, the connection between the instance and the terminal is interrupted due to the abnormity of the instance, the normal instance is redistributed by the regional server, the connection state between the instance and the terminal before interruption can be recovered, when the cloud game runs normally, the operation and maintenance personnel can operate and maintain the micro-service, and the flexibility of the operation and maintenance service is improved.
Optionally, establishing a connection between instances running on the cloud corresponding to the GS, and performing data interaction with a terminal indicated in the scheduling instruction, including:
receiving the audio and video of the cloud game sent by the example;
encoding the audio and video of the cloud game to obtain encoded data;
packaging the coded data to obtain a first data packet;
and sending the first data packet to the terminal.
Optionally, the cloud mobile phone or the cloud PC sends the audio and video of the cloud game to the GS, the GS encodes the audio and video of the cloud game to obtain encoded data, encapsulates the encoded data to generate a first data packet, and sends the first data packet to the terminal of the game user in a P2P manner, the terminal of the game user decodes the first data packet, plays the decoded data, and the terminal of the game user displays the picture of the cloud game.
Optionally, establishing connection between instances running on a cloud corresponding to the GS, and performing data interaction with a terminal indicated in the scheduling instruction, includes:
receiving a second data packet sent by the terminal;
decoding the second data packet to obtain a control instruction;
and sending the control instruction to the example so as to enable the example to simulate and control the cloud game according to the control instruction.
Optionally, the terminal of the game user encodes the control instruction to obtain encoded data, encapsulates the encoded data to generate a second data packet, sends the second data packet to the GS in a P2P manner, decodes the received second data packet to obtain the control instruction, and sends the control instruction to the cloud mobile phone or the cloud PC by the GS, wherein the cloud mobile phone or the cloud PC simulates and controls the cloud game according to the control instruction.
Optionally, sending state information to the regional server, where the state information is used to represent a state change of the microservice provided by at least one of the GS and the instances in the operation process, and the state information includes information that the microservice is abnormal;
transmitting the status information to the area server, comprising:
and sending the information of the micro-service abnormity to the area server, wherein the information is used for enabling the area server to call other GS to replace the GS and/or call other instances to replace the instances.
Optionally, when the terminal of the game user runs the cloud game, the GS connected with the terminal of the game user is abnormal, and the area server reallocates a new GS to replace the GS with the abnormality. When the terminal of the game user runs the cloud game, the cloud mobile phone or the cloud PC corresponding to the GS connected with the terminal of the game user is abnormal, and the regional server reallocates a new cloud mobile phone or a new cloud PC to replace the abnormal cloud mobile phone or cloud PC. When the terminal of the game user runs the cloud game, the GS connected with the terminal of the game user is abnormal, the cloud mobile phone or the cloud PC corresponding to the GS connected with the terminal of the game user is abnormal at the same time, and the area server redistributes a new GS and a new cloud mobile phone or a new cloud PC to replace the abnormal GS and the abnormal cloud mobile phone or the abnormal cloud PC.
Optionally, when the terminal of the game user runs the cloud game, the connection between the cloud mobile phone or the cloud PC and the terminal of the game user is interrupted due to an abnormality of the cloud mobile phone or the cloud PC, and the connection state between the cloud mobile phone or the cloud PC and the terminal of the game user before interruption can be restored by reallocating the normal cloud mobile phone or the normal cloud PC to the area server.
Optionally, when the cloud game runs normally, the operation and maintenance personnel operate and maintain the micro service provided by the GS, the micro service provided by the cloud mobile phone and the micro service provided by the cloud PC, for example, the micro service provided by the GS, the micro service provided by the cloud mobile phone and the micro service provided by the cloud PC are increased, the micro service provided by the GS, the micro service provided by the cloud mobile phone and the micro service provided by the cloud PC are deleted, the micro service provided by the GS, the micro service provided by the cloud mobile phone and the micro service provided by the cloud PC are predefined, and the flexibility of the operation and maintenance service is improved.
Another data processing method is provided in an embodiment of the present application, where a flowchart of the method is shown in fig. 2, and the method includes:
s201, the terminal of the game user sends a first service request to the dispatching center.
Optionally, the first service request includes an IP address of the terminal of the game user, and the first service request is used to request the dispatch center to allocate the area server to the terminal of the game user.
S202, according to the IP address of the terminal of the game user included in the first service request, the scheduling center determines the region to which the terminal of the game user belongs and the operator to which the terminal of the game user belongs, and according to the region to which the terminal of the game user belongs and the operator to which the terminal of the game user belongs, the scheduling center determines the IP address of the area server matched with the terminal of the game user.
S203, the IP address of the area server is fed back to the terminal of the game user.
S204, the terminal of the game user sends a second service request to the area server.
Optionally, the second service request is for requesting the zone server to allocate the GS to the terminal of the game user.
And S205, according to the second service request, the area server determines the GS for providing service for the terminal of the game user by inquiring the database.
S206, the area server sends a scheduling instruction to the GS, wherein the scheduling instruction indicates the GS to establish connection with the terminal of the game user.
S207, the area server sends the IP address of the GS to the terminal of the game user, so that the terminal of the game user is connected with the GS.
And S208, the GS receives a scheduling instruction sent by the regional server, the GS is connected with the cloud mobile phone or the cloud PC matched with the GS, and the GS and the cloud mobile phone or the cloud PC perform data interaction.
S209, establishing connection between the GS and the terminal of the game user, and performing data interaction between the GS and the terminal of the game user.
Optionally, the GS receives the audio and video of the cloud game sent by the cloud mobile phone or the cloud PC; the GS encodes the audio and video of the cloud game to obtain encoded data, the GS packages the encoded data to obtain a first data packet, and the GS sends the first data packet to a terminal of a game user. The GS receives a second data packet sent by the terminal of the game user, decodes the second data packet to obtain a control instruction, and sends the control instruction to the cloud mobile phone or the cloud PC so that the cloud mobile phone or the cloud PC can simulate and control the cloud game according to the control instruction.
Based on the same inventive concept, the embodiment of the present application further provides a data processing apparatus, which is applied to the application component GS, and a schematic structural diagram of the apparatus is shown in fig. 3, where the data processing apparatus 60 includes a first processing module 601 and a second processing module 602.
The first processing module 601 is configured to send configuration information of the GS to a local server after the GS is registered in the local server to which the GS belongs, where the configuration information includes function information of a microservice provided by the GS and information of an instance running on a cloud matched with the GS;
the second processing module 602 is configured to establish a connection between instances running on the cloud matched with the GS according to the function information of the micro service, the information of the instances, and the scheduling instruction sent to the GS by the area server, and perform data interaction with the terminal indicated in the scheduling instruction, so as to enable the terminal to run the cloud game through the instances.
Optionally, examples include at least one of a cloud handset, a cloud PC.
Optionally, the second processing module 602 is specifically configured to receive an audio/video of the cloud game sent by the instance; encoding the audio and video of the cloud game to obtain encoded data; packaging the coded data to obtain a first data packet; and sending the first data packet to the terminal.
Optionally, the second processing module 602 is specifically configured to receive a second data packet sent by the terminal; decoding the second data packet to obtain a control instruction; and sending the control instruction to the example so as to enable the example to simulate and control the cloud game according to the control instruction.
Optionally, the function information of the microservice provided by the GS includes at least one of:
the method comprises the steps of encoding audio and video of the cloud game, packaging encoded data and decoding a data packet comprising a control instruction.
Optionally, the information of the instance includes function information of the microservice provided by the instance, including at least one of:
the method comprises the steps of running the running environment of the cloud game, sending the audio and video of the cloud game to the GS, and simulating and controlling the cloud game according to a control instruction.
Optionally, sending state information to the regional server, where the state information is used to represent a state change of the microservice provided by at least one of the GS and the instances in the operation process, and the state information includes information that the microservice is abnormal;
transmitting the status information to the area server, comprising:
and sending the information of the micro-service abnormity to the area server, wherein the information is used for enabling the area server to call other GS to replace the GS and/or call other instances to replace the instances.
The application of the embodiment of the application has at least the following beneficial effects:
after the GS is registered to a region server to which the GS belongs, sending configuration information of the GS to the region server, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud end matched with the GS; and establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances. Therefore, the GS is respectively subjected to data interaction with the instance and the terminal through the micro-service, so that the terminal runs the cloud game, when the terminal runs the cloud game, the abnormal occurrence of the instance causes the interruption of the connection between the instance and the terminal, the area server redistributes the normal instance, the connection state between the instance and the terminal before the interruption can be recovered, when the cloud game runs normally, the operation and maintenance personnel can operate and maintain the micro-service, and the flexibility of the operation and maintenance service is improved.
For the content that is not described in detail in the data processing apparatus provided in the embodiment of the present application, reference may be made to the data processing method provided in the foregoing embodiment, and the beneficial effects that the data processing apparatus provided in the embodiment of the present application can achieve are the same as the data processing method provided in the foregoing embodiment, and are not described herein again.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, a schematic structural diagram of the electronic device is shown in fig. 4, the electronic device 7000 includes at least one processor 7001, a memory 7002 and a bus 7003, and the at least one processor 7001 is electrically connected to the memory 7002; the memory 7002 is configured to store at least one computer executable instruction, and the processor 7001 is configured to execute the at least one computer executable instruction so as to execute the steps of any one of the methods of data processing as provided in any one of the embodiments or any one of the alternative embodiments of the present application.
Further, the processor 7001 may be an FPGA (Field-Programmable Gate Array) or other devices having logic processing capability, such as an MCU (micro controller Unit) and a CPU (Central processing Unit).
The application of the embodiment of the application has at least the following beneficial effects:
after the GS is registered to a region server to which the GS belongs, sending configuration information of the GS to the region server, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud end matched with the GS; and establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances. Therefore, the GS is respectively subjected to data interaction with the instance and the terminal through the micro-service, so that the terminal runs the cloud game, when the terminal runs the cloud game, the connection between the instance and the terminal is interrupted due to the abnormity of the instance, the normal instance is redistributed by the regional server, the connection state between the instance and the terminal before interruption can be recovered, when the cloud game runs normally, the operation and maintenance personnel can operate and maintain the micro-service, and the flexibility of the operation and maintenance service is improved.
Based on the same inventive concept, the embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program is used to implement, when executed by a processor, any one of the embodiments of the present application or any one of the steps of the data processing method.
Embodiments of the present application provide computer-readable storage media including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a readable storage medium includes any medium that can store or transfer information in a form readable by a device (e.g., a computer).
The application of the embodiment of the application has at least the following beneficial effects:
after the GS is registered to a region server to which the GS belongs, sending configuration information of the GS to the region server, wherein the configuration information comprises function information of the microservice provided by the GS and information of an instance running on a cloud end matched with the GS; and establishing connection between the instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the area server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run the cloud game through the instances. Therefore, the GS is respectively subjected to data interaction with the instance and the terminal through the micro-service, so that the terminal runs the cloud game, when the terminal runs the cloud game, the connection between the instance and the terminal is interrupted due to the abnormity of the instance, the normal instance is redistributed by the regional server, the connection state between the instance and the terminal before interruption can be recovered, when the cloud game runs normally, the operation and maintenance personnel can operate and maintain the micro-service, and the flexibility of the operation and maintenance service is improved.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the aspects specified in the block or blocks of the block diagrams and/or flowchart illustrations disclosed herein.
Those of skill in the art will appreciate that the various operations, methods, steps in the processes, acts, or solutions discussed in this application can be interchanged, modified, combined, or eliminated. Further, other steps, measures, or schemes in various operations, methods, or flows that have been discussed in this application can be alternated, altered, rearranged, broken down, combined, or deleted. Further, the steps, measures, and schemes in the various operations, methods, and flows disclosed in the present application in the prior art can also be alternated, modified, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (9)

1. A data processing method is applied to an application component GS, and is characterized by comprising the following steps:
after the GS is registered to a regional server to which the GS belongs, sending configuration information of the GS to the regional server, wherein the configuration information comprises function information of micro services provided by the GS and information of instances running on a cloud end matched with the GS;
according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the regional server, establishing connection between the instances running on the cloud end matched with the GS, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run a cloud game through the instances; the GS is an application component in the instance or an application component at the same level as the instance;
sending state information to the regional server, wherein the state information is used for representing state change of the micro-service provided by at least one of the GS and the instances in the operation process, and the state information comprises information that the micro-service is abnormal;
the sending the status information to the area server includes:
and sending the information that the micro-service is abnormal to the regional server, so that the regional server calls other GS to replace the GS and/or calls other instances to replace the instances.
2. The method of claim 1, wherein the instance comprises at least one of a cloud handset, a cloud PC.
3. The method of claim 1, wherein establishing connections between instances running on a cloud matched to the GS and interacting with the terminals indicated in the scheduling instructions comprises:
receiving the audio and video of the cloud game sent by the example;
encoding the audio and video of the cloud game to obtain encoded data;
packaging the coded data to obtain a first data packet;
and sending the first data packet to the terminal.
4. The method of claim 1, wherein establishing connections between instances running on a cloud matched to the GS and performing data interaction with a terminal indicated in the scheduling instruction comprises:
receiving a second data packet sent by the terminal;
decoding the second data packet to obtain a control instruction;
sending the control instruction to the instance so as to enable the instance to simulate and control the cloud game according to the control instruction.
5. The method according to claim 1, wherein the functional information of the microservices provided by the GS comprises at least one of the following:
the method comprises the steps of encoding audio and video of the cloud game, packaging encoded data and decoding a data packet comprising a control instruction.
6. The method of claim 1, wherein the information of the instance comprises function information of a microservice provided by the instance, and wherein the function information comprises at least one of:
and running the running environment of the cloud game, sending the audio and video of the cloud game to the GS, and simulating and controlling the cloud game according to a control instruction.
7. An apparatus for data processing, applied to an application component GS, comprising:
the first processing module is used for sending configuration information of the GS to a regional server after the GS is registered to the regional server to which the GS belongs, wherein the configuration information comprises function information of micro services provided by the GS and information of instances running on a cloud end matched with the GS;
the second processing module is used for establishing connection between instances running on the cloud end matched with the GS according to the function information of the micro-service, the information of the instances and the scheduling instruction sent to the GS by the regional server, and performing data interaction with the terminal indicated in the scheduling instruction so as to enable the terminal to run a cloud game through the instances; the GS is an application component in the instance or an application component at the same level as the instance;
the first processing module is further configured to:
sending state information to the regional server, wherein the state information is used for representing the state change of the micro-service provided by at least one of the GS and the instances in the operation process, and the state information comprises information that the micro-service is abnormal;
the sending the state information to the area server includes:
and sending the information that the micro-service is abnormal to the regional server, so that the regional server calls other GS to replace the GS and/or calls other instances to replace the instances.
8. An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor is configured to execute the data processing method according to any one of claims 1 to 6 by calling the computer program.
9. A computer-readable storage medium, characterized in that a computer program is stored which, when being executed by a processor, is adapted to carry out the method of data processing according to any one of claims 1-6.
CN201911330401.2A 2019-12-20 2019-12-20 Data processing method, device, equipment and computer readable storage medium Active CN111790159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330401.2A CN111790159B (en) 2019-12-20 2019-12-20 Data processing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330401.2A CN111790159B (en) 2019-12-20 2019-12-20 Data processing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111790159A CN111790159A (en) 2020-10-20
CN111790159B true CN111790159B (en) 2022-12-23

Family

ID=72805533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330401.2A Active CN111790159B (en) 2019-12-20 2019-12-20 Data processing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111790159B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865518B (en) * 2023-01-30 2023-05-16 天云融创数据科技(北京)有限公司 Cloud platform data processing method and system based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546509A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Resource-saving cloud service system and resource saving method
KR20140116240A (en) * 2013-02-25 2014-10-02 삼성전자주식회사 Server apparatus, game control method 0f server apparatus, mobile apparatus, control method of mobile apparatus, display apparatus and game image display method of display apparatus
CN108568109A (en) * 2018-04-25 2018-09-25 咪咕互动娱乐有限公司 A kind of game control method, device and storage medium
CN110302533A (en) * 2019-08-05 2019-10-08 深圳市瑞云科技有限公司 A kind of cloud game system and method based on wechat small routine real-time video capability
CN110368686A (en) * 2019-07-03 2019-10-25 上海闻泰信息技术有限公司 Cloud game implementation method, device, cloud server, terminal and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546509A (en) * 2012-07-13 2014-01-29 云联(北京)信息技术有限公司 Resource-saving cloud service system and resource saving method
KR20140116240A (en) * 2013-02-25 2014-10-02 삼성전자주식회사 Server apparatus, game control method 0f server apparatus, mobile apparatus, control method of mobile apparatus, display apparatus and game image display method of display apparatus
CN108568109A (en) * 2018-04-25 2018-09-25 咪咕互动娱乐有限公司 A kind of game control method, device and storage medium
CN110368686A (en) * 2019-07-03 2019-10-25 上海闻泰信息技术有限公司 Cloud game implementation method, device, cloud server, terminal and medium
CN110302533A (en) * 2019-08-05 2019-10-08 深圳市瑞云科技有限公司 A kind of cloud game system and method based on wechat small routine real-time video capability

Also Published As

Publication number Publication date
CN111790159A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN106358245B (en) Method and controller for sharing load of mobile edge computing application
WO2019204351A1 (en) System for managing deployment of distributed computing resources
CN102202289B (en) Method and system for remote calling software and hardware resources through mobile terminal
CN102308560B (en) Transmission method and device of media stream data in cloud calculative system
CN106209966A (en) Management and control end updates the method for equipment state, the treating method and apparatus of service end
EP3076290B1 (en) Method and device for remotely updating application program
CN103650458A (en) Transmission method, device and system of media streams
CN113849312A (en) Data processing task allocation method and device, electronic equipment and storage medium
CN113422839A (en) Cloud mobile phone system based on cloud computing, control method, medium and electronic device
CN103548315A (en) Method and apparatus for high performance low latency real time notification delivery
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
CN102461324A (en) Resource allocation
CN111790159B (en) Data processing method, device, equipment and computer readable storage medium
JP2017063421A (en) System and method for efficient call processing
CN103841080A (en) Called number completion method, device and system
US11539919B1 (en) Dynamic cloud video composition
CN103220347A (en) CRP (compression reflection protocol) cloud interaction method
CN108710304A (en) A kind of client operation management method and client
CN111803927A (en) Running method and device of cloud game service and computer readable storage medium
CN111190731A (en) Cluster task scheduling system based on weight
CN107426114B (en) Resource allocation method and system
US20210256600A1 (en) Connector leasing for long-running software operations
JP2019135578A (en) Cloud system, cloud server, edge server and user device
CN113535402A (en) Load balancing processing method and device based on 5G MEC and electronic equipment
CN112905338A (en) Automatic allocation method and device for computing resources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant