WO2021147466A1 - 消息处理方法、装置及电子设备 - Google Patents

消息处理方法、装置及电子设备 Download PDF

Info

Publication number
WO2021147466A1
WO2021147466A1 PCT/CN2020/127665 CN2020127665W WO2021147466A1 WO 2021147466 A1 WO2021147466 A1 WO 2021147466A1 CN 2020127665 W CN2020127665 W CN 2020127665W WO 2021147466 A1 WO2021147466 A1 WO 2021147466A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
receiving terminal
interaction information
script
message
Prior art date
Application number
PCT/CN2020/127665
Other languages
English (en)
French (fr)
Inventor
江泽锐
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2021147466A1 publication Critical patent/WO2021147466A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Definitions

  • the present disclosure relates to the field of data interaction technology, and in particular to a message processing method, device and electronic equipment.
  • the embodiments of the present disclosure provide a message processing method, device, and electronic device, which at least partially solve the problems existing in the prior art.
  • embodiments of the present disclosure provide a message processing method, including:
  • the interaction information is delivered to both the first channel and the second channel connected to the distribution node, where the first channel is from the distribution node to the previous A message channel of the first receiving terminal of the version, where the second channel is a message channel flowing from the distribution node to the second receiving terminal of the latest version;
  • the first script is called to send the interaction information in the first channel to the first receiving terminal
  • the second script is called to send the second
  • the step of sending the interactive information in the channel to the second receiving terminal includes:
  • the invoking the first script sends the interaction information in the first channel to the first receiving terminal and the second receiving terminal
  • the step of calling a second script to send the interaction information in the second channel to the second receiving terminal includes:
  • the target topic is a topic corresponding to the target live broadcast room
  • the interaction information is at least one of a comment message, a barrage message, and an entry message in the target live broadcast room .
  • the step of receiving the interaction information corresponding to the target topic sent by the sending terminal of the target version includes:
  • the embodiment of the present invention also provides another message processing method, which is applied to a message interaction system.
  • the message interaction system includes a message processing module, and a sending terminal of a previous version connected to the message processing module and The receiving terminal, the sending terminal and the receiving terminal of the latest version; the method includes:
  • the sending terminal of the target version sends interaction information corresponding to the target topic to the message processing module, wherein the target version is any one of the previous version and the latest version;
  • the message processing module sends the interaction information to both the first channel and the second channel connected to the distribution node through the distribution node of the target topic, wherein the first channel is from the distribution node A message channel flowing 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 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 transfer the second Sending the interactive information in the channel to the second receiving terminal;
  • the first receiving terminal receives the interaction information in the first channel sent by a first script and the second receiving terminal receives the interaction information in the second channel sent by a second script.
  • the message processing module calls a first script to send the interaction information in the first channel to the first receiving terminal, and calls a second script to send the information to the first receiving terminal.
  • the step of sending the interactive 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 transfer the second The interaction information in the channel is sent to the second receiving terminal.
  • 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 the step of calling 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 add a first identification name to the interaction information in the first channel and then sends it to the first receiving terminal and the second receiving terminal, and calls the second The script adds a second identification name to the interaction information in the second channel and sends it to the second receiving terminal;
  • the first receiving terminal receives the interactive information adding the first identification name
  • the second receiving terminal receives the interactive information adding the second identification name
  • the interactive system further includes the server of the previous version and the server of the latest version;
  • the step of the sending terminal of the target version sending interaction information corresponding to the target topic to the message processing module includes:
  • the sending terminal of the target version sends the interaction information to the message processing module through the server of the target version.
  • an embodiment of the present invention also provides a message interaction system, including: a message processing module, and a sending terminal and a receiving terminal of a previous version connected to the message processing module, and a sending terminal and a receiving terminal of the latest version. ;in,
  • the sending terminal of the target version is configured to send interaction information corresponding to the target topic to the message processing module, wherein the target version is any one of the previous version and the latest version;
  • the message processing module is configured to send the interaction information to both the first channel and the second channel connected to the distribution node through the distribution node of the target topic, wherein the first channel is the slave 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 configured to call the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and to call the second script to transfer the Sending the interaction information in the second channel to the second receiving terminal;
  • the first receiving terminal is configured to receive the interaction information in the first channel sent by a first script and the second receiving terminal is configured to receive the interaction information in the second channel sent by a second script.
  • Interactive information is configured to be received.
  • an embodiment of the present invention also provides a message processing device, including:
  • the receiving module is configured to receive the interactive information corresponding to the target topic sent by the sending terminal of the target version, wherein the target version is any one of the previous version and the latest version;
  • the issuing module is configured to issue the interaction information to both the first channel and the second channel connected to the distribution node through the distribution node of the target topic, wherein the first channel is from the distribution node A message channel that a node flows to the first receiving terminal of the previous version, and the second channel is a message channel that flows from the distribution node to the second receiving terminal of the latest version;
  • the calling module is used to call a first script to send the interactive information in the first channel to the first receiving terminal, and to call a second script to send the interactive information in the second channel to The second receiving terminal.
  • embodiments of the present disclosure also provide an electronic device, which includes:
  • At least one processor and,
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the message in any one of the foregoing first aspect or second aspect. Approach.
  • the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute the first aspect or the first aspect described above.
  • a message processing method in any implementation of one aspect.
  • the embodiments of the present disclosure also provide a computer program product.
  • the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium.
  • the computer program includes program instructions. During execution, the computer is caused to execute the message processing method in any one of the foregoing first aspect or second aspect.
  • the message processing solution in the embodiment of the present disclosure includes: receiving the interaction information corresponding to the target topic sent by the sending terminal of the target version, wherein the target version is any one of the previous version and the latest version;
  • the distribution node of the topic sends the interaction information to both the first channel and the second channel connected to the distribution node, where the first channel is the first channel that flows from the distribution node to the previous version
  • the message channel of the receiving terminal, the second channel is the message channel flowing from the distribution node to the second receiving terminal of the latest version;
  • the first script is called to send the interaction information in the first channel to the The first receiving terminal, and calling a second script to send the interaction information in the second channel to the second receiving terminal.
  • FIG. 1 is a schematic flowchart of a message processing method provided by an embodiment of the disclosure
  • FIG. 2 is a schematic diagram of interaction of a message interaction system provided by an embodiment of the disclosure.
  • FIG. 3 is a schematic partial flowchart of another message processing method provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a message processing apparatus provided by an embodiment of the disclosure.
  • FIG. 6 is a schematic diagram of an electronic device provided by an embodiment of the disclosure.
  • the embodiment of the present disclosure provides a message processing method.
  • the message processing method provided in this embodiment can be executed by a computing device, and the computing device can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, a terminal device, and the like.
  • an embodiment of the present disclosure provides a message processing method.
  • the message processing method is applied to the interactive system shown in FIG. 2.
  • the message interactive system includes a message processing module, and a sending terminal and a receiving terminal of a previous version connected to the message processing module, and a sending terminal of the latest version And the receiving terminal.
  • the message processing method mainly includes the following steps:
  • the sending terminal of the target version sends interaction information corresponding to the target topic to the message processing module, where the target version is any one of the previous version and the latest version;
  • the message processing method provided in this embodiment can be applied to a message processing process in a live broadcast room, especially in scenarios where clients connected to the live broadcast room have different versions.
  • the possible versions of the client are defined as the previous version and the latest version. The previous version was released earlier than the latest version. Clients of different versions correspond to different server versions. The channels for sending and receiving messages or the scripts used are also different. different.
  • the version of the currently interacting client is defined as the target version, and the topic corresponding to the current client is defined as the target topic.
  • the target topic is a topic corresponding to the target live broadcast room
  • the interaction information is at least one of a comment message, a barrage message, and an entry message in the target live broadcast room.
  • the message processing module here is the central module in the entire message interaction system, and is used to implement message interaction between clients of different versions.
  • the message processing module 203 is connected to the sending terminal 201 of different versions, and the message processing module 203 indirectly interacts with the sending terminal 201 through the server 202 of different versions.
  • Different channels 204 are connected to the message processing module 203, and each channel corresponds to a different version of the receiving terminal 206, and the script 205 of the corresponding version can be called to send interactive information to one or more versions of the receiving terminal 206.
  • the message processing module 203 may be a processor or other central control device independent of the terminal 201 and the server 202, or may be a central control device of a server cluster formed by servers of different versions.
  • the interactive system further includes the server of the previous version and the server of the latest version;
  • the step of the sending terminal of the target version sending interaction information corresponding to the target topic to the message processing module includes:
  • the sending terminal of the target version sends the interaction information to the message processing module through the server of the target version.
  • the message processing module sends the interaction information to both the first channel and the second channel connected to the distribution node through the distribution node of the target topic, where the first channel is the slave 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 After the message processing module receives the interactive message, it distributes the message according to the NSQ-type message queue of the distributed real-time messaging platform based on the Go language. Specifically, the distribution node corresponding to the target topic is used to copy the interactive message to the first channel and the second channel, so that the same data exists in the first channel and the second channel for consumers downstream of the channel to consume.
  • 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 a second script to transfer the Sending the interaction information in the second channel to the second receiving terminal;
  • the corresponding script can be called to analyze and send the interactive message.
  • the first script parses the data in the first channel and sends interactive information to the first receiving terminal
  • the second script parses the data in the second channel and sends the interactive information to the second receiving terminal.
  • the first receiving terminal receives the interaction information in the first channel sent by a first script
  • the second receiving terminal receives the interaction information in the second channel sent by a second script information.
  • both the first receiving terminal and the second receiving terminal of different versions can receive the interactive information.
  • the message processing module calls a first script to send the interaction information in the first channel to the first receiving terminal, and calls a second script to send the information to the first receiving terminal.
  • the step of sending the interactive 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 transfer the second The interaction information in the channel is sent to the second receiving terminal.
  • the message processing module invokes 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 calling 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 add a first identification name to the interaction information in the first channel and then sends it to the first receiving terminal and the second receiving terminal, and calls The second script adds a second identification name to the interaction information in the second channel and sends it to the second receiving terminal;
  • the first script adds the first identification name to the parsed interaction information
  • the second script adds the second identification name to the parsed interaction information.
  • the second receiving terminal only needs to receive and process the interaction information that adds the second identification name. The interaction information with the first identification name added is discarded.
  • the first receiving terminal receives the interactive information added with the first identification name
  • the second receiving terminal receives the interactive information added with the second identification name
  • the interaction message of the first channel will be sent to the first receiving terminal and the second receiving terminal, and the latest version of the script is parsing the first channel.
  • the interaction message of the second channel is sent to the second receiving terminal. In this way, the second receiving terminal will receive two interactive messages.
  • the message processing method provided in this embodiment described above mainly includes comment messages, barrage messages, and entry messages for the basic experience messages in the live broadcast room.
  • the old version of the script consumes the topic topic through different channels, the same topic will have the same copy on different channels, and then call the communication service to send different live room content Data, after the client pulls the Data through the interface, according to the identification name To handle different messages.
  • the old script does not move, continue to run, consume NSQ through the old channel, continue to send the live room content data to the old version of the client, in addition, start a new script, write new logic on it, and create a new channel on the original topic.
  • the new channel will have the same data as the original.
  • the new script is responsible for packaging the data for the new version of the client.
  • the client With the new tag name, the client will discard the old one and only process the new one. In this way, after the same action is triggered, Topic data is written, and the new and old scripts are consumed and different live room content structures are sent to the new and old versions of the client.
  • FIG. 4 is a schematic flowchart of another message processing method according to an embodiment of the present invention.
  • the difference between the message processing method provided in this embodiment and the message processing method provided in the foregoing embodiment is that the message processing module is used as the execution subject to perform message processing operations.
  • the message processing method mainly includes the following steps:
  • S401 Receive interaction information corresponding to a 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;
  • the message processing method provided in this embodiment can be applied to a message processing process in a live broadcast room, especially in scenarios where clients connected to the live broadcast room have different versions.
  • the possible versions of the client are defined as the previous version and the latest version. The previous version was released earlier than the latest version. Clients of different versions correspond to different server versions. The channels for sending and receiving messages or the scripts used are also different. different.
  • the version of the currently interacting client is defined as the target version, and the topic corresponding to the current client is defined as the target topic.
  • the target topic is a topic corresponding to the target live broadcast room
  • the interaction information is at least one of a comment message, a barrage message, and an entry message in the target live broadcast room.
  • the message processing module here is the central module in the entire message interaction system, and is used to implement message interaction between clients of different versions.
  • the message processing module After the message processing module receives the interactive message, it distributes the message according to the NSQ-type message queue of the distributed real-time messaging platform based on the Go language. Specifically, the distribution node corresponding to the target topic is used to copy the interactive message to the first channel and the second channel, so that the same data exists in the first channel and the second channel for consumers downstream of the channel to consume.
  • the corresponding script can be called to analyze and send the interactive message.
  • the first script parses the data in the first channel and sends interactive information to the first receiving terminal
  • the second script parses the data in the second channel and sends the interactive information to the second receiving terminal.
  • the first script is called to send the interaction information in the first channel to the first receiving terminal
  • the second script is called to send the second
  • the step of sending the interactive information in the channel to the second receiving terminal includes:
  • the invoking the first script sends the interaction information in the first channel to the first receiving terminal and the second receiving terminal
  • the step of calling a second script to send the interaction information in the second channel to the second receiving terminal includes:
  • the target topic is a topic corresponding to the target live broadcast room
  • the interaction information is at least one of a comment message, a barrage message, and an entry message in the target live broadcast room .
  • the step of receiving the interaction information corresponding to the target topic sent by the sending terminal of the target version includes:
  • the message processing solution in the embodiment of the present disclosure includes: receiving the interaction information corresponding to the target topic sent by the sending terminal of the target version, wherein the target version is any one of the previous version and the latest version;
  • the distribution node of the topic sends the interaction information to both the first channel and the second channel connected to the distribution node, where the first channel is the first channel that flows from the distribution node to the previous version
  • the message channel of the receiving terminal, the second channel is the message channel that flows from the distribution node to the second receiving terminal of the latest version;
  • the first script is called to send the interactive information in the first channel to the The first receiving terminal, and calling a second script to send the interaction information in the second channel to the second receiving terminal.
  • the timeliness of the message processing solution between terminals of different versions is improved, and the operation and maintenance cost is reduced.
  • the specific implementation process of the message processing method in this embodiment please refer to the specific implementation process of the message processing method provided in the embodiment shown in FIG. 1, which will not be repeated here.
  • FIG. 2 is a schematic diagram of interaction of a message interaction system provided by an embodiment of the present invention.
  • the message interaction system includes: a message processing module, and a sending terminal and a receiving terminal of a previous version connected to the message processing module, and a sending terminal and a receiving terminal of the latest version; wherein,
  • the sending terminal of the target version is configured to send interaction information corresponding to the target topic to the message processing module, wherein the target version is any one of the previous version and the latest version;
  • the message processing module is configured to send the interaction information to both the first channel and the second channel connected to the distribution node through the distribution node of the target topic, wherein the first channel is the slave 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 configured to call the first script to send the interaction information in the first channel to the first receiving terminal and the second receiving terminal, and to call the second script to transfer the Sending the interaction information in the second channel to the second receiving terminal;
  • the first receiving terminal is configured to receive the interaction information in the first channel sent by a first script and the second receiving terminal is configured to receive the interaction information in the second channel sent by a second script.
  • Interactive information is configured to be received.
  • the system shown in FIG. 2 can correspondingly execute the content in the foregoing method embodiment.
  • an embodiment of the present disclosure also provides a message processing apparatus 50, including:
  • the receiving module 501 is configured to receive interactive information corresponding to the target topic sent by the sending terminal of the target version, where the target version is any one of the previous version and the latest version;
  • the issuing module 502 is configured to issue the interaction information to both the first channel and the second channel connected to the distribution node through the distribution node of the target topic, wherein the first channel is the slave 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 calling module 503 is configured to call a first script to send the interactive information in the first channel to the first receiving terminal, and call a second script to send the interactive information in the second channel To the second receiving terminal.
  • the device shown in FIG. 5 can correspondingly execute the content in the foregoing method embodiment.
  • an electronic device 60 which includes:
  • At least one processor and,
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the message processing method in the foregoing method embodiment.
  • the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the message processing method in the foregoing method embodiment.
  • the embodiments of the present disclosure also provide a computer program product, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, The computer executes the message processing method in the foregoing method embodiment.
  • FIG. 6 shows a schematic structural diagram of an electronic device 60 suitable for implementing embodiments of the present disclosure.
  • Electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 60 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
  • the program in the memory (RAM) 603 executes various appropriate actions and processing.
  • various programs and data required for the operation of the electronic device 60 are also stored.
  • the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input/output (I/O) interface 605 is also connected to the bus 604.
  • the following devices can be connected to the I/O interface 605: including input devices 606 such as touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, An output device 607 such as a vibrator; a storage device 608 including, for example, a magnetic tape and a hard disk; and a communication device 609.
  • the communication device 609 may allow the electronic device 60 to perform wireless or wired communication with other devices to exchange data.
  • the figure shows the electronic device 60 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may be implemented alternatively or provided with more or fewer devices.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602.
  • the processing device 601 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • Computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the foregoing computer-readable medium carries one or more programs, and when the foregoing one or more programs are executed by the electronic device, the electronic device can implement the solutions provided by the foregoing method embodiments.
  • the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, the electronic device can implement the solutions provided by the aforementioned method embodiments.
  • the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure can be implemented in software or hardware. Wherein, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first obtaining unit can also be described as "a unit for obtaining at least two Internet Protocol addresses.”

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

一种消息处理方法、装置及电子设备,该方法包括:接收目标版本的发送终端发送的对应目标话题的交互信息,其中,目标版本为在先版本和最新版本中的任一版本(S401);通过目标话题的分发节点,向与分发节点连接的第一通道和第二通道均下发交互信息,其中,第一通道为从分发节点流向在先版本的第一接收终端的消息通道,第二通道为从分发节点流向最新版本的第二接收终端的消息通道(S402);调用第一脚本将第一通道内的交互信息发送至第一接收终端,以及,调用第二脚本将第二通道内的交互信息发送至第二接收终端(S403)。通过该方法提高了不同版本的终端之间消息处理方案的及时性。

Description

消息处理方法、装置及电子设备
本公开要求于2020年01月20日提交中国专利局、申请号为202010066713.3、申请名称为“消息处理方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及数据交互技术领域,尤其涉及一种消息处理方法、装置及电子设备。
背景技术
随着数据交互技术的发展,终端之间的数据交互日益高校。终端在初次发布之后,随着需求增多和功能更新,还会发布其他版本。在先版本和最新版本之间通常不能进行数据同步,导致消息的及时性较差。
可见,现有针对不同版本的消息处理方案存在及时性较差的技术问题。
发明内容
有鉴于此,本公开实施例提供一种消息处理方法、装置及电子设备,至少部分解决现有技术中存在的问题。
第一方面,本公开实施例提供了一种消息处理方法,包括:
接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;
通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
根据本公开实施例的一种具体实现方式,所述调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
根据本公开实施例的一种具体实现方式,所述调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚 本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
调用所述第一脚本将所述第一通道内的所述交互信息添加第一标识名后发送至所述第一接收终端和所述第二接收终端,以使所述第一接收终端接收添加所述第一标识名的交互信息,以及,调用第二脚本将所述第二通道内的所述交互信息添加第二标识名后发送至所述第二接收终端,以使所述第二接收终端接收添加所述第二标识名的交互信息。
根据本公开实施例的一种具体实现方式,所述目标话题为目标直播间对应的话题,所述交互信息为所述目标直播间的评论消息、弹幕消息和进场消息中的至少一种。
根据本公开实施例的一种具体实现方式,所述接收目标版本的发送终端发送的对应目标话题的交互信息的步骤,包括:
获取所述目标版本的发送终端发送至所述目标版本的服务器的所述交互消息。
第二方面,本发明实施例还提供了另一种消息处理方法,应用于消息交互系统,所述消息交互系统包括消息处理模块,以及与所述消息处理模块连接的在先版本的发送终端和接收终端,最新版本的发送终端和接收终端;所述方法包括:
目标版本的发送终端发送对应目标话题的交互信息至所述消息处理模块,其中,所述目标版本为所述在先版本和所述最新版本中的任一版本;
所述消息处理模块通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端;
所述第一接收终端接收第一脚本发送的所述第一通道内的所述交互信息以及,所述第二接收终端接收第二脚本发送的所述第二通道内的所述交互信息。
根据本公开实施例的一种具体实现方式,所述消息处理模块调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
根据本公开实施例的一种具体实现方式,所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息添加第一标识名后发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息添加第二标识名后发送至所述第二接收终端;
所述第一接收终端接收添加所述第一标识名的交互信息,以及,所述第二接收终 端接收添加所述第二标识名的交互信息。
根据本公开实施例的一种具体实现方式,所述交互系统还包括所述在先版本的服务器和所述最新版本的服务器;
所述目标版本的发送终端发送对应目标话题的交互信息至所述消息处理模块的步骤,包括:
所述目标版本的发送终端通过所述目标版本的服务器发送所述交互信息至所述消息处理模块。
第三方面,本发明实施例还提供了一种消息交互系统,包括:消息处理模块,以及与所述消息处理模块连接的在先版本的发送终端和接收终端,最新版本的发送终端和接收终端;其中,
目标版本的发送终端用于发送对应目标话题的交互信息至所述消息处理模块,其中,所述目标版本为所述在先版本和所述最新版本中的任一版本;
所述消息处理模块用于通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
所述消息处理模块用于调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端;
所述第一接收终端用于接收第一脚本发送的所述第一通道内的所述交互信息以及,所述第二接收终端用于接收第二脚本发送的所述第二通道内的所述交互信息。
第四方面,本发明实施例还提供了一种消息处理装置,包括:
接收模块,用于接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;
下发模块,用于通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
调用模块,用于调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
第五方面,本公开实施例还提供了一种电子设备,该电子设备包括:
至少一个处理器;以及,
与该至少一个处理器通信连接的存储器;其中,
该存储器存储有可被该至少一个处理器执行的指令,该指令被该至少一个处理器执行,以使该至少一个处理器能够执行前述第一方面或第二方面的任一实现方式中的消息处理方法。
第六方面,本公开实施例还提供了一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述第一方面 或第一方面的任一实现方式中的消息处理方法。
第七方面,本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,该计算机程序包括程序指令,当该程序指令被计算机执行时,使该计算机执行前述第一方面或第二方面的任一实现方式中的消息处理方法。
本公开实施例中的消息处理方案,包括:接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。通过本公开的方案,提高了不同版本的终端之间消息处理方案的及时性。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本公开实施例提供的一种消息处理方法的流程示意图;
图2为本公开实施例提供的消息交互系统的交互示意图;
图3为本公开实施例提供的另一种消息处理方法的部分流程示意图;
图4为本公开实施例提供的另一种消息处理方法的流程示意图;
图5为本公开实施例提供的一种消息处理装置的结构示意图;
图6为本公开实施例提供的电子设备示意图。
具体实施方式
下面结合附图对本公开实施例进行详细描述。
以下通过特定的具体实例说明本公开的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本公开的其他优点与功效。显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。本公开还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本公开的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
需要说明的是,下文描述在所附权利要求书的范围内的实施例的各种方面。应显而易见,本文中所描述的方面可体现于广泛多种形式中,且本文中所描述的任何特定结构及/或功能仅为说明性的。基于本公开,所属领域的技术人员应了解,本文中所描 述的一个方面可与任何其它方面独立地实施,且可以各种方式组合这些方面中的两者或两者以上。举例来说,可使用本文中所阐述的任何数目个方面来实施设备及/或实践方法。另外,可使用除了本文中所阐述的方面中的一或多者之外的其它结构及/或功能性实施此设备及/或实践此方法。
还需要说明的是,以下实施例中所提供的图示仅以示意方式说明本公开的基本构想,图式中仅显示与本公开中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。
另外,在以下描述中,提供具体细节是为了便于透彻理解实例。然而,所属领域的技术人员将理解,可在没有这些特定细节的情况下实践所述方面。
本公开实施例提供一种消息处理方法。本实施例提供的消息处理方法可以由一计算装置来执行,该计算装置可以实现为软件,或者实现为软件和硬件的组合,该计算装置可以集成设置在服务器、终端设备等中。
参见图1,本公开实施例提供的一种消息处理方法。所述消息处理方法应用于如图2所示的交互系统,所述消息交互系统包括消息处理模块,以及与所述消息处理模块连接的在先版本的发送终端和接收终端,最新版本的发送终端和接收终端。如图1所示,所述消息处理方法主要包括以下步骤:
S101,目标版本的发送终端发送对应目标话题的交互信息至所述消息处理模块,其中,所述目标版本为所述在先版本和所述最新版本中的任一版本;
本实施例提供的消息处理方法,可以应用于直播间的消息处理过程,尤其是连接直播间的客户端存在不同版本的场景。将客户端可能存在的版本分别定义为在先版本和最新版本,在先本版的发布时间早于最新版本,不同版本的客户端对应的服务器版本也不同,消息收发的通道或者调用的脚本也不同。将当前交互的客户端的版本定义为目标版本,将当前客户端所对应的话题Topic,定义为目标话题。可选的,所述目标话题为目标直播间对应的话题,所述交互信息为所述目标直播间的评论消息、弹幕消息和进场消息中的至少一种。
用户在需要针对某一目标直播间发评论消息或者其他交互消息时,通过其目标版本的发送终端向消息处理模块发送交互消息。此处的消息处理模块为位于整个消息交互系统的中心模块,用于实现不同版本的客户端之间的消息交互。
如图2所示的消息交互系统,从数据流方向上来看,所述消息处理模块203上连接有不同版本的发送终端201,消息处理模块203通过不同版本的服务器202间接与发送终端201交互。消息处理模块203下连接有不同的通道204,每个通道对应不同版本的接收终端206,可以调用对应版本的脚本205向一个或者多个版本的接收终端206发送交互信息。
需要说明的是,消息处理模块203可以为独立于终端201和服务器202之外的处理器或者其他中控设备,也可以为不同版本的服务器形成的服务器集群的中控设备。
可选的,所述交互系统还包括所述在先版本的服务器和所述最新版本的服务器;
所述目标版本的发送终端发送对应目标话题的交互信息至所述消息处理模块的步骤,包括:
所述目标版本的发送终端通过所述目标版本的服务器发送所述交互信息至所述消息处理模块。
S102,所述消息处理模块通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
消息处理模块在接收到交互消息后,依据基于Go语言的分布式实时消息平台NSQ类消息队列的方式进行消息分发。具体的,利用对应目标话题的分发节点,将所述交互消息复制到第一通道和第二通道,这样,第一通道和第二通道内均存在相同的数据供通道下游的消费者消费。
S103,所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端;
在将相同的交互消息复制到第一通道和第二通道后,即可调用相应的脚本进行交互消息解析和发送。具体的,第一脚本解析第一通道内的数据,将交互信息发送至第一接收终端,第二脚本解析第二通道内的数据,将交互信息发送至第二接收终端。
S104,所述第一接收终端接收第一脚本发送的所述第一通道内的所述交互信息,以及,所述第二接收终端接收第二脚本发送的所述第二通道内的所述交互信息。
这样,不同版本的第一接收终端和第二接收终端均能接收到该交互信息。
根据本公开实施例的一种具体实现方式,所述消息处理模块调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
可选的,如图3所示,所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
S301,所述消息处理模块调用所述第一脚本将所述第一通道内的所述交互信息添加第一标识名后发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息添加第二标识名后发送至所述第二接收终端;
为减少不必要的解析操作和可能引发的程序崩溃,可以通过添加标识名的方式进行区分。第一脚本将解析得到的交互信息添加第一标识名,第二脚本将解析得到的交互信息添加第二标识名,第二接收终端仅需要接收和处理添加第二标识名的交互信息即可,将添加第一标识名的交互信息丢弃。
S302,所述第一接收终端接收添加所述第一标识名的交互信息,以及,所述第二接收终端接收添加所述第二标识名的交互信息。
考虑到通用消息交互系统中,在先版本的脚本解析第一通道的交互消息后,会将第一通道的交互消息发送至第一接收终端和第二接收终端,而最新版本的脚本在解析 第一通道的交互消息后,会将第二通道的交互消息发送至第二接收终端。这样,第二接收终端就会接收到两份交互消息。
上述本实施例提供的消息处理方法,针对直播间基础体验消息,主要包括:评论消息、弹幕消息、进场消息等。老版本的脚本通过不同管道Channel,消费主题Topic,相同Topic在不同Channel上会有份一样的拷贝,然后调用通信服务发送不同的直播间内容Data,客户端通过接口拉到Data后,根据标识名来处理不同消息。老的脚本不动,继续跑,通过旧的Channel消费NSQ,继续给老版本客户端发直播间内容Data,此外,起新的脚本,在上面写新的逻辑,在原来的Topic上新建Channel,新的Channel上会有份跟原来一样的数据,新的脚本负责给新版本客户端打包数据,用新的标志名,客户端遇到老的就丢弃,只处理新的。这样就能做到同一行为触发后,写Topic数据,新老脚本消费完分别给新老版本客户端下发不同的直播间内容结构体。
通过本公开的方案,提高了不同版本的终端之间消息处理方案的及时性,降低了运维成本。
参见图4,为本发明实施例提供的另一种消息处理方法的流程示意图。本实施例提供的消息处理方法与上述实施例提供的消息处理方法的区别在于,从消息处理模块作为执行主体执行消息处理操作。如图4所示,所述消息处理方法主要包括以下步骤:
S401,接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;
本实施例提供的消息处理方法,可以应用于直播间的消息处理过程,尤其是连接直播间的客户端存在不同版本的场景。将客户端可能存在的版本分别定义为在先版本和最新版本,在先本版的发布时间早于最新版本,不同版本的客户端对应的服务器版本也不同,消息收发的通道或者调用的脚本也不同。将当前交互的客户端的版本定义为目标版本,将当前客户端所对应的话题Topic,定义为目标话题。可选的,所述目标话题为目标直播间对应的话题,所述交互信息为所述目标直播间的评论消息、弹幕消息和进场消息中的至少一种。
用户在需要针对某一目标直播间发评论消息或者其他交互消息时,通过其目标版本的发送终端向消息处理模块发送交互消息。此处的消息处理模块为位于整个消息交互系统的中心模块,用于实现不同版本的客户端之间的消息交互。
S402,通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
消息处理模块在接收到交互消息后,依据基于Go语言的分布式实时消息平台NSQ类消息队列的方式进行消息分发。具体的,利用对应目标话题的分发节点,将所述交互消息复制到第一通道和第二通道,这样,第一通道和第二通道内均存在相同的数据供通道下游的消费者消费。
S403,调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
在将相同的交互消息复制到第一通道和第二通道后,即可调用相应的脚本进行交互消息解析和发送。具体的,第一脚本解析第一通道内的数据,将交互信息发送至第一接收终端,第二脚本解析第二通道内的数据,将交互信息发送至第二接收终端。
根据本公开实施例的一种具体实现方式,所述调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
根据本公开实施例的一种具体实现方式,所述调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
调用所述第一脚本将所述第一通道内的所述交互信息添加第一标识名后发送至所述第一接收终端和所述第二接收终端,以使所述第一接收终端接收添加所述第一标识名的交互信息,以及,调用第二脚本将所述第二通道内的所述交互信息添加第二标识名后发送至所述第二接收终端,以使所述第二接收终端接收添加所述第二标识名的交互信息。
根据本公开实施例的一种具体实现方式,所述目标话题为目标直播间对应的话题,所述交互信息为所述目标直播间的评论消息、弹幕消息和进场消息中的至少一种。
根据本公开实施例的一种具体实现方式,所述接收目标版本的发送终端发送的对应目标话题的交互信息的步骤,包括:
获取所述目标版本的发送终端发送至所述目标版本的服务器的所述交互消息。
本公开实施例中的消息处理方案,包括:接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。通过本公开的方案,提高了不同版本的终端之间消息处理方案的及时性,降低了运维成本。本实施例的消息处理方法的具体实施过程,参见前述图1所示的实施例提供的消息处理方法的具体实施过程,在此不再一一赘述。
参见图2,为本发明实施例提供的一种消息交互系统的交互示意图。所述消息交互系统包括:消息处理模块,以及与所述消息处理模块连接的在先版本的发送终端和接收终端,最新版本的发送终端和接收终端;其中,
目标版本的发送终端用于发送对应目标话题的交互信息至所述消息处理模块,其中,所述目标版本为所述在先版本和所述最新版本中的任一版本;
所述消息处理模块用于通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流 向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
所述消息处理模块用于调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端;
所述第一接收终端用于接收第一脚本发送的所述第一通道内的所述交互信息以及,所述第二接收终端用于接收第二脚本发送的所述第二通道内的所述交互信息。
图2所示系统可以对应的执行上述方法实施例中的内容,本实施例未详细描述的部分,参照上述方法实施例中记载的内容,在此不再赘述。
与上面的方法实施例相对应,参见图5,本公开实施例还提供了一种消息处理装置50,包括:
接收模块501,用于接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;
下发模块502,用于通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
调用模块503,用于调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
图5所示装置可以对应的执行上述方法实施例中的内容,本实施例未详细描述的部分,参照上述方法实施例中记载的内容,在此不再赘述。
参见图6,本公开实施例还提供了一种电子设备60,该电子设备包括:
至少一个处理器;以及,
与该至少一个处理器通信连接的存储器;其中,
该存储器存储有可被该至少一个处理器执行的指令,该指令被该至少一个处理器执行,以使该至少一个处理器能够执行前述方法实施例中的消息处理方法。
本公开实施例还提供了一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述方法实施例中的消息处理方法。
本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,该计算机程序包括程序指令,当该程序指令被计算机执行时,使该计算机执行前述方法实施例中的的消息处理方法。
下面参考图6,其示出了适于用来实现本公开实施例的电子设备60的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图6所示,电子设备60可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备60操作所需的各种程序和数据。处理装置601、ROM 602以及RAM603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备60与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种装置的电子设备60,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备能够实现上述方法实施例提供的方案。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备能够实现上述方法实施例提供的方案。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。

Claims (10)

  1. 一种消息处理方法,其特征在于,包括:
    接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;
    通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
    调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
  2. 根据权利要求1所述的方法,其特征在于,所述调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
    调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
  3. 根据权利要求2所述的方法,其特征在于,所述调用所述第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端的步骤,包括:
    调用所述第一脚本将所述第一通道内的所述交互信息添加第一标识名后发送至所述第一接收终端和所述第二接收终端,以使所述第一接收终端接收添加所述第一标识名的交互信息,以及,调用第二脚本将所述第二通道内的所述交互信息添加第二标识名后发送至所述第二接收终端,以使所述第二接收终端接收添加所述第二标识名的交互信息。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述目标话题为目标直播间对应的话题,所述交互信息为所述目标直播间的评论消息、弹幕消息和进场消息中的至少一种。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述接收目标版本的发送终端发送的对应目标话题的交互信息的步骤,包括:
    获取所述目标版本的发送终端发送至所述目标版本的服务器的所述交互消息。
  6. 一种消息交互系统,其特征在于,包括:消息处理模块,以及与所述消息处理模块连接的在先版本的发送终端和接收终端,最新版本的发送终端和接收终端;其中,
    目标版本的发送终端用于发送对应目标话题的交互信息至所述消息处理模块,其中,所述目标版本为所述在先版本和所述最新版本中的任一版本;
    所述消息处理模块用于通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
    所述消息处理模块用于调用所述第一脚本将所述第一通道内的所述交互信息发送 至所述第一接收终端和所述第二接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端;
    所述第一接收终端用于接收第一脚本发送的所述第一通道内的所述交互信息以及,所述第二接收终端用于接收第二脚本发送的所述第二通道内的所述交互信息。
  7. 一种消息处理装置,其特征在于,包括:
    接收模块,用于接收目标版本的发送终端发送的对应目标话题的交互信息,其中,所述目标版本为在先版本和最新版本中的任一版本;
    下发模块,用于通过所述目标话题的分发节点,向与所述分发节点连接的第一通道和第二通道均下发所述交互信息,其中,所述第一通道为从所述分发节点流向所述在先版本的第一接收终端的消息通道,所述第二通道为从所述分发节点流向所述最新版本的第二接收终端的消息通道;
    调用模块,用于调用第一脚本将所述第一通道内的所述交互信息发送至所述第一接收终端,以及,调用第二脚本将所述第二通道内的所述交互信息发送至所述第二接收终端。
  8. 一种电子设备,其特征在于,所述电子设备包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述权利要求1-5中任一项所述的消息处理方法。
  9. 一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述权利要求1-5中任一项所述的消息处理方法。
  10. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,所述计算机前述权利要求1-5中任一项所述的消息处理方法。
PCT/CN2020/127665 2020-01-20 2020-11-10 消息处理方法、装置及电子设备 WO2021147466A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010066713.3A CN111290861B (zh) 2020-01-20 2020-01-20 消息处理方法、装置及电子设备
CN202010066713.3 2020-01-20

Publications (1)

Publication Number Publication Date
WO2021147466A1 true WO2021147466A1 (zh) 2021-07-29

Family

ID=71023340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/127665 WO2021147466A1 (zh) 2020-01-20 2020-11-10 消息处理方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN111290861B (zh)
WO (1) WO2021147466A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290861B (zh) * 2020-01-20 2023-08-25 北京字节跳动网络技术有限公司 消息处理方法、装置及电子设备
CN117579679B (zh) * 2024-01-15 2024-04-19 海马云(天津)信息技术有限公司 信令交互方法和装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011277A1 (en) * 2005-07-11 2007-01-11 Ralph Neff System and method for transferring data
CN102546815A (zh) * 2012-01-20 2012-07-04 王鑫 一种数字电子终端间同步系统和数字电子终端间同步方法
CN104216693A (zh) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 一种提供设备标识的方法及装置
CN104660672A (zh) * 2013-11-22 2015-05-27 韩国电子通信研究院 网络内容共享方法、以及网络内容提供设备和接收终端
CN110413303A (zh) * 2019-07-23 2019-11-05 日立楼宇技术(广州)有限公司 一种控制器的同步方法、装置、设备和存储介质
CN111290861A (zh) * 2020-01-20 2020-06-16 北京字节跳动网络技术有限公司 消息处理方法、装置及电子设备

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7996459B2 (en) * 2006-08-31 2011-08-09 Microsoft Corporation Video-switched delivery of media content using an established media-delivery infrastructure
US9332070B2 (en) * 2009-08-14 2016-05-03 Blackberry Limited Methods and apparatus for synchronizing notifications for service events
CN102163152A (zh) * 2010-10-26 2011-08-24 青岛海信传媒网络技术有限公司 嵌入式终端设备的软件升级方法及装置
US10305981B2 (en) * 2016-08-31 2019-05-28 Satori Worldwide, Llc Data replication in scalable messaging system
CN108243171B (zh) * 2016-12-27 2020-12-22 北京新唐思创教育科技有限公司 在线直播互动系统及方法
US10270726B2 (en) * 2017-02-24 2019-04-23 Satori Worldwide, Llc 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
US10841256B2 (en) * 2017-05-05 2020-11-17 ShieldX Networks, Inc. Upgrading components of a messaging system used by a microservice-based application
CN110391922B (zh) * 2018-04-18 2022-08-19 视联动力信息技术股份有限公司 一种业务平台的版本提示方法和装置
CN110012115A (zh) * 2019-05-06 2019-07-12 广州华多网络科技有限公司 直播间推送信息的更新方法和系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011277A1 (en) * 2005-07-11 2007-01-11 Ralph Neff System and method for transferring data
CN102546815A (zh) * 2012-01-20 2012-07-04 王鑫 一种数字电子终端间同步系统和数字电子终端间同步方法
CN104216693A (zh) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 一种提供设备标识的方法及装置
CN104660672A (zh) * 2013-11-22 2015-05-27 韩国电子通信研究院 网络内容共享方法、以及网络内容提供设备和接收终端
CN110413303A (zh) * 2019-07-23 2019-11-05 日立楼宇技术(广州)有限公司 一种控制器的同步方法、装置、设备和存储介质
CN111290861A (zh) * 2020-01-20 2020-06-16 北京字节跳动网络技术有限公司 消息处理方法、装置及电子设备

Also Published As

Publication number Publication date
CN111290861B (zh) 2023-08-25
CN111290861A (zh) 2020-06-16

Similar Documents

Publication Publication Date Title
CN109582310B (zh) 数据处理方法、装置、电子设备及计算机可读存储介质
WO2020221190A1 (zh) 小程序状态同步方法、设备和计算机存储介质
WO2020233142A1 (zh) 多媒体文件播放方法、装置、电子设备和存储介质
WO2020151599A1 (zh) 视频同步发布方法、装置、电子设备及可读存储介质
US20220239760A1 (en) Message pushing method for a virtual gift and electronic device
WO2021114979A1 (zh) 视频页面显示方法、装置、电子设备和计算机可读介质
WO2020248745A1 (zh) 用户界面中字符的显示方法、装置、电子设备及存储介质
WO2021147466A1 (zh) 消息处理方法、装置及电子设备
WO2022135094A1 (zh) 系统的混沌工程实验方法、设备及存储介质
WO2020143555A1 (zh) 用于展现信息的方法和装置
WO2022057677A1 (zh) 振动控制方法、装置、电子设备和计算机可读存储介质
WO2015176352A1 (zh) 一种基于安卓系统的应用间信息交互方法及装置
WO2023000888A1 (zh) 云应用的实现方法、装置、电子设备和存储介质
JP6758139B2 (ja) 効率的な呼処理のためのシステムおよび方法
WO2024051518A1 (zh) 直播方法、装置、电子设备以及存储介质
JP2020004379A (ja) 情報をリリースするための方法と装置、ならびに情報を処理するための方法と装置
US20230385080A1 (en) Method and apparatus for presenting information on lock screen interface, terminal, and storage medium
US20240104671A1 (en) Method and apparatus for group management, electronic device, and storage medium
US20230319325A1 (en) Information interaction method, apparatus and device
WO2020173381A1 (zh) 数据互通方法、装置、终端及存储介质
WO2023134559A1 (zh) 评论提示方法、装置、电子设备、存储介质和程序产品
US11962929B2 (en) Method, apparatus, and device for configuring video special effect, and storage medium
WO2023061137A1 (zh) 多媒体数据的处理方法、系统及设备
WO2022228067A1 (zh) 语音处理方法、装置和电子设备
CN113778566A (zh) 原生应用调用方法、装置、电子设备和计算机可读介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20915893

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20915893

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20915893

Country of ref document: EP

Kind code of ref document: A1