[go: up one dir, main page]

CN109067817B - Media content flow distribution method and device, electronic equipment and server - Google Patents

Media content flow distribution method and device, electronic equipment and server Download PDF

Info

Publication number
CN109067817B
CN109067817B CN201810556779.3A CN201810556779A CN109067817B CN 109067817 B CN109067817 B CN 109067817B CN 201810556779 A CN201810556779 A CN 201810556779A CN 109067817 B CN109067817 B CN 109067817B
Authority
CN
China
Prior art keywords
media
upstream data
data sources
group
server
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
CN201810556779.3A
Other languages
Chinese (zh)
Other versions
CN109067817A (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810556779.3A priority Critical patent/CN109067817B/en
Publication of CN109067817A publication Critical patent/CN109067817A/en
Application granted granted Critical
Publication of CN109067817B publication Critical patent/CN109067817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a media content flow distribution method, a device, electronic equipment and a server, wherein the method comprises the following steps: determining the flow of the media to be displayed currently; sending a media flow request to be displayed to a server; receiving a media material corresponding to the media traffic request sent by an upstream data source in a target group returned by a server, wherein the target group is determined in at least one group of upstream data sources by the server, and each group of upstream data sources comprises a plurality of upstream data sources with set forwarding priorities; and displaying on the current display interface according to the media materials. The method greatly reduces the probability that the server of the APP cannot obtain the media materials, thereby ensuring that the client can normally display the media materials and greatly improving the use experience of users.

Description

Media content flow distribution method and device, electronic equipment and server
Technical Field
The present invention relates to computer technologies, and in particular, to a method and an apparatus for allocating media content traffic, an electronic device, and a server.
Background
During the operation of an Application (APP), some media materials, such as advertisement materials, may need to be acquired from an external platform to provide more diversified media forms to users using the APP. When the media material is obtained from the external platform, the server of the APP needs to request the media material meeting the flow requirement of the client from the upstream data source according to the flow requirement of the client of the APP.
In the prior art, a server selects an upstream data source and requests media materials from the upstream data source according to a certain rule according to the flow requirement of a client.
However, the method in the prior art may not-effectively acquire the media material from the upstream data source, so that the client cannot display the media material, and the use experience of the user is affected.
Disclosure of Invention
The embodiment of the invention provides a media content flow distribution method and device, electronic equipment and a server, which are used for solving the problem that in the prior art, a client cannot show media materials so as to influence the use experience of a user.
A first aspect of an embodiment of the present invention provides a method for allocating media content traffic, including:
determining the flow of the media to be displayed currently;
sending a media flow request to be displayed to a server;
receiving a media material corresponding to the media traffic request sent by an upstream data source in a target group returned by a server, wherein the target group is determined in at least one group of upstream data sources by the server, and each group of upstream data sources comprises a plurality of upstream data sources with set forwarding priorities;
and displaying on the current display interface according to the media materials.
Further, the media traffic request also carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
A second aspect of the embodiments of the present invention provides a method for allocating media content traffic, including:
receiving a media flow request to be displayed sent by a client;
determining a target group requesting forwarding in at least one group of upstream data sources, wherein each group of upstream data sources comprises a plurality of upstream data sources with set forwarding priorities;
forwarding the media traffic request to an upstream data source within the target group;
and receiving and acquiring media materials corresponding to the media flow requests sent by the upstream data sources in the target group according to the priority sequence in the target group, and forwarding the media materials to the client.
Further, the determining a target group for requesting forwarding in at least one group of upstream data sources includes:
generating a random number;
and in the at least one group of upstream data sources, selecting a target group corresponding to the generated random number according to the preset corresponding relation between the random number and the target group.
Further, the same upstream data sources within different target groups correspond to different priorities.
Further, different target groups correspond to different forwarding probabilities.
Further, the media traffic request also carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
Further, after forwarding the media traffic request to an upstream data source in the target group, the method further includes:
and determining whether the upstream data sources in the target group respond overtime according to the priority sequence.
Further, the forwarding the media material to the client includes:
and sending the media materials returned by the upstream data sources in the target group to the client according to the priority order.
A third aspect of the embodiments of the present invention provides a media content flow distribution apparatus, including:
the determining module is used for determining the flow of the media to be displayed currently;
the sending module is used for sending a media flow request to be displayed to the server;
a receiving module, configured to receive a media material corresponding to the media traffic request sent by an upstream data source in a target group returned by a server, where the target group is determined in at least one group of upstream data sources for the server, and each group of upstream data sources includes multiple upstream data sources with set forwarding priorities;
and the display module is used for displaying on the current display interface according to the media materials.
Further, the media traffic request also carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
A fourth aspect of the present invention provides a media content flow distribution apparatus, including:
the receiving module is used for receiving a media flow request to be displayed, which is sent by a client;
the device comprises a first determining module, a second determining module and a forwarding module, wherein the first determining module is used for determining a target group requesting to be forwarded in at least one group of upstream data sources, and each group of upstream data sources comprises a plurality of upstream data sources with set forwarding priorities;
a sending module, configured to forward the media traffic request to an upstream data source in the target group;
and the processing module is used for receiving and acquiring media materials corresponding to the media flow requests sent by the upstream data sources in the target group according to the priority sequence in the target group and forwarding the media materials to the client.
Further, the first determining module comprises:
a generation unit for generating a random number;
and the selecting unit is used for selecting the target group corresponding to the generated random number in the at least one group of upstream data sources according to the preset corresponding relation between the random number and the target group.
Further, the same upstream data sources within different target groups correspond to different priorities.
Further, different target groups correspond to different forwarding probabilities.
Further, the media traffic request also carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
Further, the method also comprises the following steps:
and the second determining module is used for determining whether the upstream data sources in the target group respond overtime according to the priority sequence.
Further, the processing module comprises:
and the sending unit is used for sending the media materials returned by the upstream data sources in the target group to the client according to the priority order.
A fifth aspect of an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to perform the method steps of the first aspect.
A sixth aspect of an embodiment of the present invention provides a server, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory and executing the method steps of the second aspect.
A seventh aspect of the embodiments of the present invention provides a readable storage medium, where a computer program is stored, where the computer program is configured to execute the media content traffic distribution method according to the first aspect.
An eighth aspect of the embodiments of the present invention provides a readable storage medium, where a computer program is stored, where the computer program is configured to execute the media content traffic distribution method according to the second aspect.
According to the media content flow distribution method and device, the electronic device and the server provided by the embodiment of the invention, after the client sends the media flow request to the server, the server selects one group from the groups of the upstream data sources and forwards the media flow request to all the upstream data sources in the group, so that the probability that the APP server cannot obtain the media materials is greatly reduced, the client can be ensured to normally display the media materials, and the use experience of a user is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without inventive labor.
Fig. 1 is a system architecture diagram of a media content traffic distribution method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a method for distributing media content traffic according to the present invention;
fig. 3 is a schematic flow chart of a second method for distributing media content traffic according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a third embodiment of a media content traffic distribution method according to the present invention;
fig. 5 is a block diagram of a media content flow distribution device according to an embodiment of the present invention;
fig. 6 is a block diagram of a first embodiment of a media content flow distribution device according to another embodiment of the present invention;
fig. 7 is a block diagram of another media content flow distribution apparatus according to a second embodiment of the present invention;
fig. 8 is a block diagram of another media content flow distribution apparatus according to a third embodiment of the present invention;
fig. 9 is a block diagram of another media content flow distribution apparatus according to a fourth embodiment of the present invention;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 11 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Because the upstream data source is the third-party server and the running process of the upstream data source is independent of the server of the APP, in the prior art, after the server of the APP selects one upstream data source and requests the media material from the upstream data source, the situation that the upstream data source does not return the media material to the server of the APP often exists, so that the client cannot display the media material, and the use experience of a user is influenced. In addition, the prior art method cannot guarantee that each upstream data source is requested.
Based on the above problems, embodiments of the present invention provide a media content traffic distribution method, where a plurality of upstream data source packets are preset, each packet includes a plurality of upstream data sources with a set forwarding priority, and when a media material is requested, one of the packets is selected, and a media traffic request is forwarded to all the upstream data sources in the packet, so that a probability that a server of an APP cannot obtain the media material is greatly reduced, thereby ensuring that a client can normally display the media material, and greatly improving user experience.
Fig. 1 is a system architecture diagram of a media content traffic distribution method according to an embodiment of the present invention, as shown in fig. 1, the method involves a client, a server, and at least one upstream data source. The client is an APP client which displays media materials for a user and runs on a terminal such as a mobile phone and a tablet computer, the server is an APP server, and the upstream data source is an upstream data source which provides the media materials for the APP server. Before the method of the embodiment of the present invention is executed, the server of the APP has previously accessed at least one upstream data source, i.e. establishes a communication connection with the server of the APP.
The following first describes a scheme of an embodiment of the present invention from the perspective of an APP client (hereinafter referred to as a client).
Fig. 2 is a schematic flow chart of a first embodiment of a method for distributing media content traffic according to an embodiment of the present invention, where an execution subject of the method is the client, and as shown in fig. 2, the method includes:
s201, determining the flow of the media to be displayed currently.
S202, sending a media flow request to be displayed to a server.
Optionally, during the operation process, the client may reserve a certain flow for some media materials that need to be acquired by the upstream data source, and the reserved flow sizes of different display pages may be different. For example, the traffic reserved by the client for the first page and a certain page inside a certain functional module is not the same in size. Under some specific trigger conditions, the client determines the traffic of the media to be displayed currently for a certain page, and sends a request for the traffic of the media to be displayed to the server.
Illustratively, when the client starts, the client sends a media traffic request to be displayed of a home page to the server to request media materials of a specific traffic.
S203, receiving a media material corresponding to the media flow request sent by an upstream data source in a target group returned by the server, wherein the target group is determined by the server in at least one group of upstream data sources, and each group of upstream data sources comprises a plurality of upstream data sources with set forwarding priorities.
After the client sends a media flow request to the server, the server selects a target group from at least one group of preset upstream data sources, sends the media flow request to each upstream data source in the target group, and further selects one or more media materials from each upstream data source according to the priority to return to the client. The specific implementation will be described in detail in the following examples.
And S204, displaying on the current display interface according to the media materials.
After receiving the media material from the server, the client can display the media material.
Optionally, there may be multiple media materials returned by the server, each media material corresponds to one frame of picture, and the client may display each frame of picture in sequence according to the priority indicated by the server.
In this embodiment, after the client sends the media traffic request to the server, the server selects a group from the groups of the multiple upstream data sources, and forwards the media traffic request to all the upstream data sources in the group, so that the probability that the server of the APP can not obtain the media material is greatly reduced, thereby ensuring that the client can normally display the media material, and greatly improving the user experience.
In an optional implementation manner, the media traffic request further carries at least one of the following parameters:
and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
The following describes aspects of embodiments of the invention from the server perspective.
Fig. 3 is a schematic flow chart of a second embodiment of a media content traffic distribution method according to an embodiment of the present invention, where an execution subject of the method is the server, and as shown in fig. 3, the method includes:
s301, receiving a media flow request to be displayed sent by a client.
S302, determining a target group requesting forwarding in at least one group of upstream data sources, wherein each group of upstream data sources comprises a plurality of upstream data sources with set forwarding priorities.
S303, forwarding the media traffic request to an upstream data source in the target group.
S304, receiving and acquiring media materials corresponding to the media flow requests sent by the upstream data sources in the target group according to the priority sequence in the target group, and forwarding the media materials to the client.
Wherein the at least one set of upstream data sources is predetermined by the server. Optionally, each set of upstream data sources may include a plurality of upstream data sources accessing the server.
Optionally, the same upstream data sources in different target groups correspond to different priorities.
Optionally, different target groups correspond to different forwarding probabilities.
The following is illustrated by a specific example.
Assume that the upstream data source of the current access server has data source a, data source B, and data source C.
Two groups of upstream data sources are prestored on the server, and the method specifically comprises the following steps:
a first group: ABC (i.e. the highest priority for Source A and the lowest priority for Source C)
Second group: CBA (i.e. data Source C has the highest priority and data Source A has the lowest priority)
Meanwhile, the first group corresponds to a forwarding probability of 80%, and the second group corresponds to a forwarding probability of 20%.
When the client continuously initiates a plurality of media traffic requests, 80% of the media traffic requests are forwarded and responded according to the priority of the first group, and the remaining 20% of the media traffic requests are forwarded and responded according to the priority of the second group.
Further, assuming that after the client sends the media traffic request at a certain time, the server chooses to forward the media traffic request according to the first group, and then the server sends the media traffic request to the data source a, the data source B, and the data source C in parallel. Furthermore, the server will receive the media materials corresponding to the media traffic requests sent by the upstream data source in sequence according to the priority order of the first group (i.e. ABC). If the server needs to return a media material to the client, the server returns the media material to the client after acquiring the media material sent by the data source a with the highest priority.
Optionally, the server sends the media material returned by the upstream data source in the target group to the client according to the priority order.
Specifically, after receiving the media materials returned by the upstream data sources, the server may return only the media materials of the upstream data source with the highest priority to the client, or may return the media materials of a plurality of upstream data sources with the highest priority and the second highest priority. For example, the client may instruct the server in the media traffic request to return media material for a two frame picture, and the server may return media material for the two upstream data sources with the highest and next highest priority to the client.
In this embodiment, after the client sends the media traffic request to the server, the server selects a group from the groups of the multiple upstream data sources, and forwards the media traffic request to all the upstream data sources in the group, so that the probability that the server of the APP can not obtain the media material is greatly reduced, thereby ensuring that the client can normally display the media material, and greatly improving the user experience.
In addition, some upstream data sources have minimum requirements for the minimum daily request amount of the APP server, and if not, may disqualify access to the APP server. The method in the prior art cannot guarantee that the APP server reaches the minimum request amount (for example, if the APP server selects an upstream data source according to the priority of the upstream data source, the upstream data source with a low priority will not be requested all the time), but the method in this embodiment makes some upstream data sources with a lower priority have an opportunity to be accessed. For example, in the above example, the actual situation is that the priority of data source A is the highest and the priority of data source C is the lowest. When the group of upstream data sources is set, two groups may be set, and the traffic forwarding probability of the first group (ABC) is set to 80% and the traffic forwarding probability of the second group (CBA) is set to 20%. In 80% of cases, the server of APP requests the data source a with the highest priority for the material content, and in 20% of cases, the server of APP also requests the data source C for the material content, so that the data source C can be requested, and the minimum daily request amount of the data source C is guaranteed to be met.
On the basis of the above embodiments, the present embodiment relates to a specific method for determining a target group by a server.
Fig. 4 is a schematic flow chart of a third embodiment of a media content traffic distribution method according to an embodiment of the present invention, as shown in fig. 4, the method includes:
s401, a media flow request to be displayed sent by a client is received.
S402, generating a random number.
And S403, selecting a target group corresponding to the generated random number in the at least one group of upstream data sources according to the preset corresponding relation between the random number and the target group.
For example, assume that the upstream data sources of the current access server are data source a, data source B, and data source C.
Two groups of data sources are prestored on the server, and the method specifically comprises the following steps:
a first group: ABC (i.e. the highest priority for Source A and the lowest priority for Source C)
Second group: CBA (i.e. data Source C has the highest priority and data Source A has the lowest priority)
Meanwhile, the first group corresponds to a forwarding probability of 80%, and the second group corresponds to a forwarding probability of 20%.
Meanwhile, the server sets the range of the generated random numbers to be an integer of 1 to 10, and the correspondence relationship between the server set random numbers and the groups is shown in the following table 1.
TABLE 1
Random number Group of
1、2、3、4、5、6、7、8 First group
9、10 Second group
According to the correspondence relationship of table 1, the first group is selected in 80% of cases, and the second group is selected in 20% of cases.
Then, after receiving the media traffic request sent by the client, the server first generates a random number, and then determines the group selected this time according to table 1 above. For example, if the random number generated this time is 8, the first group is selected, that is, the media material is received and acquired according to the priority of the first group.
S404, forwarding the media flow request to an upstream data source in the target group.
S405, according to the priority sequence in the target group, receiving and acquiring media materials corresponding to the media traffic request sent by the upstream data source in the target group, and forwarding the media materials to the client.
The execution process of the steps S401, S404, and S405 may specifically refer to the second embodiment, and will not be described herein again.
In an optional implementation manner, the media traffic request further carries at least one of the following parameters:
and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
For example, if the media traffic request carries a terminal operating system, the upstream data source may select a media material matching the terminal operating system according to the terminal operating system.
For another example, the media traffic request carries a geographic location of the client, and the upstream data source may select a media material (e.g., an advertisement) in the geographic location according to the geographic location.
Optionally, the user information may refer to information such as gender, occupation, age, and the like of the user.
In an optional implementation manner, after the step S303 is executed, that is, after the server forwards the media traffic request to the upstream data source in the target group, the method further includes:
and determining whether the upstream data sources in the target group respond overtime according to the priority sequence.
Optionally, the server sets a timeout waiting time for each upstream data source in the target group, and further determines whether the upstream data source in the target group responds overtime according to the priority order.
For example, assuming this time the forwarding is done according to the first group (ABC), the server first determines if data source a responds time out based on the time-out latency. If the data source A responds overtime, whether the data source B responds overtime is continuously confirmed, and if the data source B does not respond overtime, the material content returned by the data source B is returned to the client.
Fig. 5 is a block diagram of a media content traffic distribution apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes:
a determining module 501, configured to determine a flow rate of a current media to be displayed.
A sending module 502, configured to send a media traffic request to be displayed to a server.
A receiving module 503, configured to receive a media material corresponding to the media traffic request sent by an upstream data source in a target group returned by the server, where the target group is determined in at least one group of upstream data sources for the server, and each group of upstream data sources includes multiple upstream data sources with set forwarding priorities.
And the display module 504 is configured to display the media material on a current display interface according to the media material.
In the device, after the customer end sent the media flow request to the server, the server selected a packet from the grouping of a plurality of upstream data sources to forward the media flow request to all upstream data sources in the packet, thereby make APP's server can't obtain the probability greatly reduced of media material, thereby guarantee that the customer end can normally show the media material, greatly promote user's use and experience.
In another embodiment, the media traffic request further carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
Fig. 6 is a block diagram of a first embodiment of a media content flow distribution device according to another embodiment of the present invention, as shown in fig. 6, the device includes:
the receiving module 601 is configured to receive a media traffic request to be displayed, where the media traffic request is sent by a client.
A first determining module 602, configured to determine a target group to request forwarding among at least one group of upstream data sources, where each group of upstream data sources includes multiple upstream data sources with set forwarding priorities.
A sending module 603, configured to forward the media traffic request to an upstream data source in the target group.
The processing module 604 is configured to receive, according to the priority order in the target group, a media material corresponding to the media traffic request sent by the upstream data source in the target group, and forward the media material to the client.
In the device, after the customer end sent the media flow request to the server, the server selected a packet from the grouping of a plurality of upstream data sources to forward the media flow request to all upstream data sources in the packet, thereby make APP's server can't obtain the probability greatly reduced of media material, thereby guarantee that the customer end can normally show the media material, greatly promote user's use and experience.
In addition, some upstream data sources have minimum requirements for the minimum daily request amount of the APP server, and if not, may disqualify access to the APP server. The method in the prior art cannot guarantee that the APP server reaches the minimum request amount (for example, if the APP server selects an upstream data source according to the priority of the upstream data source, the upstream data source with a low priority will not be requested all the time), and the apparatus makes some upstream data sources with a lower priority have an opportunity to be accessed. For example, in the above example, the actual situation is that the priority of data source A is the highest and the priority of data source C is the lowest. When the group of data sources is set, two groups may be set, and the traffic forwarding probability of the first group (ABC) is set to 80% and the traffic forwarding probability of the second group (CBA) is set to 20%. In 80% of cases, the server of APP requests the data source a with the highest priority for the material content, and in 20% of cases, the server of APP also requests the data source C for the material content, so that the data source C can be requested, and the minimum daily request amount of the data source C is guaranteed to be met.
Fig. 7 is a block diagram of another media content traffic distribution apparatus according to a second embodiment of the present invention, as shown in fig. 7, the apparatus includes:
the receiving module 601 is configured to receive a media traffic request to be displayed, where the media traffic request is sent by a client.
A first determining module 602, configured to determine a target group to request forwarding among at least one group of upstream data sources, where each group of upstream data sources includes multiple upstream data sources with set forwarding priorities.
A sending module 603, configured to forward the media traffic request to an upstream data source in the target group.
The processing module 604 is configured to receive, according to the priority order in the target group, a media material corresponding to the media traffic request sent by the upstream data source in the target group, and forward the media material to the client.
The first determining module 602 includes:
a generating unit 6021 for generating a random number.
A selecting unit 6022 configured to select a target group corresponding to the generated random number in the at least one upstream data source according to a preset correspondence between the random number and the target group.
In another embodiment, the same upstream data sources within different target groups correspond to different priorities.
In another embodiment, different target groups correspond to different forwarding probabilities.
In another embodiment, the media traffic request further carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
Fig. 8 is a block diagram of another media content traffic distribution apparatus according to a third embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
the receiving module 601 is configured to receive a media traffic request to be displayed, where the media traffic request is sent by a client.
A first determining module 602, configured to determine a target group to request forwarding among at least one group of upstream data sources, where each group of upstream data sources includes multiple upstream data sources with set forwarding priorities.
A sending module 603, configured to forward the media traffic request to an upstream data source in the target group.
The processing module 604 is configured to receive, according to the priority order in the target group, a media material corresponding to the media traffic request sent by the upstream data source in the target group, and forward the media material to the client.
The first determining module 602 includes:
a generating unit 6021 for generating a random number.
A selecting unit 6022 configured to select a target group corresponding to the generated random number in the at least one upstream data source according to a preset correspondence between the random number and the target group.
Further comprising:
a second determining module 605, configured to determine whether an upstream data source in the target group responds with a timeout according to the priority order.
Fig. 9 is a block diagram of a fourth embodiment of a media content traffic distribution apparatus according to an embodiment of the present invention, and as shown in fig. 9, the apparatus includes:
the receiving module 601 is configured to receive a media traffic request to be displayed, where the media traffic request is sent by a client.
A first determining module 602, configured to determine a target group to request forwarding among at least one group of upstream data sources, where each group of upstream data sources includes multiple upstream data sources with set forwarding priorities.
A sending module 603, configured to forward the media traffic request to an upstream data source in the target group.
The processing module 604 is configured to receive, according to the priority order in the target group, a media material corresponding to the media traffic request sent by the upstream data source in the target group, and forward the media material to the client.
The first determining module 602 includes:
a generating unit 6021 for generating a random number.
A selecting unit 6022 configured to select a target group corresponding to the generated random number in the at least one upstream data source according to a preset correspondence between the random number and the target group.
Further comprising:
a second determining module 605, configured to determine whether an upstream data source in the target group responds with a timeout according to the priority order.
The processing module 604 includes:
a sending unit 6041, configured to send the media material returned by the upstream data source in the target group to the client according to the priority order.
Fig. 10 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 10, the electronic device includes:
memory 1001 for storing program instructions.
The processor 1002 is configured to call and execute the program instructions in the memory 1001, and perform the method steps performed by the client in the foregoing method embodiments.
Fig. 11 is a block diagram of an entity of a server according to an embodiment of the present invention, and as shown in fig. 11, the server includes:
a memory 1101 for storing program instructions.
The processor 1102 is configured to call and execute the program instructions in the memory 1101 to perform the method steps performed by the server of the APP in the above method embodiment.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A media content traffic distribution method, comprising:
determining the flow of the media to be displayed currently;
sending a media flow request to be displayed to a server;
receiving a media material corresponding to the media traffic request sent by an upstream data source in a target group returned by a server, wherein the target group is determined by the server in at least one group of upstream data sources according to the corresponding relation between a preset random number and the target group and corresponds to the random number generated by the server; each group of the upstream data sources comprises a plurality of upstream data sources with set forwarding priority; the same upstream data sources in different target groups correspond to different priorities, and different target groups correspond to different forwarding probabilities;
and displaying on the current display interface according to the media materials.
2. The method according to claim 1, wherein the media traffic request further carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
3. A media content traffic distribution method, comprising:
receiving a media flow request to be displayed sent by a client;
generating a random number;
in at least one group of upstream data sources, selecting a target group corresponding to the generated random number according to the preset corresponding relation between the random number and the target group; each group of the upstream data sources comprises a plurality of upstream data sources with set forwarding priority; the same upstream data sources in different target groups correspond to different priorities, and different target groups correspond to different forwarding probabilities;
forwarding the media traffic request to an upstream data source within the target group;
and receiving and acquiring media materials corresponding to the media flow requests sent by the upstream data sources in the target group according to the priority sequence in the target group, and forwarding the media materials to the client.
4. The method according to claim 3, wherein the media traffic request further carries at least one of the following parameters: and one or more of a terminal operating system, the geographic position of the client, user information and application program version information are used for the upstream data source to determine the media material according to the parameters.
5. The method of claim 3, wherein after forwarding the media traffic request to an upstream data source in the target group, further comprising:
and determining whether the upstream data sources in the target group respond overtime according to the priority sequence.
6. The method of claim 3, wherein forwarding the media material to the client comprises:
and sending the media materials returned by the upstream data sources in the target group to the client according to the priority order.
7. A media content traffic distribution apparatus, comprising:
the determining module is used for determining the flow of the media to be displayed currently;
the sending module is used for sending a media flow request to be displayed to the server;
a receiving module, configured to receive a media material corresponding to the media traffic request sent by an upstream data source in a target group returned by a server, where the target group is a target group corresponding to a random number generated by the server and determined by the server in at least one group of upstream data sources according to a preset correspondence between the random number and the target group; each group of the upstream data sources comprises a plurality of upstream data sources with set forwarding priority; the same upstream data sources in different target groups correspond to different priorities, and different target groups correspond to different forwarding probabilities;
and the display module is used for displaying on the current display interface according to the media materials.
8. A media content traffic distribution apparatus, comprising:
the receiving module is used for receiving a media flow request to be displayed, which is sent by a client;
the device comprises a first determining module, a second determining module and a forwarding module, wherein the first determining module is used for determining a target group requesting to be forwarded in at least one group of upstream data sources, and each group of upstream data sources comprises a plurality of upstream data sources with set forwarding priorities; the same upstream data sources in different target groups correspond to different priorities, and different target groups correspond to different forwarding probabilities;
a sending module, configured to forward the media traffic request to an upstream data source in the target group;
the processing module is used for receiving and acquiring media materials corresponding to the media flow requests sent by the upstream data sources in the target group according to the priority sequence in the target group and forwarding the media materials to the client;
the first determining module includes: a generation unit for generating a random number; and the selecting unit is used for selecting the target group corresponding to the generated random number in the at least one group of upstream data sources according to the preset corresponding relation between the random number and the target group.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory for performing the method steps of claim 1 or 2.
10. A server, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory for performing the method steps of any of claims 3-6.
11. A readable storage medium, characterized in that a computer program is stored therein for executing the media content traffic distribution method according to claim 1 or 2.
12. A readable storage medium, wherein a computer program is stored in the readable storage medium, the computer program being configured to execute the media content traffic distribution method according to any one of claims 3 to 6.
CN201810556779.3A 2018-05-31 2018-05-31 Media content flow distribution method and device, electronic equipment and server Active CN109067817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556779.3A CN109067817B (en) 2018-05-31 2018-05-31 Media content flow distribution method and device, electronic equipment and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556779.3A CN109067817B (en) 2018-05-31 2018-05-31 Media content flow distribution method and device, electronic equipment and server

Publications (2)

Publication Number Publication Date
CN109067817A CN109067817A (en) 2018-12-21
CN109067817B true CN109067817B (en) 2021-12-07

Family

ID=64819850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556779.3A Active CN109067817B (en) 2018-05-31 2018-05-31 Media content flow distribution method and device, electronic equipment and server

Country Status (1)

Country Link
CN (1) CN109067817B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829753B (en) * 2019-01-08 2023-04-14 聚好看科技股份有限公司 Method and equipment for distributing flow to advertisement orders
CN110740180B (en) * 2019-10-17 2022-03-04 北京奇艺世纪科技有限公司 Multimedia resource scheduling method and device and scheduling server
CN118827739A (en) * 2023-10-31 2024-10-22 聚好看科技股份有限公司 A server, a display device and a version adaptation method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025971A (en) * 2010-12-15 2011-04-20 广东威创视讯科技股份有限公司 Dynamic distribution method of video session media server resources
CN101754206B (en) * 2009-12-25 2012-08-29 中国科学技术大学苏州研究院 Multi-dimensional en-route filtering method of wireless sensor network
CN103218404A (en) * 2013-03-20 2013-07-24 华中科技大学 Multi-dimensional metadata management method and system based on association characteristics
CN103580988A (en) * 2012-07-31 2014-02-12 阿里巴巴集团控股有限公司 Method for message receiving, pushing and transmitting, device, server group and system
CN103595749A (en) * 2012-08-16 2014-02-19 亿赞普(北京)科技有限公司 Internet advertisement scheduling method and device, internet advertisement system
CN104144223A (en) * 2014-08-21 2014-11-12 北京奇艺世纪科技有限公司 Data obtaining method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7707245B2 (en) * 2000-02-22 2010-04-27 Harvey Lunenfeld Metasearching a client's request for displaying different order books on the client
CN102014066B (en) * 2010-12-13 2012-07-04 武汉大学 Data caching management method in overlay network
CN102624922B (en) * 2012-04-11 2014-08-13 武汉大学 Method for balancing load of network GIS heterogeneous cluster server
WO2014026247A1 (en) * 2012-08-16 2014-02-20 Captioning Studio Technologies Pty Ltd Method and system for providing relevant portions of multi-media based on text searching of multi-media
US20140093219A1 (en) * 2012-09-28 2014-04-03 NoiseToys Inc. Multiple Data Source Aggregation for Efficient Synchronous Multi-Device Media Consumption

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754206B (en) * 2009-12-25 2012-08-29 中国科学技术大学苏州研究院 Multi-dimensional en-route filtering method of wireless sensor network
CN102025971A (en) * 2010-12-15 2011-04-20 广东威创视讯科技股份有限公司 Dynamic distribution method of video session media server resources
CN103580988A (en) * 2012-07-31 2014-02-12 阿里巴巴集团控股有限公司 Method for message receiving, pushing and transmitting, device, server group and system
CN103595749A (en) * 2012-08-16 2014-02-19 亿赞普(北京)科技有限公司 Internet advertisement scheduling method and device, internet advertisement system
CN103218404A (en) * 2013-03-20 2013-07-24 华中科技大学 Multi-dimensional metadata management method and system based on association characteristics
CN104144223A (en) * 2014-08-21 2014-11-12 北京奇艺世纪科技有限公司 Data obtaining method and device

Also Published As

Publication number Publication date
CN109067817A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109788020B (en) Agent distribution method and related equipment
CN105553870B (en) Service request distribution method and device
CN105933213B (en) Chat message processing method, related equipment and system
JP2022525365A (en) Data processing methods and devices, electronic devices, terminal devices and computer programs
CN109067817B (en) Media content flow distribution method and device, electronic equipment and server
CN114155026B (en) Resource allocation method, device, server and storage medium
CN110620681A (en) Network connection timeout time setting method, device, equipment and medium
CN111586437B (en) Barrage message processing method, system, computing device and storage medium
CN114153581A (en) Data processing method, data processing device, computer equipment and storage medium
CN113743979B (en) Virtual resource allocation method, device, computer equipment and storage medium
CN111431818A (en) Cross-domain request traffic distribution method and device, storage medium and computer equipment
CN110928887A (en) Data processing method and device
CN114828235A (en) Bandwidth allocation method, bandwidth allocation device and computer-readable storage medium
CN106330504A (en) Method for realizing application and service controller
CN110995827B (en) Communication processing method and device, computer readable medium and electronic equipment
CN110708386A (en) Page display method, terminal device and server
CN109302743B (en) A method and device for planning time-frequency resources
CN107580253B (en) Error-reporting page processing method and device, set top box and storage medium
US20160112525A1 (en) Distribution control device and method for same, push distribution system, and storage medium
CN109379704B (en) Method, device and equipment for correcting regional information of short message and storage medium
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN113518459B (en) Resource scheduling processing method and device and electronic equipment
CN110475031B (en) Call system, call processing method, server, and readable storage medium
CN110099179B (en) Number updating method and device
CN115002749A (en) IP address allocation method, device, storage medium and electronic equipment

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