CN114928641A - Data sharing method and device based on cloud application, electronic equipment and storage medium - Google Patents

Data sharing method and device based on cloud application, electronic equipment and storage medium Download PDF

Info

Publication number
CN114928641A
CN114928641A CN202210522493.XA CN202210522493A CN114928641A CN 114928641 A CN114928641 A CN 114928641A CN 202210522493 A CN202210522493 A CN 202210522493A CN 114928641 A CN114928641 A CN 114928641A
Authority
CN
China
Prior art keywords
client
content data
data
slave
peer
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.)
Pending
Application number
CN202210522493.XA
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210522493.XA priority Critical patent/CN114928641A/en
Publication of CN114928641A publication Critical patent/CN114928641A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data sharing method and device based on cloud application, electronic equipment and a storage medium, and relates to the technical field of cloud computing. According to the embodiment of the application, the cloud application deployed at the cloud end is deployed corresponding to the client side at the user side, the main client side obtains content data to be shared from the first cloud application, at least one slave client side of the content data to be shared is further determined, the content data is sent to the slave client side through the peer-to-peer network, the slave client sides are not required to obtain data from the first cloud application respectively, the downlink flow of the first cloud application can be saved, the resource pushing pressure at the server side is reduced, in addition, the content data can be shared from the main client side to the slave client side, the uplink flow of the main client side is utilized, and the utilization rate of the uplink bandwidth is increased. Further, if the clients are connected to each other through a peer-to-peer network in a local area network, the efficiency of data acquisition can be further improved compared with a scheme of acquiring data from the server.

Description

Data sharing method and device based on cloud application, electronic equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a data sharing method and apparatus based on cloud applications, an electronic device, and a storage medium.
Background
Cloud computing is an important direction for the development of internet information technology, computing resources are integrated in a cloud computing service mode, and applications, hardware resources and the like of a cloud are provided for software service providers, enterprise users or individual users in a mode of on-demand service, elastic distribution and the like through a transmission protocol.
The cloud application is a form of providing resources for cloud computing, is deployed at the cloud end, and is used by a client of a user through a local thin client without installation of the application, so that the use mode of local installation and local operation of traditional software is changed into a service of 'instant access and use', a computing task is completed by connecting the Internet or a local area network and controlling a remote server cluster, hardware cost can be reduced for the user, and working efficiency can be greatly improved.
In some application scenarios, there is a need to share the content of one cloud application to multiple different clients, and taking a teaching scenario as an example, sharing the desktop content of a teacher to the clients of multiple students requires connecting multiple clients to the cloud desktop of a classroom, thereby bringing a relatively large pressure to the downlink bandwidth of a server.
Disclosure of Invention
The embodiment of the application provides a data sharing method and device based on cloud application, electronic equipment and a storage medium, and aims to solve the problem that downlink bandwidth pressure of a server is high due to the fact that a plurality of clients are connected with the same cloud application at the same time.
In a first aspect, an embodiment of the present application provides a data sharing method based on a cloud application, where the cloud application is deployed corresponding to a client on a user side, and the method is applied to a host client corresponding to a first cloud application, and the method includes:
acquiring content data to be shared from a first cloud application deployed at a cloud end;
determining at least one slave client to share the content data, wherein the slave client establishes connection with the master client based on a peer-to-peer network;
sending the content data to the at least one slave client over the peer-to-peer network.
In a second aspect, an embodiment of the present application provides a data sharing method based on a cloud application, where the cloud application is deployed corresponding to a client on a user side, and the method is applied to a slave client corresponding to a second cloud application, and the method includes:
establishing connection with at least one target client based on a peer-to-peer network, wherein the target client comprises a main client for acquiring content data from a first cloud application deployed at a cloud end, or other auxiliary clients for directly or indirectly acquiring the content data from the main client;
and respectively acquiring content data from the at least one target client based on the peer-to-peer network.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory, where the processor, when executing the computer program, implements the method provided in any embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method provided in any embodiment of the present application.
Compared with the prior art, the method has the following advantages:
according to the embodiment of the application, the cloud application deployed at the cloud end is deployed corresponding to the client side at the user side, when content data of the first cloud application needs to be shared to a plurality of slave client sides except the corresponding master client side, the master client side can acquire the content data to be shared from the first cloud application, at least one slave client side which needs to share the content data is further determined, the content data is sent to the slave client side through the peer-to-peer network, the slave client sides do not need to acquire the data from the first cloud application respectively, downlink flow of the first cloud application can be saved, resource pushing pressure of the server side is reduced, and the content data can be shared to the slave client sides from the master client side, uplink flow of the master client side is utilized, and utilization rate of uplink bandwidth is increased. Further, if the clients are connected to each other through a peer-to-peer network in a local area network, the efficiency of data acquisition can be further improved compared with a scheme of acquiring data from the server.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present application will be readily apparent by reference to the drawings and following detailed description.
Drawings
In the drawings, like reference characters designate like or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily to scale. It is appreciated that these drawings depict only some embodiments in accordance with the disclosure and are therefore not to be considered limiting of its scope.
FIG. 1 is a schematic diagram of a prior art solution for data sharing;
FIG. 2 is a schematic diagram of another prior art scheme for data sharing;
fig. 3 is a schematic diagram of a data sharing scheme based on cloud application provided in the present application;
fig. 4 is a flowchart of a data sharing method based on cloud application according to an embodiment of the present application;
FIG. 5 is a flow chart of a data sharing method based on cloud applications according to another embodiment of the present application;
fig. 6 is a block diagram illustrating a structure of a data sharing apparatus based on a cloud application according to an embodiment of the present application;
fig. 7 is a block diagram of a data sharing apparatus based on cloud application according to another embodiment of the present application;
FIG. 8 is a block diagram of an electronic device used to implement embodiments of the present application.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art would realize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present application. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
For the convenience of understanding of the technical solutions of the embodiments of the present application, the following related technologies of the embodiments of the present application are described below, and the following related technologies may be optionally combined with the technical solutions of the embodiments of the present application as alternatives, and all of them belong to the protection scope of the embodiments of the present application.
The embodiment of the application relates to a data sharing scheme based on cloud application, which is applied to a scene of sharing content among cloud application, computing resources of the cloud application are deployed in a data center of a cloud end, the computing power can be conveniently expanded as required, a Client end is deployed on a user side of the cloud computing, the Client end is connected with the cloud end through a public network or a private line, and the Client end can be in a display form of a Thin Client (Thin Client) or an intelligent Client (Smart Client). After logging in an account of the client, the user calls various functions of the cloud application by accessing various entries provided by the client.
In the prior art before the application, when content sharing of a cloud application is implemented, a plurality of clients sharing content data are controlled to establish connection with a certain cloud application respectively to acquire the content data from the cloud application, so that downlink traffic of the cloud application is increased, and pressure of downlink bandwidth is high. Fig. 1 is a schematic diagram illustrating a scheme for implementing data sharing in the prior art. The cloud desktops A, B, C are connected to the clients A, B, C, the clients a can directly acquire content data from the corresponding cloud desktops a, and when the clients B, C also need to acquire the content data from the cloud desktops a, the clients B, C also establish connections with the cloud desktops a, so that the cloud desktops a need to consume multiple downlink traffic for transmission of the content data.
In another prior art before the application, in order to share data of a cloud application to multiple clients, content data to be shared may be issued to a client corresponding to the cloud application, the client corresponding to the cloud application pushes the content data to a sharing server, and other clients not corresponding to the cloud application may all obtain the content data from the sharing server. Fig. 2 is a schematic diagram of another scheme for implementing data sharing in the prior art. The cloud desktop a issues the content data to the client a, and the client a pushes the content data to the server, which may be specifically an RTSP server that performs data transmission based on a Real Time Streaming Protocol (RTSP). And the client B and the client C are connected with the RTSP server to acquire the required content data from the RSTP server. The complexity of the whole transmission architecture is increased because a server needs to be deployed for data transmission, and when the document or picture is transmitted based on the RTSP, the data is compressed, so that certain content loss is caused, and the transmission quality of the content data is reduced.
In view of the above, embodiments of the present application provide a new content data sharing scheme to solve all or part of the above technical problems.
The method and the device for sharing the content data of the cloud application can be applied to various scenes that the data need to be distributed to different clients, the content data of the same cloud application can be shared among the different clients, and the purpose of task cooperation or monitoring can be achieved by utilizing the shared content data.
In order to distinguish different cloud applications and clients, a cloud application sharing content data is recorded as a first cloud application, a client corresponding to the first cloud application is recorded as a master client, clients corresponding to other cloud applications needing to acquire the content data are recorded as slave clients, and the corresponding cloud application is recorded as a second cloud application from the perspective of a certain slave client. That is, the embodiment of the present application relates to sharing content data of a first cloud application corresponding to a master client to at least one slave client.
The process of sharing the content data of the cloud application corresponding to the master client to the slave clients may be that the master client directly shares the content data to each slave client from the master client after acquiring the data from the corresponding cloud application, or that the content data is shared to some slave clients from the master client, and the content data is further shared among other slave clients.
From the perspective of the master client, the content data to be shared are obtained from the first cloud application, one or more slave clients of the content data to be shared are further determined, and the content data are distributed to other slave clients. When content data is distributed to a certain slave client, all content data may be distributed to the slave client, or part of content data may be distributed to the slave client. For example, sharing teaching contents on a cloud desktop or live broadcasting is taken as an example, the contents displayed by the clients are generally consistent, and therefore, all content data is generally distributed to the clients.
From the perspective of the client, when a slave client corresponding to a certain second cloud application needs to obtain content data from the master client, a target client that needs to obtain the data may be determined, where the target client may be the master client, may also be a slave client that is directly connected to the master client to obtain the content data, may also be a slave client that obtains the content data through another slave client, that is, a slave client that obtains the content data indirectly from the master client.
In order to more clearly show the content data sharing method provided in the embodiment of the present application, a specific application example of the scheme of the embodiment of the present application is given as follows, and fig. 3 is a schematic diagram of the data sharing scheme based on cloud application provided in the present application. The figure relates to a plurality of cloud applications and clients respectively corresponding to the cloud applications, and the clients are connected based on a peer-to-peer network. The method comprises the steps that a first cloud application provides content data and sends the content data to a main client, a second cloud application or a slave client corresponding to other cloud applications directly or indirectly obtains the content data from the main client, one obtaining mode is that the slave client corresponding to the second cloud application obtains the content data from the main client, the slave client corresponding to an Nth cloud application obtains the content data from the slave client corresponding to the second cloud application, and the other obtaining mode is that the slave client corresponding to the Nth cloud application directly obtains the content data from the main client. Compared with the two existing schemes, the downlink flow of the first cloud application can be reduced, the resource pushing pressure of the server side is reduced, the uplink flow of the main client is utilized, and the utilization rate of the uplink bandwidth is increased.
The embodiment of the application provides a data sharing method based on cloud application, the cloud application is deployed corresponding to a client at a user side, the method is applied to a main client corresponding to a first cloud application, and fig. 4 is a flowchart of the data sharing method based on the cloud application in the embodiment of the application. As shown in fig. 4, the method includes:
step S101, content data to be shared are obtained from a first cloud application deployed at the cloud.
The types of Cloud applications related to the embodiment of the present application may include desktop applications (Cloud desktops), office applications, network course applications, social applications, image editing applications, financial transaction applications, programming applications, and the like. In this embodiment of the present application, the cloud applications corresponding to different clients may be the same type of application, that is, content data of a certain cloud application is further shared with clients corresponding to other cloud applications of the same type, in addition to being delivered to the corresponding client. The cloud applications corresponding to different clients may also be different types of applications, and content data of a certain cloud application is shared to the corresponding client and clients corresponding to other types of cloud applications.
The content data involved in the method can be various data shown or further provided in the cloud application, and can also be data of other cloud applications called or shown in one cloud application. Taking sharing content of the cloud desktop as an example, content data of a certain cloud desktop can be shared to other one or more clients of the cloud desktop, or content data of the cloud desktop can be acquired through other cloud applications and further shared to non-corresponding clients.
For example, in one scenario, two cooperating parties or the other cooperating parties need to share the content of the cloud desktop, and the cloud desktop of a certain client can be shared by one or more other clients, so that discussion and cooperation can be performed through a shared screen; in another scenario, the training end shares teaching contents with all audience ends through live broadcast cloud software, cloud desktop sharing can be triggered through the live broadcast cloud software, and the teaching contents displayed on the cloud desktop are shared to the audience ends.
The content sharing involved may be various data generated in the cloud application, for example, personal operation data involved in the desktop application, such as clipboard content; the cloud application processes data or output results generated in the process, such as image editing results or codes generated in programming, and transaction amount data generated by financial transaction application. The shared data may also be other data that can be interacted with, such as chat content between accounts in a social application, user information, and the like.
The content data may include various data types, such as pictures, videos, documents, and the like, and may also be a mixture of multiple types of data, which is not limited in this application.
Step S102, at least one slave client to share the content data is determined, and the slave client establishes connection with the master client based on a peer-to-peer network.
Before sharing content, a connection is established between a master client and a slave client of content data to be shared based on a Peer-to-Peer network, wherein the Peer-to-Peer network is a networking or network form formed in an application layer between Peer peers, two main bodies connected through the Peer-to-Peer network can directly access each other without passing through an intermediate entity, that is, after the connection is established between the master client and the slave client based on the Peer-to-Peer network in the application layer, interactive data can be directly sent to each other without passing through other intermediate devices such as a server, and compared with a scheme of acquiring data from a server, the efficiency of data acquisition can be further improved.
In a possible implementation manner, the peer-to-peer network may be a local area network to which the master client and the slave client are commonly accessed, and when the master client and the slave client access the same local area network, communication between the master client and the slave client can be performed based on the local area network. Or, the peer-to-peer network may also be a hotspot network started by the host client or the slave client, and when the hotspot network is started by any client of the host client or the slave client, the end which does not start the hotspot network accesses the hotspot network, and the two can communicate based on the hotspot network.
Step S103, sending the content data to the at least one slave client through the peer-to-peer network.
After the master client determines the slave client of the content data to be shared, the content data can be shared to the slave client through the peer-to-peer network, and uplink flow of uplink bandwidth used by the client to send data to the outside is occupied. Therefore, based on the content sharing scheme of the embodiment of the application, each slave client does not need to acquire data from the first cloud application, the downlink flow of the first cloud application can be saved, the resource pushing pressure of the server side is reduced, and the content data can be shared from the master client to the slave clients, so that the uplink flow of the master client is utilized, and the utilization rate of the uplink bandwidth is increased.
Data of different data types correspond to different requirements on transmission accuracy, for example, in the transmission of pictures and documents, if partial content data is lost, the key content of a certain part of the picture cannot be accurately shown, and the context logic of the document cannot understand the meaning of the document. In the transmission of the video, if the content of part of the video frames is lost, the content of the front and back video frames can be supplemented, and the understanding of the video content cannot be influenced when the video is continuously watched.
In a possible implementation manner, when the content data is sent to at least one slave client through the peer-to-peer network, the data type of the content data may be identified first, and the content data is further sent to the at least one slave client according to a data sending method corresponding to the data type, that is, a data sending method meeting the accuracy may be configured for different data types.
In a possible implementation manner, when the content data is sent to the at least one slave client according to a data sending manner corresponding to the data type, the content data can be sent to the at least one slave client after being added to the uplink command for the content data of which the data type is a document or a picture. For content data of which the data type is a video, a sending mode added to the uplink command may also be adopted, specifically, the video may be split into video frames, and the video frames or a part of the video frames are added to the uplink command and sent to each slave client one by one.
In a possible implementation manner, for content data of which the data type is a video, content data may not be compressed due to content loss possibly caused by compression, and the compressed content data is added to the uplink data packet and then sent to at least one slave client, so that the video transmission speed can be increased.
When the content data is transmitted specifically, the content data may be split into data fragments and then sent through a plurality of uplink commands or uplink data packets, and the specific splitting rule is not limited in the present application.
In a possible implementation manner, data sharing between the master client and the slave clients may be initiated by the master client actively, and when the master client and the slave clients are in the same session group, at least part of the slave clients in the same session group with the master client may be determined as slave clients determining content data to be shared. Specifically, all the slave clients may be selected from the group list as the slave clients of the content data to be shared, or part of the slave clients may be selected as the slave clients of the content data to be shared, where an input interface may be provided at the master client for the user to perform the selection operation. Or the content sharing method can also be initiated by the slave client actively, the master client determines the slave client sending the content sharing request as the slave client of the content data to be shared after receiving the content sharing request, and sends the content data to the determined slave client through the peer-to-peer network according to the content sharing instruction triggered by executing feedback on the content sharing request.
The above embodiment provides a process for distributing content data to the outside by the master client, and after the master client distributes the content data to one or more slave clients, the slave clients can also continue to distribute the content data to other slave clients. Another embodiment of the data sharing method based on the cloud application according to the present application is given below based on a client-side perspective.
Fig. 5 is a flowchart of a data sharing method based on a cloud application according to another embodiment of the present application, where the cloud application is deployed corresponding to a client on a user side, and the method is applied to a slave client corresponding to a second cloud application, and includes:
step S201, establishing a connection with at least one target client based on a peer-to-peer network, where the target client includes a master client that obtains content data from a first cloud application deployed at a cloud, or other slave clients that directly or indirectly obtain the content data from the master client.
Step S202, respectively obtaining content data from the at least one target client based on the peer-to-peer network.
In this embodiment, a client that provides content data to a slave client is denoted as a target client, and the slave client that needs to acquire the content data first establishes a connection with the target client based on a peer-to-peer network, and then acquires the content data from the target client based on the peer-to-peer network.
The slave client can be directly connected with the master client to directly obtain the content data from the master client, and can also be connected with one or more slave clients with other content data to obtain the content data. Therefore, the target client may include a master client that obtains content data from the first cloud application deployed in the cloud, or other slave clients, where the other slave clients may be directly connected to the master client and directly obtain the content data from the master client, or indirectly obtain the content data from the master client, that is, obtain the content data through forwarding of other slave clients.
Therefore, when a slave client of a certain second cloud application needs to share content data of the first cloud application, the slave client can request the content data from one or more target clients, the one or more target clients can be a master client which acquires the content data from the first cloud application, or other slave clients which directly acquire or indirectly acquire the content data from the master client, and further can acquire the content data from the target clients. Further, if the clients are connected to each other through a peer-to-peer network in a local area network, the efficiency of data acquisition can be further improved compared with a scheme of acquiring data from the server.
In a possible implementation manner, before establishing a connection with at least one target client based on a peer-to-peer network, the target client to acquire the content data may be further determined based on at least one of a data type of the content data, transmission performance data of the master client, and transmission performance data of other slave clients. The transmission performance data is a parameter that affects transmission efficiency or transmission result, such as transmission bandwidth, memory usage, and the like. The specific selection rule may be set flexibly according to actual requirements, for example, content data of different data types may be obtained from different target clients, or a host client with better transmission performance or content data may be selected according to transmission performance represented by the transmission performance data, or a video occupying more transmission traffic may be obtained from a target client with better transmission performance, and a picture or a document occupying less transmission traffic may be obtained from a target client with poorer transmission performance, which is not limited in the present application.
Corresponding to the above embodiment, when the host client shares data, data transmission may be performed based on an uplink command, an uplink data packet, and the like, and accordingly, when content data is respectively obtained from at least one target client based on the peer-to-peer network, the uplink command and/or the uplink data packet sent by the target client may be obtained based on the peer-to-peer network, and the content data may be extracted from the uplink command and/or the uplink data packet. For example, the main client sends a picture or a document in an uplink command mode, and sends a video in an uplink data packet, so that the slave client can extract the picture or the document from the uplink command, and can extract the video from the uplink data packet.
Since the content data may be split into segments to be transmitted one by one, after the segments of the content data are extracted from the uplink command or the uplink data packet, the segments of the content data may be further combined to obtain the entire content data, and a specific combination rule may be agreed in advance or combined in sequence, which is not limited in this application.
In a possible implementation manner, the peer-to-peer network may include a local area network, which is accessed by the slave client and the target client and corresponds to the second cloud application, or a hotspot network, which is opened by the slave client or the target client and corresponds to the second cloud application.
In a possible implementation manner, before the slave client needs to acquire the content data, the slave client may join the same session group where the target client is located, so as to acquire the content data by actively initiating sharing by the master client or the slave client, or may actively send a content sharing request to the target client, so as to acquire the content data fed back by the target client according to the request.
Corresponding to the application scenario and the method of the method provided by the embodiment of the application, the embodiment of the application further provides a data sharing device based on cloud application, the cloud application is deployed corresponding to the client side of the user side, and the method is applied to the main client corresponding to the first cloud application. Fig. 6 is a block diagram illustrating a data sharing apparatus based on cloud application according to an embodiment of the present disclosure, where the data sharing apparatus may include:
the obtaining module 301 is configured to obtain content data to be shared from a first cloud application deployed at a cloud end;
a determining module 302, configured to determine at least one slave client that is to share the content data, where the slave client establishes a connection with the master client based on a peer-to-peer network;
a sending module 303, configured to send the content data to the at least one slave client through the peer-to-peer network.
In one possible implementation manner, the sending module includes:
the identification submodule is used for identifying the data type of the content data;
and the sending submodule is used for sending the content data to the at least one slave client according to a data sending mode corresponding to the data type.
In a possible implementation manner, the sending sub-module is specifically configured to add, to the content data whose data type is a document or a picture, the content data to the uplink command and send the content data to the at least one slave client.
In a possible implementation manner, the sending sub-module is specifically configured to compress content data of which the data type is a video; and adding the compressed content data to the uplink data packet and then sending the compressed content data to the at least one slave client.
In a possible implementation manner, the apparatus further includes:
and the connection module is used for establishing connection with the slave client based on a peer-to-peer network before the content data is sent to the at least one slave client through the peer-to-peer network, wherein the peer-to-peer network comprises a local area network which is jointly accessed by the master client and the slave client, or a hotspot network which is started by the master client or the slave client.
In a possible implementation manner, the determining module is specifically configured to determine at least some slave clients in the same session group as the master client as slave clients that determine to share the content data, or determine a slave client that sends a content sharing request as a slave client that shares the content data, and correspondingly, the sending module is specifically configured to send the content data to the determined slave clients through the peer-to-peer network according to a triggered content sharing instruction.
According to the embodiment of the application, the cloud application deployed at the cloud end is deployed corresponding to the client side at the user side, when content data of the first cloud application needs to be shared to a plurality of slave client sides except the corresponding master client side, the master client side can acquire the content data to be shared from the first cloud application, at least one slave client side which needs to share the content data is further determined, the content data is sent to the slave client side through the peer-to-peer network, the slave client sides do not need to acquire the data from the first cloud application respectively, downlink flow of the first cloud application can be saved, resource pushing pressure of the server side is reduced, and the content data can be shared to the slave client sides from the master client side, uplink flow of the master client side is utilized, and utilization rate of uplink bandwidth is increased. Further, if the clients are connected to each other through a peer-to-peer network in a local area network, the efficiency of data acquisition can be further improved compared with a scheme of acquiring data from the server.
Corresponding to the application scenario and the method of the method provided by the embodiment of the application, the embodiment of the application further provides a data sharing device based on the cloud application, the cloud application is deployed corresponding to the client at the user side, and the device can be deployed at the slave client corresponding to the second cloud application. Fig. 7 is a block diagram illustrating a structure of a data sharing apparatus based on cloud application according to another embodiment of the present disclosure, where the data sharing apparatus may include:
a connection module 401, configured to establish a connection with at least one target client based on a peer-to-peer network, where the target client includes a master client that obtains content data from a first cloud application deployed in a cloud, or other slave clients that directly obtain or indirectly obtain the content data from the master client;
an obtaining module 402, which obtains content data from the at least one target client based on a peer-to-peer network.
In one possible implementation, the apparatus further includes:
and the determining module is used for determining the target client side to obtain the content data based on at least one of the data type of the content data, the transmission performance data of the master client side and the transmission performance data of other slave client sides before the connection with at least one target client side is established based on the peer-to-peer network.
In a possible implementation manner, the obtaining module is specifically configured to obtain an uplink command and/or an uplink data packet sent by the target client based on a peer-to-peer network, and extract content data from the uplink command and/or the uplink data packet.
In a possible implementation manner, the peer-to-peer network includes a local area network that is accessed by the secondary client and the target client corresponding to the second cloud application, or a hotspot network that is started by the secondary client or the target client corresponding to the second cloud application.
In one possible implementation, the apparatus further includes: the group access module is used for accessing the same session group with at least one target client before the connection with the target client is established based on a peer-to-peer network; or, the request module is used for sending a content sharing request to the target client.
According to the embodiment of the application, the cloud application deployed at the cloud end is deployed corresponding to the client at the user side, when the slave client of a certain second cloud application needs to share the content data of the first cloud application, the content data can be requested to one or more target clients, the one or more target clients may be a master client that obtains the content data from the first cloud application, or may be other slave clients that directly obtain or indirectly obtain the content data from the master client, and further may obtain the content data from the target clients, because the slave clients do not need to respectively acquire data from the first cloud application, the downlink flow of the first cloud application can be saved, the resource pushing pressure of the server side is reduced, and, because the content data can be shared from the main client to the auxiliary client, the uplink flow of the main client is utilized, and the utilization rate of uplink bandwidth is increased. Further, if the clients are connected to each other through a peer-to-peer network in a local area network, the efficiency of data acquisition can be further improved compared with a scheme of acquiring data from the server.
The functions of each module in each device in the embodiment of the present application can be referred to the corresponding description in the above method, and have corresponding beneficial effects, which are not described herein again.
FIG. 8 is a block diagram of an electronic device used to implement embodiments of the present application. As shown in fig. 8, the electronic apparatus includes: a memory 510 and a processor 520, the memory 510 having stored therein computer programs that are executable on the processor 520. The processor 520, when executing the computer program, implements the method in the above embodiments. The number of the memory 510 and the processor 520 may be one or more.
The electronic device further includes:
the communication interface 530 is used for communicating with an external device to perform data interactive transmission.
If the memory 510, the processor 520, and the communication interface 530 are implemented independently, the memory 510, the processor 520, and the communication interface 530 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 510, the processor 520, and the communication interface 530 are integrated on a chip, the memory 510, the processor 520, and the communication interface 530 may complete mutual communication through an internal interface.
Embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the computer program implements the method provided in the embodiments of the present application.
The embodiment of the present application further provides a chip, where the chip includes a processor, and is configured to call and execute the instruction stored in the memory from the memory, so that the communication device in which the chip is installed executes the method provided in the embodiment of the present application.
An embodiment of the present application further provides a chip, including: the system comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method provided by the embodiment of the application.
It should be understood that the processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting Advanced reduced instruction set machine (ARM) architecture.
Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may include a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can include Random Access Memory (RAM), which acts as external cache Memory. By way of example, and not limitation, many forms of RAM are available. For example, Static Random Access Memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (SLDRAM), and Direct Memory bus RAM (DR RAM).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
In the description of the present specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes other implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the method of the above embodiments may be implemented by hardware that is configured to be instructed to perform the relevant steps by a program, which may be stored in a computer-readable storage medium, and which, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present application, and these should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A data sharing method based on cloud application is characterized in that the cloud application is deployed corresponding to a client side on a user side, the method is applied to a main client side corresponding to a first cloud application, and the method comprises the following steps:
acquiring content data to be shared from a first cloud application deployed at a cloud end;
determining at least one slave client to share the content data, wherein the slave client establishes connection with the master client based on a peer-to-peer network;
sending the content data to the at least one slave client over the peer-to-peer network.
2. The method of claim 1, wherein sending the content data to the at least one slave client via the peer-to-peer network comprises:
identifying a data type of the content data;
and sending the content data to the at least one slave client according to a data sending mode corresponding to the data type.
3. The method according to claim 2, wherein the sending the content data to the at least one slave client in a data sending manner corresponding to the data type comprises:
and aiming at the content data with the data type of a document or a picture, adding the content data to the uplink command and then sending the uplink command to the at least one slave client.
4. The method according to claim 2, wherein the sending the content data to the at least one slave client in a data sending manner corresponding to the data type comprises:
compressing content data of which the data type is video;
and adding the compressed content data to the uplink data packet and then sending the compressed content data to the at least one slave client.
5. The method of claim 1, wherein prior to said sending the content data to the at least one slave client over the peer-to-peer network, the method further comprises:
and establishing connection with the slave client based on a peer-to-peer network, wherein the peer-to-peer network comprises a local area network jointly accessed by the master client and the slave client, or a hotspot network started by the master client or the slave client.
6. The method of claim 1, wherein the determining at least one slave client to share the content data comprises:
determining at least part of the slave clients in the same session group with the master client as slave clients determining to share the content data, or determining the slave clients sending content sharing requests as slave clients determining to share the content data;
the sending the content data to the at least one slave client over the peer-to-peer network comprises:
and sending the content data to the determined slave client through the peer-to-peer network according to the triggered content sharing instruction.
7. A data sharing method based on cloud application is characterized in that the cloud application is deployed corresponding to a client side on a user side, the method is applied to a slave client corresponding to a second cloud application, and the method comprises the following steps:
establishing connection with at least one target client based on a peer-to-peer network, wherein the target client comprises a main client for acquiring content data from a first cloud application deployed at a cloud end, or other auxiliary clients for directly or indirectly acquiring the content data from the main client;
and respectively acquiring content data from the at least one target client based on the peer-to-peer network.
8. The method of claim 7, wherein prior to said establishing a connection with at least one target client based on a peer-to-peer network, the method further comprises:
and determining a target client to obtain the content data based on at least one of the data type of the content data, the transmission performance data of the master client and the transmission performance data of other slave clients.
9. The method of claim 7, wherein the obtaining content data from the at least one target client based on the peer-to-peer network comprises:
and acquiring the uplink command and/or the uplink data packet sent by the target client based on the peer-to-peer network, and extracting content data from the uplink command and/or the uplink data packet.
10. The method of claim 7, wherein the peer-to-peer network comprises a local area network commonly accessed by the slave client and the target client corresponding to the second cloud application, or a hotspot network opened by the slave client or the target client corresponding to the second cloud application.
11. The method of claim 7, wherein prior to said establishing a connection with at least one target client based on a peer-to-peer network, the method further comprises:
accessing the same session group with the target client;
or sending a content sharing request to the target client.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the method of any one of claims 1-11 when executing the computer program.
13. A computer-readable storage medium, having stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-11.
CN202210522493.XA 2022-05-13 2022-05-13 Data sharing method and device based on cloud application, electronic equipment and storage medium Pending CN114928641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210522493.XA CN114928641A (en) 2022-05-13 2022-05-13 Data sharing method and device based on cloud application, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210522493.XA CN114928641A (en) 2022-05-13 2022-05-13 Data sharing method and device based on cloud application, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114928641A true CN114928641A (en) 2022-08-19

Family

ID=82808691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210522493.XA Pending CN114928641A (en) 2022-05-13 2022-05-13 Data sharing method and device based on cloud application, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114928641A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024131383A1 (en) * 2022-12-22 2024-06-27 腾讯科技(深圳)有限公司 Data processing method and related apparatus
WO2024156272A1 (en) * 2023-01-28 2024-08-02 腾讯科技(深圳)有限公司 Data processing methods and apparatuses, and related device
CN118509327A (en) * 2024-07-22 2024-08-16 海马云(天津)信息技术有限公司 Download bandwidth adjustment method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150028952A (en) * 2013-09-06 2015-03-17 (주)플루토솔루션 Among users of social network services, network-based system and method for data transfer and sharing
CN105100925A (en) * 2015-06-06 2015-11-25 深圳市美贝壳科技有限公司 Video sharing method based on home video server
US20170318087A1 (en) * 2016-04-27 2017-11-02 At&T Intellectual Property I, L.P. Message Flow Management for Virtual Networks
CN108833591A (en) * 2018-07-13 2018-11-16 广州虎牙信息科技有限公司 Method, electronic equipment, device, the network architecture of P2P data transmission in network
CN108965428A (en) * 2018-07-13 2018-12-07 广州虎牙信息科技有限公司 The transmission method of live data, device, electronic equipment, system
CN109714646A (en) * 2018-12-19 2019-05-03 北京达佳互联信息技术有限公司 The sending method and method of reseptance of instant messaging, sending device and reception device
CN111614759A (en) * 2020-05-20 2020-09-01 北京字节跳动网络技术有限公司 Resource sharing method and device, electronic equipment and computer readable medium
CN113849271A (en) * 2021-09-22 2021-12-28 北京百度网讯科技有限公司 Cloud desktop display method, device, equipment, system and storage medium
CN114390049A (en) * 2021-12-29 2022-04-22 中国电信股份有限公司 Application data acquisition method and device
CN114465867A (en) * 2022-01-28 2022-05-10 杭州盈高科技有限公司 Server maintenance method and device, storage medium and processor

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150028952A (en) * 2013-09-06 2015-03-17 (주)플루토솔루션 Among users of social network services, network-based system and method for data transfer and sharing
CN105100925A (en) * 2015-06-06 2015-11-25 深圳市美贝壳科技有限公司 Video sharing method based on home video server
US20170318087A1 (en) * 2016-04-27 2017-11-02 At&T Intellectual Property I, L.P. Message Flow Management for Virtual Networks
CN108833591A (en) * 2018-07-13 2018-11-16 广州虎牙信息科技有限公司 Method, electronic equipment, device, the network architecture of P2P data transmission in network
CN108965428A (en) * 2018-07-13 2018-12-07 广州虎牙信息科技有限公司 The transmission method of live data, device, electronic equipment, system
CN109714646A (en) * 2018-12-19 2019-05-03 北京达佳互联信息技术有限公司 The sending method and method of reseptance of instant messaging, sending device and reception device
CN111614759A (en) * 2020-05-20 2020-09-01 北京字节跳动网络技术有限公司 Resource sharing method and device, electronic equipment and computer readable medium
CN113849271A (en) * 2021-09-22 2021-12-28 北京百度网讯科技有限公司 Cloud desktop display method, device, equipment, system and storage medium
CN114390049A (en) * 2021-12-29 2022-04-22 中国电信股份有限公司 Application data acquisition method and device
CN114465867A (en) * 2022-01-28 2022-05-10 杭州盈高科技有限公司 Server maintenance method and device, storage medium and processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黎春兰;邓仲华;: "云计算资源共享的模式研究", 信息资源管理学报, no. 01, 26 March 2012 (2012-03-26), pages 12 - 18 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024131383A1 (en) * 2022-12-22 2024-06-27 腾讯科技(深圳)有限公司 Data processing method and related apparatus
WO2024156272A1 (en) * 2023-01-28 2024-08-02 腾讯科技(深圳)有限公司 Data processing methods and apparatuses, and related device
CN118509327A (en) * 2024-07-22 2024-08-16 海马云(天津)信息技术有限公司 Download bandwidth adjustment method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20200304508A1 (en) Method and device for providing authentication in network-based media processing (nbmp) system
US9674252B2 (en) System and method for efficient delivery of repetitive multimedia content
US9467650B2 (en) Method and apparatus for transmitting media stream in video conference
CN114928641A (en) Data sharing method and device based on cloud application, electronic equipment and storage medium
CN108737476B (en) Cloud storage system, media data storage method and system
CN112672094B (en) Cloud desktop conference sharing method and device, electronic equipment and storage medium
CN104539977A (en) Live broadcast previewing method and device
US20150319205A1 (en) Method for Transferring Media Stream and User Equipment
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
US20230012322A1 (en) Method for real-time communication connection, server and storage medium
CN108924609B (en) Streaming media data transmission method, electronic equipment, device and storage medium
WO2015192617A1 (en) Conference sharing method and device for document
TW201725912A (en) Live video matching method and system
WO2017113816A1 (en) Method and device for peer-to-peer network connection
CN107332894B (en) Live broadcast method, device and system, server and storage medium
CN113082693A (en) Rendering method, cloud game rendering method, server and computing equipment
US10944801B1 (en) Serverless signaling in peer-to-peer session initialization
CN112533012B (en) Transmission method, device, equipment and storage medium for interaction information of live broadcasting room
WO2021078208A1 (en) Information acquisition method, cloudified set top box system, entity set top box, and storage medium
EP3579526A1 (en) Resource file feedback method and apparatus
US10129320B2 (en) QoS improvement method, apparatus, and system
CN115314730B (en) Video streaming transmission method and device applied to Virtual Reality (VR) scene
CN118200625A (en) Multimedia processing system, multimedia processing method and related equipment
US10462248B2 (en) Digital content sharing cloud service system, digital content sharing cloud service device, and method using the same
CN116248644A (en) Optimization method based on WebRTC plug flow technology

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