CN111131392A - Method, device, electronic equipment and medium for processing message - Google Patents

Method, device, electronic equipment and medium for processing message Download PDF

Info

Publication number
CN111131392A
CN111131392A CN201911178455.1A CN201911178455A CN111131392A CN 111131392 A CN111131392 A CN 111131392A CN 201911178455 A CN201911178455 A CN 201911178455A CN 111131392 A CN111131392 A CN 111131392A
Authority
CN
China
Prior art keywords
downstream server
message
server
target message
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911178455.1A
Other languages
Chinese (zh)
Inventor
程亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wenyuanjia Technology Co Ltd
Original Assignee
Beijing Wenyuanjia 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 Wenyuanjia Technology Co Ltd filed Critical Beijing Wenyuanjia Technology Co Ltd
Priority to CN201911178455.1A priority Critical patent/CN111131392A/en
Publication of CN111131392A publication Critical patent/CN111131392A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The application discloses a method, a device, electronic equipment and a medium for processing messages. According to the method and the device, when the failure of the target message sent by the upstream server to the downstream server is detected, the communication state of the downstream server is detected after the target message is acquired, and when the communication state of the downstream server is determined to meet the preset condition, the target message is sent to the downstream server. By applying the technical scheme of the application, the target message sent by each upstream server to the downstream server can be monitored in real time, and when the condition that the target message is failed to be sent is detected, the target message is acquired and stored, so that when the communication state of the downstream server is subsequently determined to be normal, the target message is sent to the downstream server. And further, the problem that when the upstream server fails to send the message to the downstream server, the downstream server does not receive the message, which affects the service progress, in the related art can be avoided.

Description

Method, device, electronic equipment and medium for processing message
Technical Field
The present application relates to data processing technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for processing a message
Background
Due to the rise of the communications era and society, more and more people will choose to learn new knowledge using online education of networks.
With the increasing step of informatization, data is rapidly expanding and becoming large, and the huge amount of data causes the massive data to have high complexity and to be full of changes. Further, in online education over a network, in order to cope with a situation where a user concurrently transmits a large amount of data, it is essential to solve the transmission of massive data based on a distributed message transmission mechanism.
However, in the online live broadcast scene, the real-time reachability requirement for data transmission between users is high, and once there is a message transmission failure, the teaching experience of the users is affected.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a medium for processing messages.
According to an aspect of an embodiment of the present application, there is provided a method for processing a message, including:
when the failure of the target message sent by the upstream server to the downstream server is detected, acquiring the target message;
detecting a communication state of the downstream server;
and when the communication state of the downstream server is determined to meet the preset condition, sending the target message to the downstream server.
Optionally, in another embodiment based on the foregoing method of the present application, the detecting a communication status of the downstream server includes:
analyzing the target message to obtain a sending object identifier carried by the target message;
determining a communication address of the downstream server based on the sending object identification;
and detecting the communication state of the downstream server based on the communication address of the downstream server.
Optionally, in another embodiment based on the foregoing method of the present application, the detecting a communication status of the downstream server based on the communication address of the downstream server includes:
determining a target communication link based on the communication address of the downstream server, wherein the target communication link is a communication link sent to the downstream server;
detecting the communication quality of the target communication link and the receiving state of the downstream server;
and when the communication quality meets a first condition and the receiving state of the downstream server meets a second condition, determining that the communication state of the downstream server meets a preset condition.
Optionally, in another embodiment based on the foregoing method of the present application, the detecting a communication status of the downstream server further includes:
analyzing the target message to obtain message content corresponding to the target message;
detecting a communication status of the downstream server based on the message content.
Optionally, in another embodiment based on the foregoing method of the present application, the detecting a communication status of the downstream server based on the message content includes:
analyzing the message content to obtain a target keyword in the message content;
determining the legality of the target message based on the matching relation between the target keyword and the field database;
and when the target message is determined to be legal, detecting the communication state of the downstream server.
Optionally, in another embodiment based on the foregoing method of the present application, the detecting a communication status of the downstream server based on the message content includes:
analyzing the message content to obtain time limit information corresponding to the target message;
when the time limit information is detected to be smaller than a time threshold, generating a timing tag, and adding the timing tag to the target message, wherein the timing tag is used for clearing the target message after a preset time period;
detecting a communication status of the downstream server based on the timing tag.
Optionally, in another embodiment based on the foregoing method of the present application, the method further includes:
and when a reply message is received, sending the reply message to the upstream server, wherein the reply message is the message generated when the downstream server receives the target message.
According to another aspect of the embodiments of the present application, there is provided an apparatus for processing a message, including:
the acquisition module is arranged to acquire a target message sent by an upstream server to a downstream server when failure of the target message is detected;
a detection module configured to detect a communication status of the downstream server;
a determining module configured to send the target message to the downstream server when it is determined that the communication status of the downstream server satisfies a preset condition.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for display with the memory for executing the executable instructions to perform the operations of any of the above methods of processing messages.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which, when executed, perform the operations of any one of the methods for processing a message.
According to the method and the device, when the failure of the target message sent by the upstream server to the downstream server is detected, after the target message is acquired, the communication state of the downstream server is detected, and when the communication state of the downstream server is determined to meet the preset condition, the target message is sent to the downstream server. By applying the technical scheme of the application, the target message sent by each upstream server to the downstream server can be monitored in real time, and when the condition that the target message is failed to be sent is detected, the target message is acquired and stored, so that when the communication state of the downstream server is subsequently determined to be normal, the target message is sent to the downstream server. And further, the problem that when the upstream server fails to send the message to the downstream server, the downstream server does not receive the message, which affects the service progress, in the related art can be avoided.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a system architecture for processing messages according to the present application;
fig. 2 is a schematic diagram of a method for processing a message according to the present application;
FIG. 3 is a schematic structural diagram of an apparatus for processing messages according to the present application;
fig. 4 is a schematic view of an electronic device according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all the directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
A method for processing a message according to an exemplary embodiment of the present application is described below with reference to fig. 1-2. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a method, a device, a target terminal and a medium for processing the message.
Fig. 1 schematically shows a flow chart of a method for processing a message according to an embodiment of the present application. As shown in fig. 1, the method includes:
s101, when failure of the target message sent by the upstream server to the downstream server is detected, the target message is obtained.
It should be noted that, in the present application, the device for acquiring the target message is not specifically limited, and may be, for example, an intelligent device or a server. The smart device may be a PC (Personal Computer), a smart phone, a tablet Computer, an e-book reader, and an MP3(Moving Picture Experts Group audio layer iii) device for processing messages. MP4(Moving picture expert group Audio Layer IV), a device for processing messages, a portable terminal device such as a portable computer having a display function, and the like.
With the rapid development of big data and related technologies, information transmission has become more and more important. The information transmission technology is a technology for transmitting information through an upstream server and a downstream server on the internet through a certain technical standard or protocol. Further, the information sending technology can reduce the time for sending operation of the user by automatically transmitting the information to the downstream server.
Furthermore, in practical applications, the implementation manner of information transmission is mostly implemented by using a message transmission server based on a B/S (browser/server) architecture. The server serves as a center for message pushing and bears data interaction requirements from a plurality of browsers. However, as the traffic demand increases, the enormous number of data connections established with the server will cause the server to become overloaded. When high concurrency occurs in data interaction, the messages of the server are at risk of being lost.
Still further, the upstream server in the present application is a server that generates messages. The downstream server is the server that receives the message. The method and the device can acquire the target message which does not reach the downstream server when the failure of sending the target message by the upstream server is detected.
It should be noted that, the present application does not specifically limit the reason for the failure of the target message sent by the upstream server to the downstream server, and for example, the failure of the target message sent may be caused when the downstream server crashes due to a failure or a network, or the failure of the target message sent may be caused when a communication link between the upstream server and the downstream server fails. It is understood that the scope of the present application is not affected by a change in the reason why the target message sent by the upstream server to the downstream server fails.
Similarly, the target message is not specifically limited in this application, that is, the target message sent by the upstream server to the downstream server in this application may be any message. For example, it may be a service type message, or a notification type message, etc. It is understood that changes to the target message do not affect the scope of the present application.
S102, detecting the communication state of the downstream server.
In the application, after the target message which does not reach the downstream server is acquired, the problem that the service progress is influenced because the target message does not reach the downstream server is avoided. According to the method and the device, after the target message is acquired, the communication state of the downstream server can be detected continuously. So that the target message is sent to the downstream server after the communication state of the downstream server can realize the communication condition. To ensure that traffic is not affected.
The present application does not specifically limit the manner of detecting the communication status of the downstream server, and for example, the communication status may be detected by querying the downstream server. Alternatively, the communication state may be detected by monitoring the communication quality of the communication link. Or, the communication state may also be detected in a manner of sending a communication message to the downstream server every preset time period, and the like.
And S103, when the communication state of the downstream server is determined to meet the preset condition, sending the target message to the downstream server.
Further, after the communication state of the downstream server is detected, the communication state can be further compared with a preset condition, and when the communication state of the downstream server is determined to meet the preset condition, it is determined that the downstream server has a condition for receiving the target message. And then the target message can be sent to a downstream server.
It should be noted that, the preset condition is not specifically limited in the present application, that is, the preset condition may be any condition. In the application, as long as the communication state of the downstream server meets the preset condition, the communication state of the downstream server can be considered to be recovered to be normal, and therefore the target message sent by the upstream server can be successfully received.
Further, the communication state of the downstream server may be the current communication quality of the downstream server, may also be the current online state of the downstream server, and may also be the communication efficiency of the communication link of which the receiving end is the downstream server.
According to the method and the device, when the failure of the target message sent by the upstream server to the downstream server is detected, after the target message is acquired, the communication state of the downstream server is detected, and when the communication state of the downstream server is determined to meet the preset condition, the target message is sent to the downstream server. By applying the technical scheme of the application, the target message sent by each upstream server to the downstream server can be monitored in real time, and when the condition that the target message is failed to be sent is detected, the target message is acquired and stored, so that when the communication state of the downstream server is subsequently determined to be normal, the target message is sent to the downstream server. And further, the problem that when the upstream server fails to send the message to the downstream server, the downstream server does not receive the message, which affects the service progress, in the related art can be avoided.
Optionally, in one possible implementation manner of the present application, in the present application S102 (detecting the communication status of the downstream server), the following may be implemented:
analyzing the target message, and acquiring a sending object identifier carried by the target message;
determining a communication address of a downstream server based on the sending object identification;
the communication state of the downstream server is detected based on the communication address of the downstream server.
Furthermore, after the target message sent by the upstream server is acquired, the downstream server corresponding to the target message can be accurately acquired. According to the method and the device, the communication address of the downstream server can be determined based on the sending object identification after the target message is analyzed and the sending object identification carried by the target message is obtained. It can be understood that, after the communication address of the downstream server is obtained, the communication state of the downstream server can be detected specifically.
It should be noted that, the sending object identifier is not specifically limited in this application, and may be, for example, a service ID of a downstream server or a service identifier of the downstream server. But also the IP address of a downstream server, etc.
The method for determining the communication address of the downstream server based on the sending object identifier is also not specifically limited in the present application, for example, after the sending object identifier carried by the target message is obtained, the sending object identifier is sent to a preset database, and after a result returned by the database is received, the communication address of the downstream server is determined.
Optionally, in the process of detecting the communication state of the downstream server based on the communication address of the downstream server, the method may be implemented in the following manner:
determining a target communication link based on the communication address of the downstream server, wherein the target communication link is a communication link sent to the downstream server;
detecting the communication quality of a target communication link and the receiving state of a downstream server;
and when the communication quality meets the first condition and the receiving state of the downstream server meets the second condition, determining that the communication state of the downstream server meets the preset condition.
Further, after the communication address of the downstream server is obtained, the communication quality of the target communication link corresponding to the communication link sent to the downstream server can be determined. The number of target communication links is not specifically limited, that is, as long as the receiving end is a communication link corresponding to the downstream server, the receiving end can be used as the target communication link of the present application.
For example, the link for the upstream server to communicate with the downstream server may be the target communication link. In addition, the execution subject of the present application is taken as the third server as an example, that is, a link where the third server communicates with the downstream server may also be a target communication link.
In the application, after the target communication link is determined, the communication quality of the target communication link and the receiving state of the downstream server can be detected. And when the communication quality is determined to meet the first condition and the receiving state of the downstream server meets the second condition, determining that the communication state of the downstream server meets the preset condition.
First, it should be noted that the first condition is not specifically limited in this application, for example, the first condition may be 5MB/S, and the first condition may also be 1GB/S, and the like. In addition, the present application also does not specifically limit the second condition, and for example, the second condition may be a state in which the reception status of the downstream server is good.
In another possible implementation manner of the present application, after the present application S101 (acquiring the target message when failure of the target message sent by the upstream server to the downstream server is detected), the following steps may also be implemented:
analyzing the target message to obtain the message content corresponding to the target message;
based on the message content, a communication status of the downstream server is detected.
In the application, after the target message is acquired when the failure of the target message sent by the upstream server to the downstream server is detected, the stability of the message sending environment is further ensured. The method and the device can firstly analyze the target message, and determine whether to perform the step of detecting the communication state of the downstream server according to the property of the message content after acquiring the corresponding message content.
Optionally, in the process of detecting the communication state of the downstream server based on the message content, the method may be implemented in the following two ways:
the first mode is as follows:
analyzing the message content to obtain a target keyword field in the message content;
determining the legality of the target message based on the matching relation between the target keyword and the field database;
when the target message is determined to be legal, the communication state of the downstream server is detected.
Further, in the present application, after the message content is obtained, the message content may be firstly analyzed, so as to determine the target keyword in the obtained message content. And then matching the keyword field with a preset field database, and determining the legality of the target message according to the matching result of the target keyword field and each field in the signature field database. It should be noted that the field database in the present application may include any field data, and each field data has a corresponding identifier to indicate whether the corresponding label of the field data is legal or not.
For example, when the keyword field corresponding to the message content includes fields such as "eavesdropping", "deleting", "restarting", etc., the field data is matched with a preset field database. And when the field database also contains the field data and the identification corresponding to each field data is an illegal tag, the target keyword in the message content is successfully matched with the illegal field in the field database, and the target message can be determined to be illegal.
Further, when the field database includes the plurality of field data and the identifier corresponding to each field data is a legal tag, it indicates that the target keyword in the message content is successfully matched with the legal field in the field database, and thus it can be determined that the target message is legal. Further, the step of detecting the communication state of the downstream server is started.
The second mode is as follows:
analyzing the message content to obtain time limit information corresponding to the target message;
when the time limit information is detected to be smaller than the time threshold, generating a timing tag, and adding the timing tag to the target message, wherein the timing tag is used for clearing the target message after a preset time period;
based on the timing tag, a communication status of the downstream server is detected.
Further, in the present application, after the message content is acquired, the message content may be analyzed first, so as to determine the time limit information corresponding to the acquired message content. And then the existence time of the target message can be determined according to the time limit information corresponding to the content.
It will be appreciated that this may be done to ensure confidentiality of partial messages, or to avoid unwanted messages being received by downstream servers. The time limit information corresponding to the target message can be obtained by analyzing the message content. And further comparing the time limit information with a preset time threshold, generating a timing tag when the time limit information is detected to be smaller than the time threshold, and adding the timing tag to the target message. It should be noted that, the timing tag in the present application may be used to clear the target message after a preset time period. To avoid situations such as the downstream server receiving unwanted messages.
The time threshold is not specifically limited in the present application, and may be, for example, 1 day, 30 days, or the like. In addition, the preset time period is not specifically limited, and may be, for example, 1 hour, or 10 days.
It should be further noted that, in the present application, the time threshold may be the same as or different from the preset time period.
Further, in the present application, when it is detected that the time limit information is smaller than the time threshold, it may be determined that the existence time of the target message is short. For example, when the target message is a message for notifying participation in a conference on day 10, month 8 in 2019, it is determined that the time limit information corresponding to the target message is day 10, month 8 in 2019. It can be understood that if the current time is 2019, 10, and 9 days, the target message is an invalidation message. Even if it is sent to the downstream server, there may be a case where the downstream server receives a useless message. Therefore, according to the application, after the time limit information corresponding to the target message is determined to be 2019, 10, 8 and 20:00, a time tag with the deadline time of 2019, 10, 8 and 20:00 is generated and added to the target message for notifying the participant of the conference 2019, 10, 8 and 8.
Furthermore, after the target message added with the timing tag is obtained, the communication state of the downstream server can be detected according to the timing tag. That is, when the current time does not reach the time of the time tag activation function, the detection of the communication state of the downstream server may be started. When the current time reaches the time of the timing tag starting function, the target message is cleared, so that the communication state of the downstream server does not need to be detected.
In one possible embodiment of the present application, after S103 (when it is determined that the communication status of the downstream server satisfies the preset condition, the target message is sent to the downstream server), the present application further proposes a method for processing the message, as shown in fig. 2, where the method includes:
s201, when the failure of the target message sent by the upstream server to the downstream server is detected, the target message is acquired.
S202, the communication state of the downstream server is detected.
S203, when the communication state of the downstream server is determined to meet the preset condition, the target message is sent to the downstream server.
And S204, when the reply message is received, sending the reply message to the upstream server, wherein the reply message is generated when the downstream server receives the target message.
Further, in the present application, after the target message is sent to the downstream server, in order to ensure accurate delivery of the message. It can be monitored whether a reply message sent by a downstream server is received. Wherein, the reply message is the message generated when the downstream server successfully receives the target message.
Further, upon receiving the reply message, a prompt is provided to notify the user of the upstream server that the target message has been successfully sent. The application can forward the reply information to the upstream server after receiving the reply information. It should be noted that, the present application is not limited to a specific manner of sending the reply message to the upstream server, and for example, the reply message may be sent to the upstream server immediately when the reply message is received. Alternatively, when the reply message is received, the reply message may be transmitted to the upstream server after the inquiry message transmitted from the upstream server is received.
According to the method and the device, when the failure of the target message sent by the upstream server to the downstream server is detected, after the target message is acquired, the communication state of the downstream server is detected, and when the communication state of the downstream server is determined to meet the preset condition, the target message is sent to the downstream server. By applying the technical scheme of the application, the target message sent by each upstream server to the downstream server can be monitored in real time, and when the condition that the target message is failed to be sent is detected, the target message is acquired and stored, so that when the communication state of the downstream server is subsequently determined to be normal, the target message is sent to the downstream server. And further, the problem that when the upstream server fails to send the message to the downstream server, the downstream server does not receive the message, which affects the service progress, in the related art can be avoided.
In another embodiment of the present application, as shown in fig. 3, the present application further provides an apparatus for processing a message. The device comprises an acquisition module 301, a detection module 302 and a determination module 303, wherein:
an obtaining module 301, configured to obtain a target message sent by an upstream server to a downstream server when failure of the target message is detected;
a detection module 302 configured to detect a communication status of the downstream server;
a determining module 303, configured to send the target message to the downstream server when it is determined that the communication status of the downstream server satisfies a preset condition.
According to the method and the device, when the failure of the target message sent by the upstream server to the downstream server is detected, after the target message is acquired, the communication state of the downstream server is detected, and when the communication state of the downstream server is determined to meet the preset condition, the target message is sent to the downstream server. By applying the technical scheme of the application, the target message sent by each upstream server to the downstream server can be monitored in real time, and when the condition that the target message is failed to be sent is detected, the target message is acquired and stored, so that when the communication state of the downstream server is subsequently determined to be normal, the target message is sent to the downstream server. And further, the problem that when the upstream server fails to send the message to the downstream server, the downstream server does not receive the message, which affects the service progress, in the related art can be avoided.
In another embodiment of the present application, the detection module 302 includes:
a detection module 302, configured to analyze the target message, and obtain a sending object identifier carried by the target message;
a detection module 302 configured to determine a communication address of the downstream server based on the transmission object identifier;
a detecting module 302 configured to detect a communication status of the downstream server based on the communication address of the downstream server.
In another embodiment of the present application, the detection module 302 includes:
a detection module 302 configured to determine a target communication link based on the communication address of the downstream server, the target communication link being a communication link transmitted to the downstream server;
a detection module 302 configured to detect a communication quality of the target communication link and a reception status of the downstream server;
a detecting module 302 configured to determine that the communication status of the downstream server satisfies a preset condition when the communication quality satisfies a first condition and the receiving status of the downstream server satisfies a second condition.
In another embodiment of the present application, the detection module 302 includes:
a detection module 302 configured to analyze the target message to obtain a message content corresponding to the target message;
a detection module 302 configured to detect a communication status of the downstream server based on the message content.
In another embodiment of the present application, the detection module 302 includes:
a detection module 302 configured to parse the message content and obtain a target keyword in the message content;
a detection module 302 configured to determine the validity of the target message based on the matching relationship between the target keyword and the field database;
a detecting module 302 configured to detect a communication status of the downstream server when it is determined that the target message is legitimate.
In another embodiment of the present application, the detection module 302 includes:
a detection module 302 configured to analyze the message content to obtain time limit information corresponding to the target message;
a detecting module 302 configured to generate a timing tag when it is detected that the time limit information is smaller than a time threshold, and add the timing tag to the target message, where the timing tag is used to clear the target message after a preset time period;
a detecting module 302 configured to detect a communication status of the downstream server based on the timing tag.
In another embodiment of the present application, the method further includes a sending module 304, where:
a sending module 304, configured to send, when receiving a reply message, the reply message to the upstream server, where the reply message is a message generated when the downstream server receives the target message.
Fig. 4 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, electronic device 400 may include one or more of the following components: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 402 is configured to store at least one instruction for execution by the processor 401 to implement the interactive special effect calibration method provided by the method embodiments of the present application.
In some embodiments, the electronic device 400 may further optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, touch screen display 405, camera 406, audio circuitry 407, positioning components 408, and power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, providing the front panel of the electronic device 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the electronic device 400 or in a folded design; in still other embodiments, the display screen 405 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations of the electronic device 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The positioning component 408 is used to locate a current geographic location of the electronic device 400 to implement navigation or LBS (location based Service). The positioning component 408 may be a positioning component based on the GPS (global positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
The power supply 409 is used to supply power to the various components in the electronic device 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When power source 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the electronic apparatus 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the electronic device 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the user on the electronic device 400. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 413 may be disposed on a side bezel of the electronic device 400 and/or on a lower layer of the touch display screen 405. When the pressure sensor 413 is arranged on the side frame of the electronic device 400, a holding signal of the user to the electronic device 400 can be detected, and the processor 401 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, processing messages, changing settings, and the like. The fingerprint sensor 414 may be disposed on the front, back, or side of the electronic device 400. When a physical button or vendor Logo is provided on the electronic device 400, the fingerprint sensor 414 may be integrated with the physical button or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
Proximity sensor 416, also known as a distance sensor, is typically disposed on the front panel of electronic device 400. The proximity sensor 416 is used to capture the distance between the user and the front of the electronic device 400. In one embodiment, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the dark screen state when the proximity sensor 416 detects that the distance between the user and the front surface of the electronic device 400 gradually decreases; when the proximity sensor 416 detects that the distance between the user and the front of the electronic device 400 is gradually increased, the processor 401 controls the touch display screen 405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 4 does not constitute a limitation of the electronic device 400, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium, such as the memory 404, comprising instructions executable by the processor 420 of the electronic device 400 to perform the above-described method of processing a message, the method comprising: when the failure of the target message sent by the upstream server to the downstream server is detected, acquiring the target message; detecting a communication state of the downstream server; and when the communication state of the downstream server is determined to meet the preset condition, sending the target message to the downstream server. Optionally, the instructions may also be executable by the processor 420 of the electronic device 400 to perform other steps involved in the exemplary embodiments described above. Optionally, the instructions may also be executable by the processor 420 of the electronic device 400 to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product comprising one or more instructions executable by the processor 420 of the electronic device 400 to perform the above method of processing a message, the method comprising: when the failure of the target message sent by the upstream server to the downstream server is detected, acquiring the target message; detecting a communication state of the downstream server; and when the communication state of the downstream server is determined to meet the preset condition, sending the target message to the downstream server. Optionally, the instructions may also be executable by the processor 420 of the electronic device 400 to perform other steps involved in the exemplary embodiments described above. Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method of processing a message, comprising:
when the failure of the target message sent by the upstream server to the downstream server is detected, acquiring the target message;
detecting a communication state of the downstream server;
and when the communication state of the downstream server is determined to meet the preset condition, sending the target message to the downstream server.
2. The method of claim 1, wherein the detecting the communication status of the downstream server comprises:
analyzing the target message to obtain a sending object identifier carried by the target message;
determining a communication address of the downstream server based on the sending object identification;
and detecting the communication state of the downstream server based on the communication address of the downstream server.
3. The method of claim 2, wherein said detecting a communication status of the downstream server based on the communication address of the downstream server comprises:
determining a target communication link based on the communication address of the downstream server, wherein the target communication link is a communication link sent to the downstream server;
detecting the communication quality of the target communication link and the receiving state of the downstream server;
and when the communication quality meets a first condition and the receiving state of the downstream server meets a second condition, determining that the communication state of the downstream server meets a preset condition.
4. The method of claim 1 or 3, wherein the detecting the communication status of the downstream server comprises:
analyzing the target message to obtain message content corresponding to the target message;
detecting a communication status of the downstream server based on the message content.
5. The method of claim 4, wherein said detecting a communication status of said downstream server based on said message content comprises:
analyzing the message content to obtain a target keyword field in the message content;
determining the legality of the target message based on the matching relation between the target keyword and the field database;
and when the target message is determined to be legal, detecting the communication state of the downstream server.
6. The method of claim 4 or 5, wherein the detecting a communication status of the downstream server based on the message content comprises:
analyzing the message content to obtain time limit information corresponding to the target message;
when the time limit information is detected to be smaller than a time threshold, generating a timing tag, and adding the timing tag to the target message, wherein the timing tag is used for clearing the target message after a preset time period;
detecting a communication status of the downstream server based on the timing tag.
7. The method of claim 1, further comprising:
and when a reply message is received, sending the reply message to the upstream server, wherein the reply message is the message generated when the downstream server receives the target message.
8. An apparatus for processing messages, comprising:
the acquisition module is arranged to acquire a target message sent by an upstream server to a downstream server when failure of the target message is detected;
a detection module configured to detect a communication status of the downstream server;
a determining module configured to send the target message to the downstream server when it is determined that the communication status of the downstream server satisfies a preset condition.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for display with the memory to execute the executable instructions to perform the operations of the method of processing messages of any of claims 1-7.
10. A computer-readable storage medium storing computer-readable instructions that, when executed, perform the operations of the method of processing messages of any of claims 1-7.
CN201911178455.1A 2019-11-27 2019-11-27 Method, device, electronic equipment and medium for processing message Pending CN111131392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911178455.1A CN111131392A (en) 2019-11-27 2019-11-27 Method, device, electronic equipment and medium for processing message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911178455.1A CN111131392A (en) 2019-11-27 2019-11-27 Method, device, electronic equipment and medium for processing message

Publications (1)

Publication Number Publication Date
CN111131392A true CN111131392A (en) 2020-05-08

Family

ID=70496778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911178455.1A Pending CN111131392A (en) 2019-11-27 2019-11-27 Method, device, electronic equipment and medium for processing message

Country Status (1)

Country Link
CN (1) CN111131392A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225268A (en) * 2021-04-20 2021-08-06 北京达佳互联信息技术有限公司 Data transmission method, device, electronic equipment and storage medium
CN115002114A (en) * 2022-05-27 2022-09-02 北京百度网讯科技有限公司 Node processing method and device, electronic equipment, storage medium and server
CN115243109A (en) * 2022-07-29 2022-10-25 广州方硅信息技术有限公司 Object state updating method and device, live broadcast system, equipment and storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816053A (en) * 2006-03-10 2006-08-09 清华大学 Flow-media direct-broadcasting P2P network method based on conversation initialization protocol
CN102891897A (en) * 2012-10-30 2013-01-23 北京奇虎科技有限公司 Webpage sharing method, server and clients
CN103532822A (en) * 2012-07-02 2014-01-22 北京神州泰岳软件股份有限公司 Management method for message delivery, server and system thereof
US20140258434A1 (en) * 2011-10-10 2014-09-11 Kt Corporation Short message server, terminal trigger method of server thereof, trigger request delivery server, trigger request deliver method of server thereof
CN104125141A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Pushing method for notification message, server, user terminal and system
CN104125231A (en) * 2014-07-31 2014-10-29 百度在线网络技术(北京)有限公司 Message processing method and device
CN106301988A (en) * 2015-06-08 2017-01-04 天津钢清果净科技发展有限公司 Environment monitoring information management system based on Internet of Things
US20170199931A1 (en) * 2014-09-25 2017-07-13 Alibaba Group Holding Limited Text message processing
CN108347374A (en) * 2018-01-22 2018-07-31 广州欧赛斯信息科技有限公司 A kind of information push method, system and device preventing invalid message
CN109194729A (en) * 2018-08-24 2019-01-11 国广东方网络(北京)有限公司 A kind of information communication system and method
CN110034857A (en) * 2019-04-17 2019-07-19 广东三维家信息科技有限公司 Request the method, apparatus sent and electronic equipment
CN110120878A (en) * 2018-02-05 2019-08-13 华为技术有限公司 The method and apparatus for obtaining link-quality
CN110417915A (en) * 2019-08-22 2019-11-05 北京大米科技有限公司 A kind of PUSH message transmission method, device, storage medium and electronic equipment
CN110474976A (en) * 2019-08-09 2019-11-19 深圳市智莱科技股份有限公司 A kind of message transfer method, apparatus, storage medium and system applied to automatic vending equipment
CN111914149A (en) * 2020-05-21 2020-11-10 北京大米科技有限公司 Request processing method and device, storage medium and electronic equipment
CN112367345A (en) * 2020-09-14 2021-02-12 长沙市到家悠享网络科技有限公司 Data processing method, server device and computer readable storage medium
CN112422497A (en) * 2020-09-03 2021-02-26 上海哔哩哔哩科技有限公司 Message transmission method and device and computer equipment

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816053A (en) * 2006-03-10 2006-08-09 清华大学 Flow-media direct-broadcasting P2P network method based on conversation initialization protocol
US20140258434A1 (en) * 2011-10-10 2014-09-11 Kt Corporation Short message server, terminal trigger method of server thereof, trigger request delivery server, trigger request deliver method of server thereof
CN103532822A (en) * 2012-07-02 2014-01-22 北京神州泰岳软件股份有限公司 Management method for message delivery, server and system thereof
CN102891897A (en) * 2012-10-30 2013-01-23 北京奇虎科技有限公司 Webpage sharing method, server and clients
CN104125141A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Pushing method for notification message, server, user terminal and system
CN104125231A (en) * 2014-07-31 2014-10-29 百度在线网络技术(北京)有限公司 Message processing method and device
US20170199931A1 (en) * 2014-09-25 2017-07-13 Alibaba Group Holding Limited Text message processing
CN106301988A (en) * 2015-06-08 2017-01-04 天津钢清果净科技发展有限公司 Environment monitoring information management system based on Internet of Things
CN108347374A (en) * 2018-01-22 2018-07-31 广州欧赛斯信息科技有限公司 A kind of information push method, system and device preventing invalid message
CN110120878A (en) * 2018-02-05 2019-08-13 华为技术有限公司 The method and apparatus for obtaining link-quality
CN109194729A (en) * 2018-08-24 2019-01-11 国广东方网络(北京)有限公司 A kind of information communication system and method
CN110034857A (en) * 2019-04-17 2019-07-19 广东三维家信息科技有限公司 Request the method, apparatus sent and electronic equipment
CN110474976A (en) * 2019-08-09 2019-11-19 深圳市智莱科技股份有限公司 A kind of message transfer method, apparatus, storage medium and system applied to automatic vending equipment
CN110417915A (en) * 2019-08-22 2019-11-05 北京大米科技有限公司 A kind of PUSH message transmission method, device, storage medium and electronic equipment
CN111914149A (en) * 2020-05-21 2020-11-10 北京大米科技有限公司 Request processing method and device, storage medium and electronic equipment
CN112422497A (en) * 2020-09-03 2021-02-26 上海哔哩哔哩科技有限公司 Message transmission method and device and computer equipment
CN112367345A (en) * 2020-09-14 2021-02-12 长沙市到家悠享网络科技有限公司 Data processing method, server device and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225268A (en) * 2021-04-20 2021-08-06 北京达佳互联信息技术有限公司 Data transmission method, device, electronic equipment and storage medium
CN113225268B (en) * 2021-04-20 2022-09-30 北京达佳互联信息技术有限公司 Data transmission method, device, electronic equipment and storage medium
CN115002114A (en) * 2022-05-27 2022-09-02 北京百度网讯科技有限公司 Node processing method and device, electronic equipment, storage medium and server
CN115002114B (en) * 2022-05-27 2024-03-19 北京百度网讯科技有限公司 Node processing method, device, electronic equipment, storage medium and server
CN115243109A (en) * 2022-07-29 2022-10-25 广州方硅信息技术有限公司 Object state updating method and device, live broadcast system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN112764608B (en) Message processing method, device, equipment and storage medium
CN113204298A (en) Method and device for displaying release progress, electronic equipment and storage medium
CN110007981B (en) Method and device for starting application program, electronic equipment and medium
CN111131392A (en) Method, device, electronic equipment and medium for processing message
CN111949879A (en) Method and device for pushing message, electronic equipment and readable storage medium
CN112163406A (en) Interactive message display method and device, computer equipment and storage medium
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain
CN107800720B (en) Hijacking reporting method, device, storage medium and equipment
CN110781032A (en) Data transmission method, device, electronic equipment and medium
CN113377647B (en) Page processing method, device, server, terminal and readable storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN110971692B (en) Method and device for opening service and computer storage medium
CN113836426A (en) Information pushing method and device and electronic equipment
CN113051494A (en) Information display method and device, electronic equipment and storage medium
CN110708582B (en) Synchronous playing method, device, electronic equipment and medium
CN107948171B (en) User account management method and device
CN112000576A (en) Code data detection method, device, equipment and storage medium
CN111010732A (en) Network registration method, device, electronic equipment and medium
CN110795639A (en) Method, device, electronic equipment and medium for receiving information
CN111131490A (en) State updating method and device, computer equipment and storage medium
CN110544108B (en) Social user classification method and device, electronic equipment and medium
CN111490979B (en) Information interaction method and device and storage medium
CN115348262B (en) Cross-link operation execution method and network system based on cross-link protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508

RJ01 Rejection of invention patent application after publication