CN-122027701-A - Data distribution method, device, server and computer readable storage medium
Abstract
The embodiment of the application discloses a data distribution method, a device, a server and a computer readable storage medium, wherein the method comprises the following steps: the local selective forwarding unit servers in the distributed selective forwarding unit server cluster receive the target distribution data, determine regional information of the subscribing client corresponding to the target distribution data, determine the target selective forwarding unit server from the distributed selective forwarding unit server cluster based on the regional information, and send the target distribution data to the remote selective forwarding unit server when the target selective forwarding unit server is determined to be the remote selective forwarding unit server, so that the remote selective forwarding unit servers in the distributed selective forwarding unit server cluster send the target distribution data to the subscribing client. Therefore, the technical problem that when a single SFU server accesses to clients in different regions, the real-time data communication quality of the clients is low due to the existence of remote communication is solved.
Inventors
- LIU PENGKUN
- LI MIN
- LIU YANQING
- LIU XIANQI
Assignees
- 北京三六零智领科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241112
Claims (10)
- 1. A data distribution method is applied to a local selective forwarding unit server in a distributed selective forwarding unit server cluster, wherein the distributed selective forwarding unit server cluster further comprises a remote selective forwarding unit server, and the method comprises the following steps: Receiving target distribution data, and determining a subscription client corresponding to the target distribution data and region information of the subscription client; determining a target selective forwarding unit server from the distributed selective forwarding unit server cluster based on the region information; And when the target selective forwarding unit server is determined to be the remote selective forwarding unit server, the target distribution data is sent to the remote selective forwarding unit server, so that the remote selective forwarding unit server sends the target distribution data to the subscription client.
- 2. The method of claim 1, wherein the determining a target selective forwarding unit server from the distributed selective forwarding unit server cluster based on the zone information comprises: acquiring service region information corresponding to the local selective forwarding unit server and the remote selective forwarding unit server respectively; Matching the region information by utilizing the service region information to obtain target service region information matched with the region information; and determining a target selective forwarding unit server from the local selective forwarding unit servers and the remote selective forwarding unit servers based on the target service region information.
- 3. The method of claim 2, wherein the matching the zone information with the service zone information to obtain target service zone information matched with the zone information comprises: The current outlet bandwidth load value and the outlet bandwidth threshold value corresponding to the local selective forwarding unit server are obtained, and the current outlet bandwidth load value and the outlet bandwidth threshold value corresponding to the selective forwarding unit server in different places are obtained; Determining the new value-added of the export bandwidth of the target distribution data aiming at the local selective forwarding unit server, and determining the new value-added of the export bandwidth of the target distribution data aiming at the different selective forwarding unit servers; Determining a reference selective forwarding unit server from the local selective forwarding unit server and the remote selective forwarding unit server, wherein the sum of the current export bandwidth load value and the new export bandwidth increment of the reference selective forwarding unit server is used as an export bandwidth predicted value, and the export bandwidth predicted value is smaller than or equal to an export bandwidth threshold value of the reference selective forwarding unit server; And matching the region information based on the service region information corresponding to the reference selective forwarding unit server to obtain target service region information matched with the region information.
- 4. The method of claim 2, wherein the receiving the targeted distribution data comprises: Receiving the target distribution data based on a selective forwarding unit server corresponding to local service region information, wherein the local service region information is region information matched with local region information of a release client corresponding to the target distribution data in the service region information; And taking the selective forwarding unit server receiving the target distribution data as a local selective forwarding unit server corresponding to the release client, and taking the rest selective forwarding unit servers as different-place selective forwarding unit servers corresponding to the release client.
- 5. The method of claim 4, wherein prior to the receiving the targeted distribution data, the method further comprises: Detecting server states of the local selective forwarding unit server and the remote selective forwarding unit server based on the distributed selective forwarding unit server cluster, determining an abnormal selective forwarding unit server with the server state being a fault state, and controlling the abnormal selective forwarding unit server to stop a data distribution service; And acquiring the abnormal service region information corresponding to the abnormal selective forwarding unit servers, and performing service region information newly-added processing on the service region information corresponding to the rest selective forwarding unit servers based on the abnormal service region information.
- 6. The data distribution method is applied to the off-site selective forwarding unit servers in the distributed selective forwarding unit server cluster, wherein the distributed selective forwarding unit server cluster further comprises a local selective forwarding unit server, and the method comprises the following steps: receiving target distribution data sent by the local selective forwarding unit server, and sending the target distribution data to a subscription client; The remote selective forwarding unit server is a target selective forwarding unit server, the target selective forwarding unit server is obtained by determining the local selective forwarding unit server from the distributed selective forwarding unit server cluster by utilizing the region information, and the region information and the subscription client are obtained by determining the local selective forwarding unit server based on the received target distribution data.
- 7. A data distribution apparatus, wherein a local selective forwarding unit server applied to a distributed selective forwarding unit server cluster, the distributed selective forwarding unit server cluster further including a remote selective forwarding unit server, the data distribution apparatus comprising: The receiving module is suitable for receiving target distribution data and determining a subscription client corresponding to the target distribution data and region information of the subscription client; the determining module is suitable for determining a target selective forwarding unit server from the distributed selective forwarding unit server cluster based on the region information; And the sending module is suitable for sending the target distribution data to the remote selective forwarding unit server when the target selective forwarding unit server is determined to be the remote selective forwarding unit server, so that the remote selective forwarding unit server sends the target distribution data to the subscribing client.
- 8. A data distribution device, wherein the data distribution device is applied to a different-place selective forwarding unit server in a distributed selective forwarding unit server cluster, the distributed selective forwarding unit server cluster further comprises a local selective forwarding unit server, and the data distribution device comprises: The distribution module is suitable for receiving the target distribution data sent by the local selective forwarding unit server and sending the target distribution data to the subscribing client; The remote selective forwarding unit server is a target selective forwarding unit server, the target selective forwarding unit server is obtained by determining the local selective forwarding unit server from the distributed selective forwarding unit server cluster by utilizing the region information, and the region information and the subscription client are obtained by determining the local selective forwarding unit server based on the received target distribution data.
- 9. A server, wherein the server comprises: Processor, and A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the method of any one of claims 1 to 5 or 6.
- 10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1 to 5 or 6.
Description
Data distribution method, device, server and computer readable storage medium Technical Field The present application relates to the field of internet technologies, and in particular, to a data distribution method, a data distribution device, a server, and a computer readable storage medium. Background The single SFU (selective forwarding unit ) server has advantages of low latency and low resource consumption in Web RTC (Web Real-time communication ), however when the single SFU server accesses clients in different regions, the Real-time data communication quality for the clients is low due to the existence of remote communication. Disclosure of Invention The embodiment of the application provides a data distribution method, a data distribution device, a server and a computer readable storage medium, which can solve the technical problem that when a single SFU server is accessed to clients in different regions, the real-time data communication quality for the clients is lower due to the existence of remote communication. In a first aspect, an embodiment of the present application provides a data distribution method, which is applied to a local selective forwarding unit server in a distributed selective forwarding unit server cluster, where the distributed selective forwarding unit server cluster further includes a remote selective forwarding unit server, and the method includes: Receiving target distribution data, and determining a subscription client corresponding to the target distribution data and region information of the subscription client; determining a target selective forwarding unit server from the distributed selective forwarding unit server cluster based on the region information; And when the target selective forwarding unit server is determined to be the remote selective forwarding unit server, the target distribution data is sent to the remote selective forwarding unit server, so that the remote selective forwarding unit server sends the target distribution data to the subscription client. Optionally, the determining a target selective forwarding unit server from the distributed selective forwarding unit server cluster based on the regional information includes: acquiring service region information corresponding to the local selective forwarding unit server and the remote selective forwarding unit server respectively; Matching the region information by utilizing the service region information to obtain target service region information matched with the region information; and determining a target selective forwarding unit server from the local selective forwarding unit servers and the remote selective forwarding unit servers based on the target service region information. Optionally, the matching the region information by using the service region information to obtain target service region information matched with the region information includes: The current outlet bandwidth load value and the outlet bandwidth threshold value corresponding to the local selective forwarding unit server are obtained, and the current outlet bandwidth load value and the outlet bandwidth threshold value corresponding to the selective forwarding unit server in different places are obtained; Determining the new value-added of the export bandwidth of the target distribution data aiming at the local selective forwarding unit server, and determining the new value-added of the export bandwidth of the target distribution data aiming at the different selective forwarding unit servers; Determining a reference selective forwarding unit server from the local selective forwarding unit server and the remote selective forwarding unit server, wherein the sum of the current export bandwidth load value and the new export bandwidth increment of the reference selective forwarding unit server is used as an export bandwidth predicted value, and the export bandwidth predicted value is smaller than or equal to an export bandwidth threshold value of the reference selective forwarding unit server; And matching the region information based on the service region information corresponding to the reference selective forwarding unit server to obtain target service region information matched with the region information. Optionally, the receiving the target distribution data includes: Receiving the target distribution data based on a selective forwarding unit server corresponding to local service region information, wherein the local service region information is region information matched with local region information of a release client corresponding to the target distribution data in the service region information; And taking the selective forwarding unit server receiving the target distribution data as a local selective forwarding unit server corresponding to the release client, and taking the rest selective forwarding unit servers as different-place selective forwarding unit servers corresponding to the release client. Optionally, before t