CN111290861A - Message processing method and device and electronic equipment - Google Patents
Message processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN111290861A CN111290861A CN202010066713.3A CN202010066713A CN111290861A CN 111290861 A CN111290861 A CN 111290861A CN 202010066713 A CN202010066713 A CN 202010066713A CN 111290861 A CN111290861 A CN 111290861A
- Authority
- CN
- China
- Prior art keywords
- channel
- receiving terminal
- version
- script
- interactive information
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 33
- 230000002452 interceptive effect Effects 0.000 claims abstract description 130
- 238000013515 script Methods 0.000 claims abstract description 99
- 238000012545 processing Methods 0.000 claims abstract description 65
- 230000003993 interaction Effects 0.000 claims abstract description 62
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000013459 approach Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the disclosure provides a message processing method, a message processing device and electronic equipment, belonging to the technical field of data interaction, wherein the method comprises the following steps: receiving interactive information of a corresponding target topic sent by a sending terminal of a target version, wherein the target version is any one of a prior version and a latest version; sending interactive information to a first channel and a second channel which are connected with a distribution node through the distribution node of a target topic, wherein the first channel is an information channel flowing from the distribution node to a first receiving terminal of a previous version, and the second channel is an information channel flowing from the distribution node to a second receiving terminal of a latest version; and calling the first script to send the interactive information in the first channel to the first receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal. By the scheme, the timeliness of the message processing scheme between the terminals of different versions is improved.
Description
Technical Field
The present disclosure relates to the field of data interaction technologies, and in particular, to a message processing method and apparatus, and an electronic device.
Background
With the development of data interaction technology, data interaction between terminals is increasingly higher. After the terminal is released for the first time, other versions are released along with the increase of the demand and the function updating. Data synchronization between the prior version and the latest version is usually not possible, resulting in a poor timeliness of the message.
Therefore, the existing message processing scheme aiming at different versions has the technical problem of poor timeliness.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a message processing method, a message processing apparatus, and an electronic device, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a message processing method, including:
receiving interactive information of a corresponding target topic sent by a sending terminal of a target version, wherein the target version is any one of a prior version and a latest version;
sending the interaction information to a first channel and a second channel which are connected with the distribution node through the distribution node of the target topic, wherein the first channel is an information channel which flows from the distribution node to the first receiving terminal of the prior version, and the second channel is an information channel which flows from the distribution node to the second receiving terminal of the latest version;
and calling a first script to send the interactive information in the first channel to the first receiving terminal, and calling a second script to send the interactive information in the second channel to the second receiving terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the step of calling the first script to send the interaction information in the first channel to the first receiving terminal, and the step of calling the second script to send the interaction information in the second channel to the second receiving terminal includes:
and calling the first script to send the interactive information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the step of calling the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interaction information in the second channel to the second receiving terminal includes:
the first script is called to add a first identification name to the interactive information in the first channel and then send the interactive information to the first receiving terminal and the second receiving terminal, so that the first receiving terminal receives the interactive information added with the first identification name, and the second script is called to add the interactive information in the second channel and then send the interactive information added with the second identification name to the second receiving terminal, so that the second receiving terminal receives the interactive information added with the second identification name.
According to a specific implementation manner of the embodiment of the disclosure, the target topic is a topic corresponding to a target live broadcast room, and the interactive information is at least one of comment information, barrage information and approach information of the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the step of receiving the interactive information of the corresponding target topic sent by the sending terminal of the target version includes:
and acquiring the interactive message sent by the sending terminal of the target version to the server of the target version.
In a second aspect, an embodiment of the present invention further provides another message processing method, which is applied to a message interaction system, where the message interaction system includes a message processing module, and a sending terminal and a receiving terminal of a previous version, and a sending terminal and a receiving terminal of a latest version, which are connected to the message processing module; the method comprises the following steps:
a sending terminal of a target version sends interactive information corresponding to a target topic to the message processing module, wherein the target version is any one of the prior version and the latest version;
the message processing module issues the interactive information to a first channel and a second channel which are connected with the distribution node through the distribution node of the target topic, wherein the first channel is a message channel flowing from the distribution node to the first receiving terminal of the prior version, and the second channel is a message channel flowing from the distribution node to the second receiving terminal of the latest version;
the message processing module calls the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and calls the second script to send the interaction information in the second channel to the second receiving terminal;
the first receiving terminal receives the interactive information in the first channel sent by the first script, and the second receiving terminal receives the interactive information in the second channel sent by the second script.
According to a specific implementation manner of the embodiment of the present disclosure, the step of the message processing module invoking a first script to send the interaction information in the first channel to the first receiving terminal, and invoking a second script to send the interaction information in the second channel to the second receiving terminal includes:
the message processing module calls the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and calls the second script to send the interaction information in the second channel to the second receiving terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the step of the message processing module invoking the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and invoking the second script to send the interaction information in the second channel to the second receiving terminal includes:
the message processing module calls the first script to add a first identification name to the interactive information in the first channel and then sends the interactive information to the first receiving terminal and the second receiving terminal, and calls the second script to add a second identification name to the interactive information in the second channel and then sends the interactive information to the second receiving terminal;
and the first receiving terminal receives the interactive information added with the first identification name, and the second receiving terminal receives the interactive information added with the second identification name.
According to a specific implementation manner of the embodiment of the present disclosure, the interactive system further includes the server of the previous version and the server of the latest version;
the step of sending the interactive information corresponding to the target topic to the message processing module by the sending terminal of the target version comprises the following steps:
and the sending terminal of the target version sends the interactive information to the message processing module through the server of the target version.
In a third aspect, an embodiment of the present invention further provides a message interaction system, including: the message processing module is connected with the sending terminal and the receiving terminal of the prior version, and the sending terminal and the receiving terminal of the latest version; wherein,
the sending terminal of the target version is used for sending the interactive information of the corresponding target topic to the message processing module, wherein the target version is any one of the prior version and the latest version;
the message processing module is configured to send the interaction information to both a first channel and a second channel connected to the distribution node through the distribution node of the target topic, where the first channel is a message channel flowing from the distribution node to the first receiving terminal of the previous version, and the second channel is a message channel flowing from the distribution node to the second receiving terminal of the latest version;
the message processing module is used for calling the first script to send the interactive information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal;
the first receiving terminal is used for receiving the interactive information in the first channel sent by the first script and the second receiving terminal is used for receiving the interactive information in the second channel sent by the second script.
In a fourth aspect, an embodiment of the present invention further provides a message processing apparatus, including:
the receiving module is used for receiving the interactive information of the corresponding target topic sent by the sending terminal of the target version, wherein the target version is any one of the prior version and the latest version;
an issuing module, configured to issue the interaction information to both a first channel and a second channel connected to the distribution node through a distribution node of the target topic, where the first channel is an information channel flowing from the distribution node to the first receiving terminal of the previous version, and the second channel is an information channel flowing from the distribution node to the second receiving terminal of the latest version;
and the calling module is used for calling a first script to send the interactive information in the first channel to the first receiving terminal, and calling a second script to send the interactive information in the second channel to the second receiving terminal.
In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method of any implementation of the first or second aspects.
In a sixth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the message processing method in the first aspect or any implementation manner of the first aspect.
In a seventh aspect, the disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the message processing method in any of the implementations of the first or second aspects.
The message processing scheme in the embodiment of the disclosure includes: receiving interactive information of a corresponding target topic sent by a sending terminal of a target version, wherein the target version is any one of a prior version and a latest version; sending the interaction information to a first channel and a second channel which are connected with the distribution node through the distribution node of the target topic, wherein the first channel is an information channel which flows from the distribution node to the first receiving terminal of the prior version, and the second channel is an information channel which flows from the distribution node to the second receiving terminal of the latest version; and calling a first script to send the interactive information in the first channel to the first receiving terminal, and calling a second script to send the interactive information in the second channel to the second receiving terminal. By the scheme, the timeliness of the message processing scheme between the terminals of different versions is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a message processing method according to an embodiment of the present disclosure;
fig. 2 is an interaction diagram of a message interaction system provided by an embodiment of the present disclosure;
fig. 3 is a partial flow diagram of another message processing method provided in the embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another message processing method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a message processing method. The message processing method provided by the embodiment can be executed by a computing device, the computing device can be implemented as software, or implemented as a combination of software and hardware, and the computing device can be integrated in a server, a terminal device and the like.
Referring to fig. 1, a message processing method provided in the embodiments of the present disclosure. The message processing method is applied to the interactive system shown in fig. 2, and the message interactive system comprises a message processing module, a sending terminal and a receiving terminal of a previous version, and a sending terminal and a receiving terminal of a latest version, which are connected with the message processing module. As shown in fig. 1, the message processing method mainly includes the following steps:
s101, a transmitting terminal of a target version transmits interactive information corresponding to a target topic to the message processing module, wherein the target version is any one of the prior version and the latest version;
the message processing method provided by the embodiment can be applied to the message processing process of the live broadcast room, and especially can be applied to scenes with different versions in the client side connected with the live broadcast room. The versions which may exist in the client are respectively defined as a prior version and a latest version, the release time of the prior version is earlier than that of the latest version, the server versions corresponding to the clients of different versions are different, and the channels for receiving and sending messages or the called scripts are different. Defining the version of the current interactive client as a target version, and defining the Topic Topic corresponding to the current client as a target Topic. Optionally, the target topic is a topic corresponding to a target live broadcast room, and the interactive information is at least one of a comment message, a barrage message and an approach message of the target live broadcast room.
When a user needs to send comment messages or other interactive messages aiming at a certain target live broadcast room, the interactive messages are sent to the message processing module through the sending terminal of the target version. The message processing module is a central module located in the whole message interaction system and is used for realizing message interaction between clients of different versions.
As shown in fig. 2, in terms of data flow direction, the message processing module 203 is connected with different versions of the sending terminal 201, and the message processing module 203 indirectly interacts with the sending terminal 201 through different versions of the server 202. Different channels 204 are connected to the message processing module 203, each channel corresponds to a receiving terminal 206 of a different version, and the script 205 of the corresponding version can be called to send the interactive information to the receiving terminal 206 of one or more versions.
It should be noted that the message processing module 203 may be a processor or other central control device independent from the terminal 201 and the server 202, or may be a central control device of a server cluster formed by servers of different versions.
Optionally, the interactive system further includes the server of the previous version and the server of the latest version;
the step of sending the interactive information corresponding to the target topic to the message processing module by the sending terminal of the target version comprises the following steps:
and the sending terminal of the target version sends the interactive information to the message processing module through the server of the target version.
S102, the message processing module issues the interactive information to a first channel and a second channel which are connected with the distribution node through the distribution node of the target topic, wherein the first channel is a message channel flowing from the distribution node to the first receiving terminal of the prior version, and the second channel is a message channel flowing from the distribution node to the second receiving terminal of the latest version;
and after receiving the interactive message, the message processing module distributes the message according to a distributed real-time message platform (NSQ) message queue mode based on Go language. Specifically, the interactive messages are copied to the first channel and the second channel by using the distribution nodes corresponding to the target topics, so that the same data exist in the first channel and the second channel for consumers downstream of the channels to consume.
S103, the message processing module calls the first script to send the interactive information in the first channel to the first receiving terminal and the second receiving terminal, and calls the second script to send the interactive information in the second channel to the second receiving terminal;
after the same interactive message is copied to the first channel and the second channel, the corresponding script can be called to analyze and send the interactive message. Specifically, the first script analyzes data in the first channel and sends the interaction information to the first receiving terminal, and the second script analyzes data in the second channel and sends the interaction information to the second receiving terminal.
S104, the first receiving terminal receives the interactive information in the first channel sent by the first script, and the second receiving terminal receives the interactive information in the second channel sent by the second script.
In this way, the first receiving terminal and the second receiving terminal of different versions can both receive the interactive information.
According to a specific implementation manner of the embodiment of the present disclosure, the step of the message processing module invoking a first script to send the interaction information in the first channel to the first receiving terminal, and invoking a second script to send the interaction information in the second channel to the second receiving terminal includes:
the message processing module calls the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and calls the second script to send the interaction information in the second channel to the second receiving terminal.
Optionally, as shown in fig. 3, the step of the message processing module invoking the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and invoking the second script to send the interaction information in the second channel to the second receiving terminal includes:
s301, the message processing module calls the first script to add a first identification name to the interactive information in the first channel and then sends the interactive information to the first receiving terminal and the second receiving terminal, and calls the second script to add a second identification name to the interactive information in the second channel and then sends the interactive information to the second receiving terminal;
in order to reduce unnecessary parsing operations and possible program crashes, distinction can be made by adding identification names. The first script adds a first identification name to the interactive information obtained through analysis, the second script adds a second identification name to the interactive information obtained through analysis, and the second receiving terminal only needs to receive and process the interactive information added with the second identification name and discards the interactive information added with the first identification name.
S302, the first receiving terminal receives the interactive information added with the first identification name, and the second receiving terminal receives the interactive information added with the second identification name.
In the general message interaction system, after the script of the previous version parses the interactive message of the first channel, the interactive message of the first channel is sent to the first receiving terminal and the second receiving terminal, and after the script of the latest version parses the interactive message of the first channel, the interactive message of the second channel is sent to the second receiving terminal. Thus, the second receiving terminal receives two interactive messages.
The message processing method provided by the embodiment mainly includes, for a basic experience message in a live broadcast room: comment messages, barrage messages, approach messages, etc. The old version script can be copied in the same way on different channels through different channels and consumption subjects, then the communication service is called to send different live broadcast room content Data, and after the client is pulled to the Data through an interface, different messages are processed according to the identification name. The old script is still, the running is continued, NSQ is consumed through the old Channel, the live broadcast room content Data is continuously sent to the old version client, in addition, a new script is started, new logic is written on the script, a Channel is newly built on the original Topic, the new Channel has the same Data as the original Channel, the new script is responsible for packaging Data for the new version client, the new mark name is used, the client is discarded when the client meets the old, and only the new script is processed. Therefore, after the same behavior is triggered, the Topic data is written, and the new script and the old script respectively issue different live broadcast room content structures to the new version client and the old version client after consumption.
By the scheme, timeliness of the message processing scheme between terminals of different versions is improved, and operation and maintenance cost is reduced.
Referring to fig. 4, a flowchart of another message processing method according to an embodiment of the present invention is shown. The message processing method provided by the present embodiment is different from the message processing method provided by the above-described embodiments in that a message processing operation is performed from a message processing module as an execution subject. As shown in fig. 4, the message processing method mainly includes the following steps:
s401, receiving interactive information of a corresponding target topic sent by a sending terminal of a target version, wherein the target version is any one of a prior version and a latest version;
the message processing method provided by the embodiment can be applied to the message processing process of the live broadcast room, and especially can be applied to scenes with different versions in the client side connected with the live broadcast room. The versions which may exist in the client are respectively defined as a prior version and a latest version, the release time of the prior version is earlier than that of the latest version, the server versions corresponding to the clients of different versions are different, and the channels for receiving and sending messages or the called scripts are different. Defining the version of the current interactive client as a target version, and defining the Topic Topic corresponding to the current client as a target Topic. Optionally, the target topic is a topic corresponding to a target live broadcast room, and the interactive information is at least one of a comment message, a barrage message and an approach message of the target live broadcast room.
When a user needs to send comment messages or other interactive messages aiming at a certain target live broadcast room, the interactive messages are sent to the message processing module through the sending terminal of the target version. The message processing module is a central module located in the whole message interaction system and is used for realizing message interaction between clients of different versions.
S402, sending the interactive information to a first channel and a second channel which are connected with the distribution node through the distribution node of the target topic, wherein the first channel is an information channel which flows from the distribution node to the first receiving terminal of the prior version, and the second channel is an information channel which flows from the distribution node to the second receiving terminal of the latest version;
and after receiving the interactive message, the message processing module distributes the message according to a distributed real-time message platform (NSQ) message queue mode based on Go language. Specifically, the interactive messages are copied to the first channel and the second channel by using the distribution nodes corresponding to the target topics, so that the same data exist in the first channel and the second channel for consumers downstream of the channels to consume.
S403, calling the first script to send the interactive information in the first channel to the first receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal.
After the same interactive message is copied to the first channel and the second channel, the corresponding script can be called to analyze and send the interactive message. Specifically, the first script analyzes data in the first channel and sends the interaction information to the first receiving terminal, and the second script analyzes data in the second channel and sends the interaction information to the second receiving terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the step of calling the first script to send the interaction information in the first channel to the first receiving terminal, and the step of calling the second script to send the interaction information in the second channel to the second receiving terminal includes:
and calling the first script to send the interactive information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal.
According to a specific implementation manner of the embodiment of the present disclosure, the step of calling the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interaction information in the second channel to the second receiving terminal includes:
the first script is called to add a first identification name to the interactive information in the first channel and then send the interactive information to the first receiving terminal and the second receiving terminal, so that the first receiving terminal receives the interactive information added with the first identification name, and the second script is called to add the interactive information in the second channel and then send the interactive information added with the second identification name to the second receiving terminal, so that the second receiving terminal receives the interactive information added with the second identification name.
According to a specific implementation manner of the embodiment of the disclosure, the target topic is a topic corresponding to a target live broadcast room, and the interactive information is at least one of comment information, barrage information and approach information of the target live broadcast room.
According to a specific implementation manner of the embodiment of the present disclosure, the step of receiving the interactive information of the corresponding target topic sent by the sending terminal of the target version includes:
and acquiring the interactive message sent by the sending terminal of the target version to the server of the target version.
The message processing scheme in the embodiment of the disclosure includes: receiving interactive information of a corresponding target topic sent by a sending terminal of a target version, wherein the target version is any one of a prior version and a latest version; sending the interaction information to a first channel and a second channel which are connected with the distribution node through the distribution node of the target topic, wherein the first channel is an information channel which flows from the distribution node to the first receiving terminal of the prior version, and the second channel is an information channel which flows from the distribution node to the second receiving terminal of the latest version; and calling a first script to send the interactive information in the first channel to the first receiving terminal, and calling a second script to send the interactive information in the second channel to the second receiving terminal. By the scheme, timeliness of the message processing scheme between terminals of different versions is improved, and operation and maintenance cost is reduced. For a specific implementation process of the message processing method in this embodiment, refer to the specific implementation process of the message processing method provided in the embodiment shown in fig. 1, which is not described in detail herein.
Referring to fig. 2, an interaction diagram of a message interaction system according to an embodiment of the present invention is provided. The message interaction system comprises: the message processing module is connected with the sending terminal and the receiving terminal of the prior version, and the sending terminal and the receiving terminal of the latest version; wherein,
the sending terminal of the target version is used for sending the interactive information of the corresponding target topic to the message processing module, wherein the target version is any one of the prior version and the latest version;
the message processing module is configured to send the interaction information to both a first channel and a second channel connected to the distribution node through the distribution node of the target topic, where the first channel is a message channel flowing from the distribution node to the first receiving terminal of the previous version, and the second channel is a message channel flowing from the distribution node to the second receiving terminal of the latest version;
the message processing module is used for calling the first script to send the interactive information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal;
the first receiving terminal is used for receiving the interactive information in the first channel sent by the first script and the second receiving terminal is used for receiving the interactive information in the second channel sent by the second script.
The system shown in fig. 2 can correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Corresponding to the above method embodiment, referring to fig. 5, the embodiment of the present disclosure further provides a message processing apparatus 50, including:
a receiving module 501, configured to receive interaction information of a corresponding target topic sent by a sending terminal of a target version, where the target version is any one of a previous version and a latest version;
an issuing module 502, configured to issue the interaction information to both a first channel and a second channel connected to the distribution node through the distribution node of the target topic, where the first channel is an information channel flowing from the distribution node to the first receiving terminal of the previous version, and the second channel is an information channel flowing from the distribution node to the second receiving terminal of the latest version;
a calling module 503, configured to call a first script to send the interaction information in the first channel to the first receiving terminal, and call a second script to send the interaction information in the second channel to the second receiving terminal.
The apparatus shown in fig. 5 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 6, an embodiment of the present disclosure also provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method of the foregoing method embodiments.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the message processing method in the foregoing method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the message processing method in the aforementioned method embodiments.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Alternatively, the computer readable medium carries one or more programs, which when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (9)
1. A message processing method, comprising:
receiving interactive information of a corresponding target topic sent by a sending terminal of a target version, wherein the target version is any one of a prior version and a latest version;
sending the interaction information to a first channel and a second channel which are connected with the distribution node through the distribution node of the target topic, wherein the first channel is an information channel which flows from the distribution node to the first receiving terminal of the prior version, and the second channel is an information channel which flows from the distribution node to the second receiving terminal of the latest version;
and calling a first script to send the interactive information in the first channel to the first receiving terminal, and calling a second script to send the interactive information in the second channel to the second receiving terminal.
2. The method according to claim 1, wherein the step of invoking a first script to send the interaction information in the first channel to the first receiving terminal, and invoking a second script to send the interaction information in the second channel to the second receiving terminal comprises:
and calling the first script to send the interactive information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal.
3. The method according to claim 2, wherein the step of invoking the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and the step of invoking the second script to send the interaction information in the second channel to the second receiving terminal comprises:
the first script is called to add a first identification name to the interactive information in the first channel and then send the interactive information to the first receiving terminal and the second receiving terminal, so that the first receiving terminal receives the interactive information added with the first identification name, and the second script is called to add the interactive information in the second channel and then send the interactive information added with the second identification name to the second receiving terminal, so that the second receiving terminal receives the interactive information added with the second identification name.
4. The method according to any one of claims 1 to 3, wherein the target topic is a topic corresponding to a target live broadcast room, and the interaction information is at least one of a comment message, a barrage message and an approach message of the target live broadcast room.
5. The method as claimed in claim 4, wherein the step of receiving the interactive information of the corresponding target topic transmitted by the transmitting terminal of the target version comprises:
and acquiring the interactive message sent by the sending terminal of the target version to the server of the target version.
6. A message interaction system, comprising: the message processing module is connected with the sending terminal and the receiving terminal of the prior version, and the sending terminal and the receiving terminal of the latest version; wherein,
the sending terminal of the target version is used for sending the interactive information of the corresponding target topic to the message processing module, wherein the target version is any one of the prior version and the latest version;
the message processing module is configured to send the interaction information to both a first channel and a second channel connected to the distribution node through the distribution node of the target topic, where the first channel is a message channel flowing from the distribution node to the first receiving terminal of the previous version, and the second channel is a message channel flowing from the distribution node to the second receiving terminal of the latest version;
the message processing module is used for calling the first script to send the interactive information in the first channel to the first receiving terminal and the second receiving terminal, and calling the second script to send the interactive information in the second channel to the second receiving terminal;
the first receiving terminal is used for receiving the interactive information in the first channel sent by the first script and the second receiving terminal is used for receiving the interactive information in the second channel sent by the second script.
7. A message processing apparatus, comprising:
the receiving module is used for receiving the interactive information of the corresponding target topic sent by the sending terminal of the target version, wherein the target version is any one of the prior version and the latest version;
an issuing module, configured to issue the interaction information to both a first channel and a second channel connected to the distribution node through a distribution node of the target topic, where the first channel is an information channel flowing from the distribution node to the first receiving terminal of the previous version, and the second channel is an information channel flowing from the distribution node to the second receiving terminal of the latest version;
and the calling module is used for calling a first script to send the interactive information in the first channel to the first receiving terminal, and calling a second script to send the interactive information in the second channel to the second receiving terminal.
8. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the message processing method of any of preceding claims 1-5.
9. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the message processing method of any one of the preceding claims 1-5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010066713.3A CN111290861B (en) | 2020-01-20 | 2020-01-20 | Message processing method and device and electronic equipment |
PCT/CN2020/127665 WO2021147466A1 (en) | 2020-01-20 | 2020-11-10 | Message processing method and apparatus, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010066713.3A CN111290861B (en) | 2020-01-20 | 2020-01-20 | Message processing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111290861A true CN111290861A (en) | 2020-06-16 |
CN111290861B CN111290861B (en) | 2023-08-25 |
Family
ID=71023340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010066713.3A Active CN111290861B (en) | 2020-01-20 | 2020-01-20 | Message processing method and device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111290861B (en) |
WO (1) | WO2021147466A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021147466A1 (en) * | 2020-01-20 | 2021-07-29 | 北京字节跳动网络技术有限公司 | Message processing method and apparatus, and electronic device |
CN117579679A (en) * | 2024-01-15 | 2024-02-20 | 海马云(天津)信息技术有限公司 | Signaling interaction method and device, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080059646A1 (en) * | 2006-08-31 | 2008-03-06 | Microsoft Corporation | Video-switched delivery of media content using an established media-delivery infrastructure |
US20110040863A1 (en) * | 2009-08-14 | 2011-02-17 | Research In Motion Limited | Methods and apparatus for managing notifications for service events |
CN102163152A (en) * | 2010-10-26 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Software upgrading method and device thereof for embedded terminal device |
US20180063241A1 (en) * | 2016-08-31 | 2018-03-01 | Machine Zone, Inc. | Data replication in scalable messaging system |
CN108243171A (en) * | 2016-12-27 | 2018-07-03 | 北京新唐思创教育科技有限公司 | Online live broadcast interaction system and method |
US20180270605A1 (en) * | 2017-03-20 | 2018-09-20 | Satori Worldwide, Llc | System and method for providing location data over a messaging system |
US20180324119A1 (en) * | 2017-05-05 | 2018-11-08 | ShieldX Networks, Inc. | Upgrading components of a messaging system used by a microservice-based application |
CN110012115A (en) * | 2019-05-06 | 2019-07-12 | 广州华多网络科技有限公司 | The update method and system of direct broadcasting room pushed information |
CN110391922A (en) * | 2018-04-18 | 2019-10-29 | 北京视联动力国际信息技术有限公司 | A kind of the version reminding method and device of business platform |
CN110546923A (en) * | 2017-02-24 | 2019-12-06 | 萨托里环球有限责任公司 | selective distribution of messages in a scalable real-time messaging system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1902381A4 (en) * | 2005-07-11 | 2009-06-24 | Packetvideo Corp | System and method for transferring data |
CN102546815A (en) * | 2012-01-20 | 2012-07-04 | 王鑫 | Synchronous system and synchronous method among digital electron terminals |
CN104216693B (en) * | 2013-06-03 | 2017-11-10 | 阿里巴巴集团控股有限公司 | A kind of method and device that device identification is provided |
US9833716B2 (en) * | 2013-11-22 | 2017-12-05 | Electronics And Telecommunications Research Institute | Web content sharing method, and web content providing apparatus and receiving terminal for web content sharing |
CN110413303B (en) * | 2019-07-23 | 2023-02-03 | 日立楼宇技术(广州)有限公司 | Controller synchronization method, device, equipment and storage medium |
CN111290861B (en) * | 2020-01-20 | 2023-08-25 | 北京字节跳动网络技术有限公司 | Message processing method and device and electronic equipment |
-
2020
- 2020-01-20 CN CN202010066713.3A patent/CN111290861B/en active Active
- 2020-11-10 WO PCT/CN2020/127665 patent/WO2021147466A1/en active Application Filing
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080059646A1 (en) * | 2006-08-31 | 2008-03-06 | Microsoft Corporation | Video-switched delivery of media content using an established media-delivery infrastructure |
US20110040863A1 (en) * | 2009-08-14 | 2011-02-17 | Research In Motion Limited | Methods and apparatus for managing notifications for service events |
CN102163152A (en) * | 2010-10-26 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Software upgrading method and device thereof for embedded terminal device |
US20180063241A1 (en) * | 2016-08-31 | 2018-03-01 | Machine Zone, Inc. | Data replication in scalable messaging system |
CN108243171A (en) * | 2016-12-27 | 2018-07-03 | 北京新唐思创教育科技有限公司 | Online live broadcast interaction system and method |
CN110546923A (en) * | 2017-02-24 | 2019-12-06 | 萨托里环球有限责任公司 | selective distribution of messages in a scalable real-time messaging system |
US20180270605A1 (en) * | 2017-03-20 | 2018-09-20 | Satori Worldwide, Llc | System and method for providing location data over a messaging system |
US20180324119A1 (en) * | 2017-05-05 | 2018-11-08 | ShieldX Networks, Inc. | Upgrading components of a messaging system used by a microservice-based application |
CN110391922A (en) * | 2018-04-18 | 2019-10-29 | 北京视联动力国际信息技术有限公司 | A kind of the version reminding method and device of business platform |
CN110012115A (en) * | 2019-05-06 | 2019-07-12 | 广州华多网络科技有限公司 | The update method and system of direct broadcasting room pushed information |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021147466A1 (en) * | 2020-01-20 | 2021-07-29 | 北京字节跳动网络技术有限公司 | Message processing method and apparatus, and electronic device |
CN117579679A (en) * | 2024-01-15 | 2024-02-20 | 海马云(天津)信息技术有限公司 | Signaling interaction method and device, electronic equipment and storage medium |
CN117579679B (en) * | 2024-01-15 | 2024-04-19 | 海马云(天津)信息技术有限公司 | Signaling interaction method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021147466A1 (en) | 2021-07-29 |
CN111290861B (en) | 2023-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582310B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN111177617A (en) | Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment | |
US11997356B2 (en) | Video page display method and apparatus, electronic device and computer-readable medium | |
CN109857506B (en) | Method and device for realizing guide information, electronic equipment and storage medium | |
CN111367516B (en) | Application interface generation method and device and electronic equipment | |
CN109753622B (en) | Static resource management method and device, storage medium and electronic equipment | |
CN111432001B (en) | Method, apparatus, electronic device and computer readable medium for jumping scenes | |
CN110263276B (en) | Message distribution method, device, equipment and storage medium | |
CN111290797A (en) | Page switching method, client, server, electronic equipment and system | |
CN111290861B (en) | Message processing method and device and electronic equipment | |
CN111309406A (en) | Event processing method and device of application program and electronic equipment | |
CN113766303B (en) | Multi-screen interaction method, device, equipment and storage medium | |
CN110908752A (en) | Control setting method and device, electronic equipment and interaction system | |
CN112486825B (en) | Multi-lane environment architecture system, message consumption method, device, equipment and medium | |
CN111641693B (en) | Session data processing method and device and electronic equipment | |
CN110147283B (en) | Display content switching display method, device, equipment and medium | |
CN109857503B (en) | Page interaction effect self-adaption method and device and electronic equipment | |
CN111193717A (en) | FTP black and white list control method and device and electronic equipment | |
CN111343468A (en) | Message processing method and device and electronic equipment | |
CN111444457B (en) | Data release method and device, storage medium and electronic equipment | |
CN111212296B (en) | Live broadcast room gift list configuration method, device, medium and electronic equipment | |
CN112688793B (en) | Data packet obtaining method and device and electronic equipment | |
CN110851097B (en) | Control method, device, medium and electronic equipment for consistency of handwriting data | |
CN114385096A (en) | Display control method, device, terminal and storage medium | |
CN111641692B (en) | Session data processing method and device 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 |