CN111464824A - Message sending method and system, server and storage medium - Google Patents

Message sending method and system, server and storage medium Download PDF

Info

Publication number
CN111464824A
CN111464824A CN202010260281.XA CN202010260281A CN111464824A CN 111464824 A CN111464824 A CN 111464824A CN 202010260281 A CN202010260281 A CN 202010260281A CN 111464824 A CN111464824 A CN 111464824A
Authority
CN
China
Prior art keywords
message
identification information
specified
server
mark
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
CN202010260281.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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010260281.XA priority Critical patent/CN111464824A/en
Publication of CN111464824A publication Critical patent/CN111464824A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2542Management at additional data server, e.g. shopping server, rights management server for selling goods, e.g. TV shopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/47815Electronic shopping

Abstract

The disclosure relates to a message sending method and system, a server and a storage medium. Wherein, the method comprises the following steps: a message calling server receives a designated message sent to a designated client by a live broadcast service server; the message calling server acquires identification information corresponding to the specified client, and adds a mark to the specified message according to the identification information to obtain a mark-carried message; and the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information. The identification information corresponding to the appointed client is added to the message needing to be sent to the appointed client through the message calling server to serve as the mark, so that when the direct broadcast connection server conducts message transmission, the mark can be recognized to obtain the corresponding identification information, the appointed message is sent to the appointed client according to the identification information, and the direct broadcast service server can send the appointed message to the appointed audience client.

Description

Message sending method and system, server and storage medium
Technical Field
The present disclosure relates to the field of message transmission technologies, and in particular, to a message sending method and system, a server, and a storage medium.
Background
With the rapid development of internet technology, the live broadcast industry receives wide attention. In the live broadcast process, the anchor client acquires live broadcast video streams of the anchor and sends the live broadcast video streams to corresponding audience clients in a broadcast mode through a live broadcast server so that each audience client displays the live broadcast video streams.
In the related live broadcast technology, besides the video stream, the live broadcast server needs to issue a downstream message, such as a live comment, a top notification, and the like, to the viewer client in the live broadcast room. After receiving the downlink message, the viewer client triggers the operations of displaying, popping windows and the like. However, the downstream message can currently only be broadcast to all viewer clients.
Therefore, the current message sending method cannot realize the function of sending the message to the specified audience client.
Disclosure of Invention
The present disclosure provides a message sending method and system to at least solve the problem in the related art that sending a message to a specified viewer client cannot be realized. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a message sending method is provided, where the message sending method includes:
a message calling server receives a designated message sent to a designated client by a live broadcast service server;
the message calling server acquires identification information corresponding to the specified client, and adds a mark to the specified message according to the identification information to obtain a mark-carried message;
and the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information.
In one embodiment, the message sending method further includes:
the message calling server packages the mark carrying message into a corresponding control signaling;
the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information, and the steps comprise:
and the live broadcast connection server analyzes the control signaling, acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to a specified client corresponding to the identification information.
In one embodiment, the tag carries a plurality of messages; the message sending method further comprises the following steps:
the message aggregation server aggregates the messages carried by the multiple marks to obtain an aggregation result;
the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information, and the steps comprise:
and the live broadcast connection server splits the aggregation result to obtain the plurality of mark carrying messages, acquires the identification information in each mark carrying message, and sends the specified message contained in each mark carrying message to the specified client corresponding to the identification information.
According to a second aspect of the embodiments of the present disclosure, there is provided a message sending method, including:
a message calling server receives a message sent to a client by a live broadcast service server, wherein the message comprises a designated message and a non-designated message, and the designated message is a message sent to a designated client;
the message calling server acquires identification information corresponding to the specified client, and adds a mark to the specified message according to the identification information to obtain a mark-carried message;
and the live broadcast connection server acquires the mark carrying message and the non-specified message, acquires the identification information in the mark carrying message, sends the specified message contained in the mark carrying message to a specified client corresponding to the identification information, and sends the non-specified message to all clients.
In one embodiment, the message sending method further includes:
the message calling server packages the mark carrying message into a corresponding control signaling;
the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information, and the steps comprise:
and the live broadcast connection server analyzes the control signaling, acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to a specified client corresponding to the identification information.
In one embodiment, the message sending method further includes:
the message aggregation server aggregates the mark carrying message and the non-specified message to obtain an aggregation result;
the step of the live broadcast connection server acquiring the mark carrying message and the non-specified message comprises the following steps:
and the live broadcast connection server splits the aggregation result to obtain the mark carrying message and the non-specified message.
According to a third aspect of embodiments of the present disclosure, there is provided a message sending system including a message invoking server and a live connection server, wherein,
the message calling server is configured to receive a specified message sent by a live broadcast service server to a specified client;
the message calling server is also configured to execute the steps of acquiring identification information corresponding to the specified client, and adding a mark to the specified message according to the identification information to obtain a mark-carried message;
the live broadcast connection server is configured to acquire the identification information in the tag carrying message and send the specified message contained in the tag carrying message to the specified client corresponding to the identification information.
In one embodiment, the message invoking server is further configured to perform encapsulating the tag carrying message into corresponding control signaling;
and the live broadcast connection service appliance is configured to analyze the control signaling, acquire the identification information in the mark carrying message and send the specified message contained in the mark carrying message to the specified client corresponding to the identification information.
In one embodiment, the message sending system further comprises a message aggregation server,
the message aggregation server is configured to perform aggregation on a plurality of tag-carried messages to obtain an aggregation result;
the live connection service appliance is configured to split the aggregation result to obtain the plurality of tag carrying messages, obtain the identification information in each tag carrying message, and send the specified message contained in each tag carrying message to the specified client corresponding to the identification information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a message transmission system including a message invocation server and a live connection server, wherein,
the message calling server is configured to receive a message sent by a live broadcast service server to a client, wherein the message comprises a designated message and a non-designated message, and the designated message is a message sent to a designated client;
the message calling server is also configured to execute the steps of acquiring identification information corresponding to the specified client, and adding a mark to the specified message according to the identification information to obtain a mark-carried message;
the live connection server is configured to execute acquisition of the tag carrying message and the non-specific message, acquire identification information in the tag carrying message, send the specific message contained in the tag carrying message to a specific client corresponding to the identification information, and send the non-specific message to all clients.
In one embodiment, the message invoking server is further configured to perform encapsulating the tag carrying message into corresponding control signaling;
and the live broadcast connection service appliance is configured to analyze the control signaling, acquire the identification information in the mark carrying message and send the specified message contained in the mark carrying message to the specified client corresponding to the identification information.
In one embodiment, the message sending system further comprises a message aggregation server,
the message aggregation server is configured to perform aggregation on the tag carrying message and the non-specified message to obtain an aggregation result;
the live connection server is configured to split the aggregation result to obtain the tag-carried message and the unspecified message.
According to a fifth aspect of embodiments of the present disclosure, there is provided a server including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the message sending method in any of the above embodiments.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions of the storage medium, when executed by a processor of a server, enable the server to perform the message sending method described in any one of the above embodiments.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product, the program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, so that the device performs the message sending method described in any one of the above embodiments.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the message sending method and system, the server and the storage medium, the identification information corresponding to the specified client is added to the message needing to be sent to the specified client through the message calling server to serve as the mark, so that when the live broadcast connection server conducts message broadcasting, the mark can be recognized to obtain the corresponding identification information, and then the specified message is sent to the specified client according to the identification information. It can be appreciated that the present disclosure enables the functionality of a live service server sending a specified message to a specified viewer client during a live process.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating an application environment for a messaging method, according to an example embodiment.
Fig. 2 is a flow chart illustrating a method of messaging according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of messaging according to another exemplary embodiment.
Fig. 4 is a flow chart illustrating a method of messaging according to an example embodiment.
Fig. 5 is a flow chart illustrating a method of messaging according to another exemplary embodiment.
Fig. 6 is a diagram illustrating an application environment for a messaging method in accordance with an exemplary embodiment.
Fig. 7 is an internal block diagram of a server according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The message sending method provided by the present disclosure may be applied to an application environment as shown in fig. 1. Each live broadcast service server 102 interacts with a message call server 104 through a network, the message call server 104 interacts with a live broadcast connection server 106 through the network, and the live broadcast connection server 106 interacts with each client 108 through the network. Specifically, each live broadcast service server 102 sends a respective designated message transmitted to a designated client to the message call server 104; the message call server 104 acquires identification information corresponding to the specified client, adds a mark to the specified message according to the identification information to obtain a mark carrying message, and sends the mark carrying message to the live broadcast connection server 106; the live connection server 106 obtains the identification information in the tag carrying message, and searches all the clients 108 according to the identification information, so as to send the specified message contained in the tag carrying message to the specified client corresponding to the identification information.
Fig. 2 is a flowchart illustrating a message sending method according to an exemplary embodiment, as shown in fig. 2, the message sending method includes the following steps:
in step S202, the message call server receives a specified message sent by the live service server to a specified client.
The live broadcast service server is used for generating a live broadcast service request, wherein the request comprises various messages to be sent. The live broadcast service includes various functions set in the live broadcast room, such as a red envelope function, a wish list function, and a shopping function. The live broadcast service can be triggered by a spectator client or a main broadcast client, and can also be automatically triggered by a live broadcast service server when the specified time is met. The message calling server is used for calling messages to be sent in each live broadcast service server. Alternatively, the message call server may be a remote call server, i.e. an RPC server. The designated client is typically referred to as the viewer client.
Specifically, in an application scenario, assuming that the anchor wants to invite viewer a to shop, the anchor needs to trigger a corresponding shopping function on its anchor client, and at this time, the anchor client sends a corresponding specific message, such as an invite shopping message, and specific client information, such as client information of viewer a, to the message call server, so that the message call server can further process the specific message.
In step S204, the message call server obtains the identification information corresponding to the specified client, and adds a tag to the specified message according to the identification information, so as to obtain a tag-carried message.
The identification information corresponding to the client is used for distinguishing and identifying different clients. The identification information may be the ID of the client or a device fingerprint.
Specifically, after obtaining the specified message and the specified client information, the message call server first obtains identification information corresponding to the specified client, for example, a client ID. Next, the message call server adds a mark to the specified message according to the identification information, for example, the client ID is used as the mark of the specified message, so that the specified message has the attribute information of the sending object, and the finally obtained message is called a mark carrying message. It can be understood that the tag carrying message contains the designated message and the identification information corresponding to the designated client.
In step S206, the live connection server obtains the identification information in the tag carrying message, and sends the specified message included in the tag carrying message to the specified client corresponding to the identification information.
The live broadcast connection server is used for providing communication connection service during live broadcast. Alternatively, the live connection server may be a live long connection server or a live short connection server. When the live broadcast long connection server is included, all the clients are connected to the live broadcast long connection server through a Transmission Control Protocol (TCP).
Specifically, after obtaining the tag carrying message, the message call server sends the tag carrying message to the live connection server for broadcasting. The live broadcast connection server firstly acquires the identification information in the mark carrying message, and then matches a corresponding client in the live broadcast room according to the identification information, so that the appointed message contained in the mark carrying message is sent to the appointed client. For example, the above-described invite shopping message is transmitted to the client of viewer a.
In the message sending method, the identification information corresponding to the specified client is added to the message needing to be sent to the specified client through the message calling server as the mark, so that when the live broadcast connection server conducts message transmission, the mark can be recognized to obtain the corresponding identification information, and the specified message is sent to the specified client according to the identification information. It can be understood that the method realizes the function that the direct broadcast service server can send the specified message to the specified audience client in the direct broadcast process.
In an exemplary embodiment, as shown in fig. 3, the message sending method further includes the following steps:
in step S212, the message invoking server encapsulates the tag carrying message into corresponding control signaling.
The control signaling is composed of fields, and the label carrying message is a section of field in the control signaling.
Step S206 includes the steps of:
in step S2062, the live connection server parses the control signaling, obtains the identification information in the tag carrying message, and sends the specified message included in the tag carrying message to the specified client corresponding to the identification information.
Specifically, after encapsulating the tag-carrying message into a corresponding control signaling, the message call server sends the control signaling to the live connection server. After obtaining the control signaling, the live broadcast connection server firstly analyzes the control signaling to obtain the identification information in the mark carrying message, and then matches the corresponding client in the live broadcast room according to the identification information, so as to send the specified message contained in the mark carrying message to the specified client.
In this embodiment, the transmission of the designated message is realized by using a control signaling manner, so that the stability and efficiency of message transmission can be improved.
In general, in an actual live scene, the number of designated messages is plural, and correspondingly, the number of tag-carried messages is also plural. In an exemplary embodiment, the message sending method further includes the steps of:
in step S222, the message aggregation server aggregates the multiple tag-carried messages to obtain an aggregation result.
Specifically, after obtaining a plurality of tag carrying messages, the message call server first writes the tag carrying messages into a message storage queue. Then, the message aggregation server periodically pulls unaggregated tag-carried messages from the message storage queue according to a preset time interval, aggregates the unaggregated tag-carried messages, namely encapsulates the unaggregated tag-carried messages into a whole, and finally obtains an aggregation result. Optionally, the message aggregation server may write the aggregation result into another message storage queue for storage.
Step S206 includes the steps of:
in step S206a, the live connection server splits the aggregation result to obtain a plurality of tag-carrying messages, obtains the identification information in each tag-carrying message, and sends the specified message included in each tag-carrying message to the specified client corresponding to the identification information.
Specifically, after the message aggregation server obtains the aggregation result, the aggregation result is sent to the live connection server. After the live broadcast connection server obtains the aggregation result, the aggregation result is firstly split to obtain a plurality of mark carrying messages, then the identification information in each mark carrying message is obtained, and the corresponding client in the live broadcast room is matched according to the identification information, so that the appointed message contained in each mark carrying message is sent to the appointed client.
In this embodiment, a plurality of scattered tags carrying messages are aggregated to be transmitted as a whole, so that the messages can be prevented from being lost or mistakenly transmitted under the condition of a large message volume, and the reliability and accuracy of message transmission are improved.
Optionally, in an exemplary embodiment, the message storage queue may be implemented using Redis Zset.
Based on the same inventive concept, fig. 4 is a flowchart illustrating a message transmission method according to an exemplary embodiment, as shown in fig. 4, the message transmission method includes the following steps:
in step S302, the message invoking server receives a message sent by the live service server to the client.
The messages comprise designated messages and non-designated messages, the designated messages are messages sent to designated clients, and the non-designated messages are messages sent to all the clients.
Optionally, referring to fig. 6, the live service server is divided into a first live service server and a second live service server, and the message call server is also divided into a first message call server such as a first RPC server and a second message call server such as a second RPC server. The first direct broadcast service server sends a non-specified message to the first message calling server, and the second direct broadcast service server sends a specified message to the second message calling server. Therefore, the multiple hardware devices are adopted, the message is prevented from being blocked, the message transmission efficiency can be improved, the hardware devices with specific functions are adopted to process the messages of corresponding types, the error rate of the messages is greatly reduced, and the stability and the accuracy of the message transmission are improved.
In step S304, the message call server obtains identification information corresponding to the specified client, and adds a tag to the specified message according to the identification information, so as to obtain a tag-carried message.
Specifically, after obtaining the specified message and the specified client information, the message call server first obtains identification information corresponding to the specified client, for example, a client ID. Next, the message call server adds a mark to the specified message according to the identification information, for example, the client ID is used as the mark of the specified message, so that the specified message has the attribute information of the sending object, and the finally obtained message is called a mark carrying message.
In step S306, the live connection server obtains the tag carrying message and the non-specific message, obtains the identification information in the tag carrying message, sends the specific message included in the tag carrying message to the specific client corresponding to the identification information, and sends the non-specific message to all clients.
Specifically, after obtaining the tag carrying message, the message call server sends the tag carrying message to the live connection server for broadcasting. The live broadcast connection server firstly acquires the identification information in the mark carrying message, and then matches a corresponding client in the live broadcast room according to the identification information, so that the appointed message contained in the mark carrying message is sent to the appointed client. For example, the above-described invite shopping message is transmitted to the client of viewer a. And after obtaining the non-specified message, the message calling server broadcasts the non-specified message to all the audience clients in the live broadcast room.
According to the message sending method, the identification information corresponding to the specified client is added to the message needing to be sent to the specified client through the message calling server to serve as the mark of the message, so that when the live broadcast connection server conducts message transmission, the mark can be recognized to obtain the corresponding identification information, and the specified message is sent to the specified client according to the identification information. It can be understood that the method realizes the function that the direct broadcast service server can send the specified message to the specified audience client in the direct broadcast process.
In an exemplary embodiment, as shown in fig. 5, the message sending method further includes the following steps:
in step S312, the message invoking server encapsulates the tag carrying message into corresponding control signaling.
The control signaling is composed of fields, and the label carrying message is a section of field in the control signaling.
Step S306 includes the steps of:
in step S3062, the live connection server parses the control signaling, obtains the identification information in the tag carrying message, and sends the specific message included in the tag carrying message to the specific client corresponding to the identification information.
Specifically, after encapsulating the tag-carrying message into a corresponding control signaling, the message call server sends the control signaling to the live connection server. After obtaining the control signaling, the live broadcast connection server firstly analyzes the control signaling to obtain the identification information in the mark carrying message, and then matches the corresponding client in the live broadcast room according to the identification information, so as to send the specified message contained in the mark carrying message to the specified client.
In this embodiment, the transmission of the designated message is realized by using a control signaling manner, so that the stability and efficiency of message transmission can be improved.
Generally, in an actual live scene, the number of unspecified messages and the number of specified messages may be multiple, and correspondingly, the number of tag carrying messages is also multiple. In an exemplary embodiment, the message sending method further includes the steps of:
in step S322, the message aggregation server aggregates the tag-carried message and the non-specific message to obtain an aggregation result.
Specifically, after obtaining a plurality of tag carrying messages and non-specific messages, the message call server first writes the tag carrying messages and the non-specific messages into a message storage queue according to respective message types. In the message storage queue, each message type has a corresponding message storage queue, and the messages corresponding to each message type are put into the corresponding message storage queue. Then, the message aggregation server periodically pulls unaggregated tag carrying messages and non-specific messages from the message storage queue according to a preset time interval, and aggregates the unaggregated tag carrying messages and the non-specific messages, namely encapsulates the unaggregated tag carrying messages and the non-specific messages into a whole, and finally obtains an aggregation result. Optionally, the message aggregation server may write the aggregation result into another message storage queue for storage.
In step S306, the acquiring, by the live connection server, the tag carrying message and the unspecified message may specifically be implemented by the following steps:
in step S306a, the live connection server splits the aggregation result to obtain a tag carrying message and a non-specific message.
Specifically, after the message aggregation server obtains the aggregation result, the aggregation result is sent to the live connection server. After the live broadcast connection server obtains the aggregation result, whether a mark carrying message exists in the aggregation result is judged, if yes, the aggregation result is split to extract the mark carrying message, and the rest messages are all non-specified messages.
In the embodiment, the scattered multiple mark carrying messages and non-designated messages are aggregated to be transmitted as a whole, so that the messages can be prevented from being lost or mistakenly transmitted under the condition of large message volume, and the reliability and accuracy of message transmission are improved.
Optionally, in an exemplary embodiment, the message storage queue may be implemented using Redis Zset.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Based on the same inventive concept, in an exemplary embodiment, there is provided a message transmission system including a message invocation server and a live connection server, wherein,
the message calling server is configured to receive a specified message sent by the live broadcast service server to a specified client;
the message calling server is also configured to execute the steps of acquiring identification information corresponding to the specified client, and adding a mark to the specified message according to the identification information to obtain a mark-carried message;
the live connection server is configured to acquire the identification information in the tag carrying message and send the specified message contained in the tag carrying message to the specified client corresponding to the identification information.
Specifically, in an application scenario, assuming that the anchor wants to invite viewer a to shop, the anchor needs to trigger a corresponding shopping function on its anchor client, and at this time, the anchor client sends a corresponding specific message, such as an invite shopping message, and specific client information, such as client information of viewer a, to the message call server, so that the message call server can further process the specific message. After obtaining the specified message and the specified client information, the message call server first obtains identification information corresponding to the specified client, for example, a client ID. Next, the message call server adds a mark to the specified message according to the identification information, for example, the client ID is used as the mark of the specified message, so that the specified message has the attribute information of the sending object, and the finally obtained message is called a mark carrying message. It can be understood that the tag carrying message contains the designated message and the identification information corresponding to the designated client. And after obtaining the mark carrying message, the message calling server sends the mark carrying message to a live broadcast connection server for broadcasting. The live broadcast connection server firstly acquires the identification information in the mark carrying message, and then matches a corresponding client in the live broadcast room according to the identification information, so that the appointed message contained in the mark carrying message is sent to the appointed client. For example, the above-described invite shopping message is transmitted to the client of viewer a.
In an exemplary embodiment, the message invocation server is further configured to perform the encapsulation of the tag-carrying message as corresponding control signaling.
The live connection service appliance body is configured to analyze the control signaling, acquire the identification information in the mark carrying message, and send the specified message contained in the mark carrying message to the specified client corresponding to the identification information.
Specifically, after encapsulating the tag-carrying message into a corresponding control signaling, the message call server sends the control signaling to the live connection server. After obtaining the control signaling, the live broadcast connection server firstly analyzes the control signaling to obtain the identification information in the mark carrying message, and then matches the corresponding client in the live broadcast room according to the identification information, so as to send the specified message contained in the mark carrying message to the specified client.
In this embodiment, the transmission of the designated message is realized by using a control signaling manner, so that the stability and efficiency of message transmission can be improved.
In an exemplary embodiment, the message sending system further includes a message aggregation server. The message aggregation server is configured to perform aggregation on a plurality of tag-carried messages, resulting in an aggregation result. The live connection service appliance body is configured to split the aggregation result to obtain a plurality of tag carrying messages, obtain identification information in each tag carrying message, and send a specified message contained in each tag carrying message to a specified client corresponding to the identification information.
Specifically, after obtaining a plurality of tag carrying messages, the message call server first writes the tag carrying messages into a message storage queue. Then, the message aggregation server periodically pulls unaggregated tag-carried messages from the message storage queue according to a preset time interval, aggregates the unaggregated tag-carried messages, namely encapsulates the unaggregated tag-carried messages into a whole, and finally obtains an aggregation result. Optionally, the message aggregation server may write the aggregation result into another message storage queue for storage. And after the message aggregation server obtains the aggregation result, sending the aggregation result to the live broadcast connection server. After the live broadcast connection server obtains the aggregation result, the aggregation result is firstly split to obtain a plurality of mark carrying messages, then the identification information in each mark carrying message is obtained, and the corresponding client in the live broadcast room is matched according to the identification information, so that the appointed message contained in each mark carrying message is sent to the appointed client.
In this embodiment, a plurality of scattered tags carrying messages are aggregated to be transmitted as a whole, so that the messages can be prevented from being lost or mistakenly transmitted under the condition of a large message volume, and the reliability and accuracy of message transmission are improved.
Based on the same inventive concept, in an exemplary embodiment, there is provided a message transmission system including a message invocation server and a live connection server, wherein,
the message calling server is configured to receive messages sent to the client by the live broadcast service server, wherein the messages comprise designated messages and non-designated messages, and the designated messages are messages sent to the designated client;
the message calling server is also configured to execute the steps of acquiring identification information corresponding to the specified client, and adding a mark to the specified message according to the identification information to obtain a mark-carried message;
the live connection server is configured to execute acquisition of the mark carrying message and the non-specified message, acquire identification information in the mark carrying message, send the specified message contained in the mark carrying message to a specified client corresponding to the identification information, and send the non-specified message to all clients.
Specifically, the live broadcast service server may be divided into a first live broadcast service server and a second live broadcast service server, and the message call server may also be divided into a first message call server and a second message call server. The first direct broadcast service server sends a non-specified message to the first message calling server, and the second direct broadcast service server sends a specified message to the second message calling server. Therefore, the multiple hardware devices are adopted, the message is prevented from being blocked, the message transmission efficiency can be improved, the hardware devices with specific functions are adopted to process the messages of corresponding types, the error rate of the messages is greatly reduced, and the stability and the accuracy of the message transmission are improved. After obtaining the specified message and the specified client information, the message call server first obtains identification information corresponding to the specified client, for example, a client ID. Next, the message call server adds a mark to the specified message according to the identification information, for example, the client ID is used as the mark of the specified message, so that the specified message has the attribute information of the sending object, and the finally obtained message is called a mark carrying message. And after obtaining the mark carrying message, the message calling server sends the mark carrying message to a live broadcast connection server for broadcasting. The live broadcast connection server firstly acquires the identification information in the mark carrying message, and then matches a corresponding client in the live broadcast room according to the identification information, so that the appointed message contained in the mark carrying message is sent to the appointed client. For example, the above-described invite shopping message is transmitted to the client of viewer a. And after obtaining the non-specified message, the message calling server broadcasts the non-specified message to all the audience clients in the live broadcast room.
The message sending system adds the identification information corresponding to the appointed client as the mark to the message needing to be sent to the appointed client through the message calling server, so that when the live broadcast connection server conducts message transmission, the mark can be recognized to obtain the corresponding identification information, and then the appointed message is sent to the appointed client according to the identification information. It can be understood that the system realizes the function that the direct broadcast service server can send the specified message to the specified audience client terminal in the direct broadcast process.
In an exemplary embodiment, the message invoking server is further configured to perform encapsulating the tag carrying message into corresponding control signaling;
the live connection service appliance body is configured to analyze the control signaling, acquire the identification information in the mark carrying message, and send the specified message contained in the mark carrying message to the specified client corresponding to the identification information.
Specifically, after encapsulating the tag-carrying message into a corresponding control signaling, the message call server sends the control signaling to the live connection server. After obtaining the control signaling, the live broadcast connection server firstly analyzes the control signaling to obtain the identification information in the mark carrying message, and then matches the corresponding client in the live broadcast room according to the identification information, so as to send the specified message contained in the mark carrying message to the specified client.
In this embodiment, the transmission of the designated message is realized by using a control signaling manner, so that the stability and efficiency of message transmission can be improved.
In an exemplary embodiment, the message sending system further comprises a message aggregation server,
the message aggregation server is configured to perform aggregation on the mark carrying message and the non-specified message to obtain an aggregation result; the live connection server is configured to split the aggregation result to obtain a tag carrying message and a non-specific message.
Specifically, after obtaining a plurality of tag carrying messages and non-specific messages, the message call server first writes the tag carrying messages and the non-specific messages into a message storage queue according to respective message types. In the message storage queue, each message type has a corresponding message storage queue, and the messages corresponding to each message type are put into the corresponding message storage queue. Then, the message aggregation server periodically pulls unaggregated tag carrying messages and non-specific messages from the message storage queue according to a preset time interval, and aggregates the unaggregated tag carrying messages and the non-specific messages, namely encapsulates the unaggregated tag carrying messages and the non-specific messages into a whole, and finally obtains an aggregation result. Optionally, the message aggregation server may write the aggregation result into another message storage queue for storage. And after the message aggregation server obtains the aggregation result, sending the aggregation result to the live broadcast connection server. After the live broadcast connection server obtains the aggregation result, whether a mark carrying message exists in the aggregation result is judged, if yes, the aggregation result is split to extract the mark carrying message, and the rest messages are all non-specified messages.
In the embodiment, the scattered multiple mark carrying messages and non-designated messages are aggregated to be transmitted as a whole, so that the messages can be prevented from being lost or mistakenly transmitted under the condition of large message volume, and the reliability and accuracy of message transmission are improved.
In an exemplary embodiment, a block diagram of a message call server, a live connection server, or a message aggregation server for executing the message sending method according to the above embodiments may refer to fig. 7, and the server S00 includes a processing component S20, which further includes one or more processors, and a memory resource represented by a memory S22 for storing instructions, such as an application program, executable by the processing component S20. The application program stored in the memory S22 may include one or more modules each corresponding to a set of instructions. Further, the processing component S20 is configured to execute instructions to perform the above-described messaging method.
The Server S00 may also include a power supply component S24 configured to perform power management of the Server S00, a wired or wireless network interface S26 configured to connect the Server S00 to a network, and an input-output (I/O) interface S28. the Server S00 may operate based on an operating system stored in memory S22, such as Windows Server, Mac OSX, Unix, L inux, FreeBSD, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for sending a message, the method comprising:
a message calling server receives a designated message sent to a designated client by a live broadcast service server;
the message calling server acquires identification information corresponding to the specified client, and adds a mark to the specified message according to the identification information to obtain a mark-carried message;
and the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information.
2. The method according to claim 1, further comprising:
the message calling server packages the mark carrying message into a corresponding control signaling;
the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information, and the steps comprise:
and the live broadcast connection server analyzes the control signaling, acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to a specified client corresponding to the identification information.
3. The method according to claim 1, wherein the flag carries a plurality of messages; the message sending method further comprises the following steps:
the message aggregation server aggregates the messages carried by the multiple marks to obtain an aggregation result;
the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information, and the steps comprise:
and the live broadcast connection server splits the aggregation result to obtain the plurality of mark carrying messages, acquires the identification information in each mark carrying message, and sends the specified message contained in each mark carrying message to the specified client corresponding to the identification information.
4. A method for sending a message, the method comprising:
a message calling server receives a message sent to a client by a live broadcast service server, wherein the message comprises a designated message and a non-designated message, and the designated message is a message sent to a designated client;
the message calling server acquires identification information corresponding to the specified client, and adds a mark to the specified message according to the identification information to obtain a mark-carried message;
and the live broadcast connection server acquires the mark carrying message and the non-specified message, acquires the identification information in the mark carrying message, sends the specified message contained in the mark carrying message to a specified client corresponding to the identification information, and sends the non-specified message to all clients.
5. The messaging method of claim 4, further comprising:
the message calling server packages the mark carrying message into a corresponding control signaling;
the live broadcast connection server acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to the specified client corresponding to the identification information, and the steps comprise:
and the live broadcast connection server analyzes the control signaling, acquires the identification information in the mark carrying message and sends the specified message contained in the mark carrying message to a specified client corresponding to the identification information.
6. The method according to claim 4, further comprising:
the message aggregation server aggregates the mark carrying message and the non-specified message to obtain an aggregation result;
the step of the live broadcast connection server acquiring the mark carrying message and the non-specified message comprises the following steps:
and the live broadcast connection server splits the aggregation result to obtain the mark carrying message and the non-specified message.
7. A messaging system comprising a message invocation server and a live connection server, wherein,
the message calling server is configured to receive a specified message sent by a live broadcast service server to a specified client;
the message calling server is also configured to execute the steps of acquiring identification information corresponding to the specified client, and adding a mark to the specified message according to the identification information to obtain a mark-carried message;
the live broadcast connection server is configured to acquire the identification information in the tag carrying message and send the specified message contained in the tag carrying message to the specified client corresponding to the identification information.
8. A messaging system comprising a message invocation server and a live connection server, wherein,
the message calling server is configured to receive a message sent by a live broadcast service server to a client, wherein the message comprises a designated message and a non-designated message, and the designated message is a message sent to a designated client;
the message calling server is also configured to execute the steps of acquiring identification information corresponding to the specified client, and adding a mark to the specified message according to the identification information to obtain a mark-carried message;
the live connection server is configured to execute acquisition of the tag carrying message and the non-specific message, acquire identification information in the tag carrying message, send the specific message contained in the tag carrying message to a specific client corresponding to the identification information, and send the non-specific message to all clients.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the messaging method of any of claims 1 to 6.
10. A storage medium in which instructions, when executed by a processor of a server, enable the server to perform the method of any of claims 1 to 6.
CN202010260281.XA 2020-04-03 2020-04-03 Message sending method and system, server and storage medium Pending CN111464824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010260281.XA CN111464824A (en) 2020-04-03 2020-04-03 Message sending method and system, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010260281.XA CN111464824A (en) 2020-04-03 2020-04-03 Message sending method and system, server and storage medium

Publications (1)

Publication Number Publication Date
CN111464824A true CN111464824A (en) 2020-07-28

Family

ID=71680540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010260281.XA Pending CN111464824A (en) 2020-04-03 2020-04-03 Message sending method and system, server and storage medium

Country Status (1)

Country Link
CN (1) CN111464824A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367553A (en) * 2020-11-10 2021-02-12 北京达佳互联信息技术有限公司 Message interaction method and device, electronic equipment and storage medium
CN112436997A (en) * 2020-11-10 2021-03-02 杭州米络星科技(集团)有限公司 Chat room message distribution method, message distribution system and electronic equipment
CN113542783A (en) * 2021-07-13 2021-10-22 北京字节跳动网络技术有限公司 Audio processing method, live broadcast equipment and live broadcast system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050210125A1 (en) * 2000-10-06 2005-09-22 Verizon Laboratories Inc. Mobile cache for dynamically composing user-specific information
CN106790043A (en) * 2016-12-17 2017-05-31 北京小米移动软件有限公司 The method and device of message is sent in live application
CN107231294A (en) * 2017-05-24 2017-10-03 北京潘达互娱科技有限公司 Message treatment method and device
CN108174272A (en) * 2017-12-29 2018-06-15 广州虎牙信息科技有限公司 Method, apparatus, storage medium and the electronic equipment that interactive information is shown in live streaming
CN109831538A (en) * 2019-03-28 2019-05-31 北京达佳互联信息技术有限公司 A kind of message treatment method, device, server, terminal and medium
CN110099283A (en) * 2019-05-09 2019-08-06 广州虎牙信息科技有限公司 Information-pushing method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050210125A1 (en) * 2000-10-06 2005-09-22 Verizon Laboratories Inc. Mobile cache for dynamically composing user-specific information
CN106790043A (en) * 2016-12-17 2017-05-31 北京小米移动软件有限公司 The method and device of message is sent in live application
CN107231294A (en) * 2017-05-24 2017-10-03 北京潘达互娱科技有限公司 Message treatment method and device
CN108174272A (en) * 2017-12-29 2018-06-15 广州虎牙信息科技有限公司 Method, apparatus, storage medium and the electronic equipment that interactive information is shown in live streaming
CN109831538A (en) * 2019-03-28 2019-05-31 北京达佳互联信息技术有限公司 A kind of message treatment method, device, server, terminal and medium
CN110099283A (en) * 2019-05-09 2019-08-06 广州虎牙信息科技有限公司 Information-pushing method, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367553A (en) * 2020-11-10 2021-02-12 北京达佳互联信息技术有限公司 Message interaction method and device, electronic equipment and storage medium
CN112436997A (en) * 2020-11-10 2021-03-02 杭州米络星科技(集团)有限公司 Chat room message distribution method, message distribution system and electronic equipment
CN112436997B (en) * 2020-11-10 2023-03-03 杭州米络星科技(集团)有限公司 Chat room message distribution method, message distribution system and electronic equipment
CN113542783A (en) * 2021-07-13 2021-10-22 北京字节跳动网络技术有限公司 Audio processing method, live broadcast equipment and live broadcast system

Similar Documents

Publication Publication Date Title
CN111464824A (en) Message sending method and system, server and storage medium
CN109246220B (en) Message pushing system and method
CN112671697B (en) Data processing method, device and system of comprehensive monitoring system
CN107193674B (en) Method and device for processing online push message
CN111026982A (en) Intelligent contract processing method, computer equipment and storage medium
US11553256B2 (en) Method and device for processing message in live broadcast room
CN109614253A (en) A kind of method and device for realizing remote procedure call
CN107295003B (en) Data transmission method, device and system
CN108419046B (en) Monitoring method and device for multi-channel video
CN112055078A (en) Data transmission method and device, computer equipment and storage medium
EP3346716A1 (en) Communication device and data processing method
WO2018205656A1 (en) Method and system for publishing advertisement data
CN114697371A (en) Remote calling method and device
CN109765833B (en) Method for monitoring control state of Internet of things equipment
CN112511631B (en) Control system and method of intelligent device
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN116800787A (en) Vehicle-mounted communication method and system based on Ethernet communication protocol
CN110572315A (en) Information interaction method and device, robot and storage medium
CN114186104A (en) Method, system and server for recording, storing and querying protocol data
CN112788054B (en) Internet of things data processing method, system and equipment
CN112328417B (en) Embedded multi-program communication method and system
CN112672128B (en) Rendering object display method and device, electronic equipment and storage medium
CN112511884A (en) Mixed flow control method and system of audio and video stream and storage medium
CN115065733B (en) Data publishing and subscribing system, data publishing method and data subscribing method
CN115426509B (en) Live broadcast information synchronization method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728