CN112203103B - Message processing method, device, electronic equipment and computer readable storage medium - Google Patents

Message processing method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112203103B
CN112203103B CN202011038440.8A CN202011038440A CN112203103B CN 112203103 B CN112203103 B CN 112203103B CN 202011038440 A CN202011038440 A CN 202011038440A CN 112203103 B CN112203103 B CN 112203103B
Authority
CN
China
Prior art keywords
message
rule
message processing
sent
acquisition request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011038440.8A
Other languages
Chinese (zh)
Other versions
CN112203103A (en
Inventor
刘庆
杨武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011038440.8A priority Critical patent/CN112203103B/en
Publication of CN112203103A publication Critical patent/CN112203103A/en
Application granted granted Critical
Publication of CN112203103B publication Critical patent/CN112203103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses a message processing method, a message processing device, electronic equipment and a computer readable storage medium. The message processing method comprises the following steps: acquiring a message processing rule; acquiring a message to be sent in response to receiving a message acquisition request; calculating a decision value according to the message processing rule and the message acquisition request; and processing the message to be sent according to the decision value. The method solves the problems of bandwidth and calculation resource waste caused by message transmission by the processing mode of calculating the message according to the message processing rule corresponding to the message acquisition request.

Description

Message processing method, device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of message processing, and in particular, to a message processing method, apparatus, electronic device, and computer readable storage medium.
Background
With the rapid development of information technology, mobile internet technology is also rapidly advancing. Whether the intelligent equipment is appeared or the 5G age is coming, or the big data, AI intelligence, algorithm and other technologies are applied, the flying wings are inserted into the electronic mobile equipment. In real life, the technology is beneficial to the richness and the color of social interaction, especially the appearance of a smart phone, breaks the space-time limit of daily interaction of human beings, is a comprehensive palm mobile device truly integrating mass information, network audio-visual and leisure entertainment and the like, and meets the daily information demands and the social interaction of people.
Many platforms currently provide live services, the number of people in a live broadcast room may vary from a few people to hundreds of thousands of people, and the interaction frequency of audiences is very high, so that hundreds of interaction messages can be generated per second. With the development of live broadcast room functions, user demands are more and more diversified, and demands on a live broadcast message system are more and more personalized. For example, a gift message sent by a user requires a significant amount of computing resources to present, where not all terminals are able to have such computing resources to present the content of the message; sometimes the same live studio can play at the pc end, the android end and the ios end at the same time, but some messages are not applicable to some platforms due to the difference of the platforms. Due to the existence of the above, after many messages are sent to the terminal, the terminal is not able to present the messages, which may result in waste of bandwidth and computing resources.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above technical problems, the embodiments of the present disclosure provide the following technical solutions.
In a first aspect, an embodiment of the present disclosure provides a message processing method, including:
acquiring a message processing rule;
acquiring a message to be sent in response to receiving a message acquisition request;
calculating a decision value according to the message processing rule and the message acquisition request;
and processing the message to be sent according to the decision value.
Further, the obtaining the message rule includes:
obtaining a message processing rule from a rule platform, wherein the rule platform is used for generating the message processing rule.
Further, the rule platform is configured to generate the message processing rule according to a rule setting instruction.
Further, the responding to the message obtaining request to obtain the message to be sent includes:
in response to receiving a message acquisition request, acquiring a range identifier in the message acquisition request;
and acquiring the message to be sent from the message cache according to the range identifier.
Further, the calculating a decision value according to the message processing rule and the message acquisition request includes:
resolving a value of at least one parameter in the message acquisition request;
And calculating a decision value according to the value of the at least one parameter and a logic operation rule related to the at least one parameter in the message processing rule.
Further, the processing the message to be sent according to the decision value includes:
discarding the message to be sent in response to the decision value being a first value;
and responding to the decision value being a second value, and sending the message to be sent to the first terminal.
Further, before acquiring the message to be sent, the method further comprises:
at least one message is received and cached, wherein the message to be sent is all or part of the at least one message.
Further, the obtaining the message processing rule includes:
acquiring a message processing rule from a rule platform according to a preset time period; or, in response to receiving the update message sent by the rule platform, obtaining the message processing rule.
Further, the message processing rule includes:
logical rules consisting of message processing parameters and values of message processing parameters.
In a second aspect, an embodiment of the present disclosure provides a message processing apparatus, including:
the rule acquisition module acquires a message processing rule;
The message acquisition module is used for acquiring a message to be sent in response to receiving the message acquisition request;
the calculation module is used for calculating a decision value according to the message processing rule and the message acquisition request;
and the processing module is used for processing the message to be sent according to the decision value.
Further, the rule obtaining module is further configured to:
obtaining a message processing rule from a rule platform, wherein the rule platform is used for generating the message processing rule.
Further, the rule platform is configured to:
and generating the message processing rule according to the rule setting instruction.
Further, the message obtaining module is further configured to:
in response to receiving a message acquisition request, acquiring a range identifier in the message acquisition request;
and acquiring the message to be sent from the message cache according to the range identifier.
Further, the computing module is further configured to:
resolving a value of at least one parameter in the message acquisition request;
and calculating a decision value according to the value of the at least one parameter and a logic operation rule related to the at least one parameter in the message processing rule.
Further, the processing module is further configured to:
Discarding the message to be sent in response to the decision value being a first value;
and responding to the decision value being a second value, and sending the message to be sent to the first terminal.
Further, the device further comprises:
and the message receiving module is used for receiving and caching at least one message, wherein the message to be sent is all or part of the message in the at least one message.
Further, the rule obtaining module is further configured to:
acquiring a message processing rule from a rule platform according to a preset time period; or, in response to receiving the update message sent by the rule platform, obtaining the message processing rule.
Further, the message processing rule includes:
logical rules consisting of message processing parameters and values of message processing parameters.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; the method comprises the steps of,
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 method of any one of the preceding aspects.
In a fourth aspect, embodiments of the present disclosure provide a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of the preceding aspects.
The embodiment of the disclosure discloses a message processing method, a message processing device, electronic equipment and a computer readable storage medium. The message processing method comprises the following steps: acquiring a message processing rule; acquiring a message to be sent in response to receiving a message acquisition request; calculating a decision value according to the message processing rule and the message acquisition request; and processing the message to be sent according to the decision value. The method solves the problems of bandwidth and calculation resource waste caused by message transmission by the processing mode of calculating the message according to the message processing rule corresponding to the message acquisition request.
The foregoing description is only an overview of the disclosed technology, and may be implemented in accordance with the disclosure of the present disclosure, so that the above-mentioned and other objects, features and advantages of the present disclosure can be more clearly understood, and the following detailed description of the preferred embodiments is given with reference to the accompanying drawings.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flow chart of a message processing method according to an embodiment of the disclosure;
fig. 2 is a schematic flow chart of acquiring a message to be sent in the message processing method provided in the embodiment of the present disclosure;
fig. 3 is a schematic flow chart of calculating a decision value in a message processing method according to an embodiment of the disclosure;
fig. 4 is an application scenario schematic diagram of a message processing method according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an embodiment of a message processing apparatus provided in an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Fig. 1 is a flowchart of an embodiment of a message processing method according to an embodiment of the present disclosure, where the message processing method according to the embodiment may be performed by a message processing apparatus, and the message processing apparatus may be implemented as software, or implemented as a combination of software and hardware, and the message processing apparatus may be integrally provided in a device in a message processing system, such as a message processing server or a message processing terminal device. As shown in fig. 1, the method comprises the steps of:
step S101, obtaining a message processing rule;
optionally, the message processing rule is a logic rule composed of parameters, values of the parameters and logic operators, and specifies a processing mode of the message corresponding to the combination of the values of the specific parameters. Illustratively, the parameters include Method for indicating the type of message and AppVersion for indicating the version of APP that sent the message, and one example of the logical rules is: method=testmessage & & AppVersion > =500, which means that the type of message is a test message, and the version number of the APP that sends the test message is greater than 500.
Optionally, the message processing rule is acquired from a rule platform, and the step S101 includes:
obtaining a message processing rule from a rule platform, wherein the rule platform is used for generating the message processing rule. Wherein the rule platform is independent of the execution means of the message processing method. In this way, the message processing rules may be generated or changed without affecting the execution of the message processing method.
Optionally, the rule platform is configured to:
and generating the message processing rule according to the rule setting instruction.
Illustratively, the rule platform displays a rule configuration interface including human-machine interaction components therein, such as drop-down menus, selection buttons, text bars, and the like. Through the man-machine interaction components, the rule platform receives rule setting instructions, and the rule setting instructions are generated by a user through triggering the man-machine interaction components; and generating the message processing rule according to the rule platform by combining the rule setting instructions.
Optionally, the rule platform may further directly receive the message processing rule, where the exemplary message processing rule is directly input by a man-machine interaction device, for example, a keyboard directly receives a character representing the message processing rule input by a user or receives a message processing rule file uploaded by the user through an uploading interface, and the rule platform verifies whether the character input by the user or the uploaded file conforms to the format of the message processing rule, and if so, generates a corresponding message processing rule.
Optionally, the step S101 includes:
acquiring a message processing rule from a rule platform according to a preset time period; or, in response to receiving the update message sent by the rule platform, obtaining the message processing rule.
Since the message processing rules can be flexibly set, in order not to affect message processing, it is necessary to provide means capable of updating the message processing rules. One way is to preset an acquired time period, then start a timer according to the time period, acquire a message processing rule from a rule platform to update a local message processing rule when the timer is overtime, and then reset the timer; or the rule platform sends an update message, if the change of the message processing rule is detected in the rule platform, the update message is generated and sent to an execution device of the message processing method, and the execution device of the message processing method acquires the updated message processing rule from the rule platform at the moment so as to update the local message processing rule.
Step S102, in response to receiving a message acquisition request, acquiring a message to be sent;
optionally, the step S102 includes:
step S201, in response to receiving a message acquisition request, acquiring a range identifier in the message acquisition request;
Step S202, obtaining the message to be sent from the message cache according to the range identification.
Wherein the range identity represents a range of message acquisitions. In an exemplary embodiment, in a live broadcast scenario, each message belongs to a live broadcast room, the message acquisition request is sent to a live broadcast server by a terminal located in the live broadcast room, and at this time, the message acquisition request includes an identifier indicating the live broadcast room where the terminal is located, where the identifier of the live broadcast room is the range identifier, and the message requested to be acquired is the message of the live broadcast room. Alternatively, each message is illustratively provided with a time stamp or a location identification, which may represent a message in a certain time period or a message in a certain location. It will be appreciated that the scope identifier may include one or more of the scope identifiers in the examples above, such as 9:00-10:00 and location A, to indicate that 9:00-10:00 messages from location A need to be pulled.
In step S202, a message to be sent is obtained from the message cache according to the range identifier. As in the above example, each message has an identifier of the live broadcast room to which it belongs, and according to the identifier, all messages corresponding to the message acquisition request can be screened out as messages to be sent.
Optionally, before the step S102, the method further includes:
at least one message is received and cached, wherein the message to be sent is all or part of the at least one message.
In this alternative embodiment, the device performing the message processing method is a message forwarding device, which is connected to the plurality of terminals, receives the messages sent by the plurality of terminals, and forwards the messages to the target terminals thereof. In the live broadcast scenario, the execution device of the message processing method is a live broadcast server, which is connected to a plurality of terminals participating in live broadcast and receives messages sent by the terminals in the live broadcast room, and the messages are pulled by the terminals at regular time, so that the server needs to buffer the received messages before sending the messages out. The live service of the server maintains at least one live room, and the message to be sent corresponds to the message acquisition request, so that the message to be sent is all or part of the at least one message.
Step S103, calculating a decision value according to the message processing rule and the message acquisition request;
Wherein the message processing rules comprise logic rules consisting of message processing parameters and values of message processing parameters, wherein the message processing parameters correspond to parameters in the message acquisition request. If the message processing parameters comprise message type and APP version, the parameters in the message acquisition request also comprise corresponding message type parameters and APP version parameters.
Illustratively, in the live broadcast scenario, the message acquisition request includes the following parameters: one or more of message type, live region, APP version, APP identity, client platform, client device ID.
The message type is the type of the message to be acquired, such as test message, chat message, gift message and the like; the live broadcast area represents an area where a live broadcast room is located; the APP version represents the version of the live client; the APP identifier represents an identifier of the live client and can be used for representing the type of the live client; the client platform represents the type of an operating system where the live client is located, such as a PC platform, an android platform or an IOS platform; the client device ID represents an ID of a terminal device running the live client, which may represent a type of the terminal device, whereby performance of the terminal device and the like may be determined.
Optionally, the step S103 includes:
step S301, analyzing the value of at least one parameter in the message acquisition request;
step S302, calculating a decision value according to the value of the at least one parameter and a logic operation rule related to the at least one parameter in the message processing rule.
In step S301, the received message acquisition request is parsed, and at least one parameter and a value of the parameter in the message acquisition request are obtained. As with the parameters in the example above, the message type parameter Method and APP version parameter AppVersion are parsed from the message acquisition request, where the value of Method is TestMessage, appVersion and 600.
In step S302, a decision value is calculated according to the logic operation rule in the processing rule and the value of the parameter. Illustratively, the message processing rule method=testmessage & & AppVersion > =500, and according to the parameters and the values of the parameters parsed from the message acquisition request, the message acquisition request satisfies the method=testmessage and AppVersion > =500, so the message acquisition request satisfies the parameter logic rule in the message processing rule, and the decision value drop=false corresponding to the message processing rule, that is, the message to be sent will be sent without being discarded. For example, if the value of AppVersion in the above-mentioned message acquisition request is 400, the calculated decision value dropped=wire is required to be discarded since AppVersion > =500 is not satisfied, i.e., since the version of the client that transmits the message acquisition request is too low, it cannot process the message to be transmitted.
It may be appreciated that the message processing rules may be multiple, for example, one or more message processing rules are set for each type, each platform, and each APP version, where the message obtaining request may match with the multiple message processing rules, and multiple decision values are calculated, where the final decision value may be calculated according to a preset rule, and if only one decision value indicates that the message to be sent needs to be discarded, the message to be sent is discarded; or sending the message to be sent as long as a decision value indicates that the message to be sent needs to be sent.
Step S104, the message to be sent is processed according to the decision value.
Optionally, the step S104 includes:
discarding the message to be sent in response to the decision value being a first value;
and responding to the decision value being a second value, and sending the message to be sent to the first terminal.
The first value indicates that the value of the parameter in the message obtaining request is not matched with the value in the message processing rule, so that the terminal has no capability of processing the message to be sent, and the message to be sent is directly discarded in order to save computing resources and network bandwidth; the second value indicates that the value of the parameter in the message acquisition request matches the value in the message processing rule, and the terminal has the ability to process the message to be sent, and thus send the message to be sent to the first terminal. The first terminal is a terminal sending the request for acquiring the message.
Fig. 4 is a schematic diagram of an application scenario in an embodiment of the disclosure. As shown in fig. 4, in the application scenario, the application scenario includes a plurality of terminal devices 401-403, a live broadcast server 404, and a rule platform 405, it may be understood that the rule platform 405 may also be a server; wherein the plurality of terminal devices and the server are in data interaction through wired or wireless links. As shown in fig. 4, the interaction process of the messages in a live broadcast scenario is that, in a certain period of time, the terminal devices 401-403 send messages to other terminals in the live broadcast room, and the messages are cached on the live broadcast server 404; the live broadcast server 404 periodically acquires the message processing rules from the rule platform 405, and stores the message processing rules in the memory of the live broadcast server 404; and then, after receiving the message pulling instruction of the terminal equipment, the live broadcast server sends the cached message to the corresponding terminal equipment. Since the processing capability of each terminal device may be different, it is necessary to determine whether a message can be transmitted to the corresponding terminal device by a message processing rule before transmitting the message each time. Illustratively, the terminal device 401 is a PC, the terminal device 402 is an android smartphone, the terminal device 403 is an IOS terminal device, and the message processing rule is that when the message type is a gift message and when the client platform is an android and IOS, dropped=false, when the message is pulled, the live server sends the gift message to be sent to the terminal device 402 and the terminal device 403, and the gift message to be sent for the terminal device 401 is discarded. Therefore, the message processing rules can be configured on the rule platform, and the control message is only sent to the terminals meeting the conditions, so that the network efficiency is improved, and the computing resources are saved.
The embodiment of the disclosure discloses a message processing method, a message processing device, electronic equipment and a computer readable storage medium. The message processing method comprises the following steps: acquiring a message processing rule; acquiring a message to be sent in response to receiving a message acquisition request; calculating a decision value according to the message processing rule and the message acquisition request; and processing the message to be sent according to the decision value. The method solves the problems of bandwidth and calculation resource waste caused by message transmission by the processing mode of calculating the message according to the message processing rule corresponding to the message acquisition request.
In the foregoing, although the steps in the foregoing method embodiments are described in the foregoing order, it should be clear to those skilled in the art that the steps in the embodiments of the disclosure are not necessarily performed in the foregoing order, but may be performed in reverse order, parallel, cross, etc., and other steps may be further added to those skilled in the art on the basis of the foregoing steps, and these obvious modifications or equivalent manners are also included in the protection scope of the disclosure and are not repeated herein.
Fig. 5 is a schematic structural diagram of an embodiment of a message processing apparatus according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus 500 includes: a rule acquisition module 501, a message acquisition module 502, a calculation module 503, and a processing module 504. Wherein, the liquid crystal display device comprises a liquid crystal display device,
A rule acquisition module 501 that acquires a message processing rule;
a message obtaining module 502, configured to obtain a message to be sent in response to receiving a message obtaining request;
a calculating module 503, configured to calculate a decision value according to the message processing rule and the message acquisition request;
a processing module 504, configured to process the message to be sent according to the decision value.
Further, the rule obtaining module 501 is further configured to:
obtaining a message processing rule from a rule platform, wherein the rule platform is used for generating the message processing rule.
Further, the rule platform is configured to:
and generating the message processing rule according to the rule setting instruction.
Further, the message obtaining module 502 is further configured to:
in response to receiving a message acquisition request, acquiring a range identifier in the message acquisition request;
and acquiring the message to be sent from the message cache according to the range identifier.
Further, the calculating module 503 is further configured to:
resolving a value of at least one parameter in the message acquisition request;
and calculating a decision value according to the value of the at least one parameter and a logic operation rule related to the at least one parameter in the message processing rule.
Further, the processing module 504 is further configured to:
discarding the message to be sent in response to the decision value being a first value;
and responding to the decision value being a second value, and sending the message to be sent to the first terminal.
Further, the apparatus 500 further includes:
and the message receiving module is used for receiving and caching at least one message, wherein the message to be sent is all or part of the message in the at least one message.
Further, the rule obtaining module 501 is further configured to:
acquiring a message processing rule from a rule platform according to a preset time period; or, in response to receiving the update message sent by the rule platform, obtaining the message processing rule.
Further, the message processing rule includes:
logical rules consisting of message processing parameters and values of message processing parameters.
The apparatus of fig. 5 may perform the method of the embodiment of fig. 1-3, and reference is made to the relevant description of the embodiment of fig. 1-3 for parts of this embodiment not described in detail. The implementation process and the technical effect of this technical solution are described in the embodiments shown in fig. 1 to 3, and are not described herein.
Referring now to fig. 6, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal 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., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to 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 required for the operation of the electronic apparatus 600 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 bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to 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 non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described 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 can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this 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 the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring an input image and a first text; extracting the characteristics of the input image to obtain a characteristic vector of the input image; encoding the first text to obtain a feature vector of the first text; obtaining a joint feature vector according to the feature vector of the input image and the feature vector of the first text; and decoding the joint feature vector to generate a second text.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
According to one or more embodiments of the present disclosure, there is provided a message processing method including:
acquiring a message processing rule;
acquiring a message to be sent in response to receiving a message acquisition request;
calculating a decision value according to the message processing rule and the message acquisition request;
and processing the message to be sent according to the decision value.
Further, the obtaining the message rule includes:
obtaining a message processing rule from a rule platform, wherein the rule platform is used for generating the message processing rule.
Further, the rule platform is configured to generate the message processing rule according to a rule setting instruction.
Further, the responding to the message obtaining request to obtain the message to be sent includes:
in response to receiving a message acquisition request, acquiring a range identifier in the message acquisition request;
and acquiring the message to be sent from the message cache according to the range identifier.
Further, the calculating a decision value according to the message processing rule and the message acquisition request includes:
resolving a value of at least one parameter in the message acquisition request;
and calculating a decision value according to the value of the at least one parameter and a logic operation rule related to the at least one parameter in the message processing rule.
Further, the processing the message to be sent according to the decision value includes:
discarding the message to be sent in response to the decision value being a first value;
and responding to the decision value being a second value, and sending the message to be sent to the first terminal.
Further, before acquiring the message to be sent, the method further comprises:
at least one message is received and cached, wherein the message to be sent is all or part of the at least one message.
Further, the obtaining the message processing rule includes:
acquiring a message processing rule from a rule platform according to a preset time period; or, in response to receiving the update message sent by the rule platform, obtaining the message processing rule.
Further, the message processing rule includes:
logical rules consisting of message processing parameters and values of message processing parameters.
According to one or more embodiments of the present disclosure, there is provided a message processing apparatus including:
the rule acquisition module acquires a message processing rule;
the message acquisition module is used for acquiring a message to be sent in response to receiving the message acquisition request;
the calculation module is used for calculating a decision value according to the message processing rule and the message acquisition request;
And the processing module is used for processing the message to be sent according to the decision value.
Further, the rule obtaining module is further configured to:
obtaining a message processing rule from a rule platform, wherein the rule platform is used for generating the message processing rule.
Further, the rule platform is configured to:
and generating the message processing rule according to the rule setting instruction.
Further, the message obtaining module is further configured to:
in response to receiving a message acquisition request, acquiring a range identifier in the message acquisition request;
and acquiring the message to be sent from the message cache according to the range identifier.
Further, the computing module is further configured to:
resolving a value of at least one parameter in the message acquisition request;
and calculating a decision value according to the value of the at least one parameter and a logic operation rule related to the at least one parameter in the message processing rule.
Further, the processing module is further configured to:
discarding the message to be sent in response to the decision value being a first value;
and responding to the decision value being a second value, and sending the message to be sent to the first terminal.
Further, the device further comprises:
And the message receiving module is used for receiving and caching at least one message, wherein the message to be sent is all or part of the message in the at least one message.
Further, the rule obtaining module is further configured to:
acquiring a message processing rule from a rule platform according to a preset time period; or, in response to receiving the update message sent by the rule platform, obtaining the message processing rule.
Further, the message processing rule includes:
logical rules consisting of message processing parameters and values of message processing parameters.
According to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one processor; and 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 any one of the message processing methods of the first aspect.
According to one or more embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, characterized in that the non-transitory computer readable storage medium stores computer instructions for causing a computer to perform any of the message processing methods of the foregoing first aspect.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).

Claims (9)

1. A method of message processing comprising:
acquiring a message processing rule; wherein the message processing rule includes: a logic rule consisting of a message processing parameter and a value of the message processing parameter;
in response to receiving a message acquisition request, acquiring a live broadcast room identifier in the message acquisition request; the message acquisition request is used for requesting to acquire a message of the live broadcasting room corresponding to the live broadcasting room identifier;
acquiring a message to be transmitted from a message cache according to the live broadcasting room identifier;
resolving a value of at least one parameter in the message acquisition request;
Calculating a decision value according to a logic operation rule related to the at least one parameter in the message processing rule;
and processing the message to be sent according to the decision value.
2. The message processing method of claim 1, wherein the acquiring message rules comprises: obtaining a message processing rule from a rule platform, wherein the rule platform is used for generating the message processing rule.
3. The message processing method of claim 2, wherein the rule platform is configured to generate the message processing rule according to a rule set instruction.
4. The message processing method according to claim 1, wherein the processing the message to be transmitted according to the decision value includes:
discarding the message to be sent in response to the decision value being a first value;
and responding to the decision value being a second value, and sending the message to be sent to the first terminal.
5. The message processing method according to claim 1, further comprising, before acquiring the message to be transmitted:
at least one message is received and cached, wherein the message to be sent is all or part of the at least one message.
6. The message processing method of claim 1, wherein the obtaining the message processing rule comprises: acquiring a message processing rule from a rule platform according to a preset time period; or, in response to receiving the update message sent by the rule platform, obtaining the message processing rule.
7. A message processing apparatus, comprising:
the rule acquisition module acquires a message processing rule; wherein the message processing rule includes: a logic rule consisting of a message processing parameter and a value of the message processing parameter;
the message acquisition module is used for responding to a received message acquisition request, acquiring a live broadcasting room identifier in the message acquisition request and acquiring a message to be transmitted from a message cache according to the live broadcasting room identifier; the message acquisition request is used for requesting to acquire a message of the live broadcasting room corresponding to the live broadcasting room identifier;
a calculation module for resolving a value of at least one parameter in the message acquisition request; and calculating a decision value according to the value of the at least one parameter and a logic operation rule related to the at least one parameter in the message processing rule;
and the processing module is used for processing the message to be sent according to the decision value.
8. An electronic device, comprising:
a memory for storing computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when run implements the method according to any of claims 1-6.
9. A non-transitory computer readable storage medium storing computer readable instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-6.
CN202011038440.8A 2020-09-28 2020-09-28 Message processing method, device, electronic equipment and computer readable storage medium Active CN112203103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011038440.8A CN112203103B (en) 2020-09-28 2020-09-28 Message processing method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011038440.8A CN112203103B (en) 2020-09-28 2020-09-28 Message processing method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112203103A CN112203103A (en) 2021-01-08
CN112203103B true CN112203103B (en) 2023-05-02

Family

ID=74007597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011038440.8A Active CN112203103B (en) 2020-09-28 2020-09-28 Message processing method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112203103B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968825B (en) * 2021-01-29 2023-05-26 北京字节跳动网络技术有限公司 Message sending method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725874A (en) * 2004-07-23 2006-01-25 华为技术有限公司 Method of short message service
CN101237337A (en) * 2007-01-30 2008-08-06 华为技术有限公司 Method, system and device for transmitting multimedia message to the terminal in the conference system
CN103475627A (en) * 2012-06-07 2013-12-25 中兴通讯股份有限公司 Media message adaptation method, client and relevant system
CN107332787A (en) * 2017-06-29 2017-11-07 北京奇艺世纪科技有限公司 A kind of message distributing method and device
CN107426322A (en) * 2017-07-31 2017-12-01 深圳市金立通信设备有限公司 A kind of PUSH message target matching method, server, terminal and computer-readable recording medium
CN110321481A (en) * 2019-06-05 2019-10-11 平安科技(深圳)有限公司 Information push method, system, computer equipment and storage medium
CN110365601A (en) * 2019-06-27 2019-10-22 苏州科达科技股份有限公司 Message treatment method, device and electronic equipment for video conference control front end
CN111327913A (en) * 2020-01-20 2020-06-23 北京字节跳动网络技术有限公司 Message processing method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725874A (en) * 2004-07-23 2006-01-25 华为技术有限公司 Method of short message service
CN101237337A (en) * 2007-01-30 2008-08-06 华为技术有限公司 Method, system and device for transmitting multimedia message to the terminal in the conference system
CN103475627A (en) * 2012-06-07 2013-12-25 中兴通讯股份有限公司 Media message adaptation method, client and relevant system
CN107332787A (en) * 2017-06-29 2017-11-07 北京奇艺世纪科技有限公司 A kind of message distributing method and device
CN107426322A (en) * 2017-07-31 2017-12-01 深圳市金立通信设备有限公司 A kind of PUSH message target matching method, server, terminal and computer-readable recording medium
CN110321481A (en) * 2019-06-05 2019-10-11 平安科技(深圳)有限公司 Information push method, system, computer equipment and storage medium
CN110365601A (en) * 2019-06-27 2019-10-22 苏州科达科技股份有限公司 Message treatment method, device and electronic equipment for video conference control front end
CN111327913A (en) * 2020-01-20 2020-06-23 北京字节跳动网络技术有限公司 Message processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112203103A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN110795022B (en) Terminal testing method, system and storage medium
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN109510754B (en) Online document generation method, device and system and electronic equipment
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111432001B (en) Method, apparatus, electronic device and computer readable medium for jumping scenes
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN112199174A (en) Message sending control method and device, electronic equipment and computer readable storage medium
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN111246228A (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN112256733A (en) Data caching method and device, electronic equipment and computer readable storage medium
CN110636367A (en) Video loading method and device, terminal equipment and medium
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN111163324A (en) Information processing method and device and electronic equipment
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
CN112218034A (en) Video processing method, system, terminal and storage medium
CN112203103B (en) Message processing method, device, electronic equipment and computer readable storage medium
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN114125485B (en) Image processing method, device, equipment and medium
CN112162682A (en) Content display method and device, electronic equipment and computer readable storage medium
CN112040328A (en) Data interaction method and device and electronic equipment
CN112488947A (en) Model training and image processing method, device, equipment and computer readable medium
CN111367592A (en) Information processing method and device
CN112084440B (en) Data verification method, device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant