CN111193792A - Message transmission method and device, electronic equipment and storage medium - Google Patents

Message transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111193792A
CN111193792A CN201911376511.2A CN201911376511A CN111193792A CN 111193792 A CN111193792 A CN 111193792A CN 201911376511 A CN201911376511 A CN 201911376511A CN 111193792 A CN111193792 A CN 111193792A
Authority
CN
China
Prior art keywords
message
serial number
sequence number
server
current
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
CN201911376511.2A
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.)
Uusafe Co ltd
Original Assignee
Uusafe 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 Uusafe Co ltd filed Critical Uusafe Co ltd
Priority to CN201911376511.2A priority Critical patent/CN111193792A/en
Publication of CN111193792A publication Critical patent/CN111193792A/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/50Network services
    • H04L67/55Push-based network services

Abstract

The application discloses a message transmission method, a message transmission device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a message sent by a server; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule; acquiring a current serial number; if the difference value between the serial number and the current serial number is larger than a preset value, request information is sent to the server; the request information includes the current serial number, and the request information is used for requesting the server to send a message with the serial number greater than the current serial number. Therefore, the method and the device can ensure that the messages transmitted from the server to the terminal can be reached, effective and ordered under the weak network environment or the abnormal condition of the terminal.

Description

Message transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a message transmission method and apparatus, an electronic device, and a storage medium.
Background
With the progress of communication technology, the mobile office breaks through the traditional limitation and obtains huge development space. The management and control of the mobile terminal device are also more and more important, including that the application server sends and issues control policies, instructions, messages and the like to the application installed in the terminal device. In order to implement the management and control capability correctly, it is necessary to ensure that the mobile terminal can effectively receive the instruction, in the prior art, the application server sends the instruction, the message, and the like to the mobile terminal through a third-party push service platform or a push channel of a mobile phone manufacturer, and under a weak network environment or a scene of an abnormal condition of terminal equipment, the instruction and the message are likely to have the situations of packet loss, disorder and delay.
Therefore, one scheme for ensuring stable message pushing is that a third party pushing service platform or a mobile phone manufacturer improves the message stabilizing capability of the third party pushing service platform or the mobile phone manufacturer according to a specific pushing channel of the third party pushing service platform or the mobile phone manufacturer. However, the method has the disadvantages that if the service or technology of the application server needs to be changed, the push channel of a third party push service platform or a mobile phone manufacturer needs to be replaced, and even multiple push channels need to be adapted, which brings extra workload to the maintenance of the product, also improves the complexity of the product, and reduces the maintainability of the product.
Disclosure of Invention
The embodiment of the application provides a message transmission method, a message transmission device, electronic equipment and a storage medium, which can ensure that messages pushed to a terminal by a server can be reached, effective and ordered under a weak network environment or an abnormal condition of the terminal equipment.
In one aspect, an embodiment of the present application provides a message transmission method, where the method includes:
receiving a message sent by a server; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule; acquiring a current serial number; if the difference value between the serial number and the current serial number is larger than a preset value, request information is sent to a server; the request information comprises a current serial number, and is used for requesting the server to send a message of which the serial number is greater than the current serial number; the message is discarded.
Another aspect provides a message transmission apparatus, including:
the receiving module is used for receiving the message sent by the server; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule;
the acquisition module is used for acquiring a current serial number;
the decision module is used for sending request information to the server if the difference value between the serial number and the current serial number is larger than a preset value; the request information comprises a current serial number, and is used for requesting the server to send a message of which the serial number is greater than the current serial number;
and the decision module is also used for discarding the message.
Another aspect provides an electronic device comprising a processor and a memory, the memory having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the message transmission method as described above.
Another aspect provides a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a message transmission method as described above.
In another aspect, a message transmission method is provided, and the method includes:
determining a sequence number of the message according to a preset rule; sending a message to a terminal; the message carries a sequence number; receiving request information sent by a terminal; wherein the request information comprises a current sequence number; and sending a message with the sequence number larger than the current sequence number to the terminal.
Another aspect provides a message transmission apparatus, including:
the determining module is used for determining the sequence number of the message according to a preset rule;
the sending module is used for sending a message to the terminal; the message carries a sequence number;
the receiving module is used for receiving request information sent by a terminal; wherein the request information comprises a current sequence number;
and the sending module is used for sending the message with the sequence number larger than the current sequence number to the terminal.
Another aspect provides an electronic device comprising a processor and a memory, the memory having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the message transmission method as described above.
Another aspect provides a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a message transmission method as described above.
The message transmission method, the message transmission device, the electronic equipment and the storage medium provided by the embodiment of the application have the following technical effects:
by receiving a message sent by a server; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule; acquiring a current serial number; if the difference value between the serial number and the current serial number is larger than a preset value, request information is sent to a server; the request information comprises a current serial number and is used for requesting the server to send a message with the serial number larger than the current serial number, so that the fact that the message transmitted from the server to the terminal can be achieved, effective and ordered under the weak network environment or the abnormal condition of the terminal can be guaranteed.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a message transmission method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a message transmission method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a message transmission apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment according to an embodiment of the present application, including a terminal 101 and a server 102. The server 102 provides a message and transmission service for an Application (APP) on the terminal 101. The APP can be APP of management and control type, music type, news type, entertainment type, social type and the like.
In the embodiment of the application, the server 102 determines the sequence number of the message according to a preset rule; the server 102 sends a message to the terminal 101; the message carries a sequence number; the terminal 101 receives a message sent by the server 102; the terminal 101 acquires a current serial number; if the difference value between the serial number and the current serial number is larger than the preset value, the terminal 101 sends request information to the server 102; the request information includes a current serial number, and the request information is used for requesting the server 102 to send a message that the serial number is greater than the current serial number; the terminal 101 discards the message; the server 102 receives request information sent by the terminal 101; the server 102 sends a message to the terminal 101 with a sequence number greater than the current sequence number.
Optionally, the server 102 sends the message to the terminal 101 through a channel of a third party push service platform or a vendor push channel (not shown).
Alternatively, the terminal 101 may be a mobile phone, a tablet computer, a desktop computer, or a laptop computer.
Alternatively, the server 102 may be a background server for applications installed on a cell phone or computer.
Alternatively, the message may be a packet or datagram of a basic data transfer unit in communication, or a basic unit of data transfer agreed between the server 102 and the terminal 101.
In this embodiment, the message may include a message header part and a body part, where the message header part may include terminal identity Information (ID), user identity Information (ID), and a sequence number, and the body part includes content of the message. Alternatively, the terminal ID and the user ID may be replaced with a logo ID.
The following describes a specific embodiment of a message transmission method according to the present application, and fig. 2 is a schematic flow chart of a message transmission method according to the embodiment of the present application, and the present specification provides the method operation steps according to the embodiment or the flow chart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 2, the method may include:
s201: and the server determines the sequence number of the message according to a preset rule.
In this embodiment of the application, the preset rule may include: one or more of the time sequence of the messages, the importance index of the messages and the weight parameters corresponding to the personal preference of the user.
The above is illustrated below by a specific example, in which the terminal is assumed to be a mobile phone and the server is a background server of a news application.
Optionally, the preset rule may include: and the background server of the news application program determines the sequence number of the message according to the sequence of the occurrence time of the event.
Optionally, the preset rule may further include: and the background server of the news application program determines the serial number of the message according to the weight parameter corresponding to the personal preference of the mobile phone user. Specifically, according to all news clicked within the preset time of the mobile phone user, classifying according to the types of the news and calculating the weight corresponding to each type. The types may include: entertainment news, social news, sports news and scientific news, the total number of news clicked by the mobile phone user within 5 days is assumed to be 100, wherein the number of the news is 40, the number of the social news is 30, the number of the sports news is 20 and the number of the scientific news is 10. Thus, the news is entertained according to the personal preference of the mobile phone user: social news: sports news: the weight ratio corresponding to the scientific news is 4:3:2: 1. In an alternative scheme, the backend server of the news application may determine the sequence number of each message according to the sequence of 4 entertainment news, 3 social news, 2 sports news and 1 science and technology news with 10 messages as a cycle. In another alternative, the backend server of the news application may also use 10 messages as a period, and the sequence number of each message in the 10 messages may be determined arbitrarily in one period.
Optionally, the preset rule may further include: and the background server of the news application program determines the serial number of the message according to the weight parameters corresponding to the personal preference of the mobile phone user and the sequence of the occurrence time of the event. In an optional scheme, the background server of the news application takes 10 messages as a cycle, firstly determines the sequence number of each message in the 4 entertainment news messages according to the sequence of the event occurrence time corresponding to each message in the 4 entertainment news, then determines the sequence number of each message in the 3 social news messages according to the sequence of the event occurrence time corresponding to each message in the 3 social news, and thus, the sequence number of each message in the 10 messages in the cycle is determined. In another optional scheme, the sequence number of each message is determined by sequencing based on the sequence of the event occurrence time corresponding to each message in the 10 messages.
Optionally, the preset rule may further include: and the background server of the news application program determines the sequence number of the message according to the importance index of the message. When some urgent news events occur, such as missing people or going to sell children or some serious natural disaster, a help-seeking or warning message needs to be sent, the importance index of the message is marked high, and the serial number of the message is determined.
Therefore, the background server of the news application program determines the serial number of the news message according to the preset rule and pushes the serial number to the mobile phone, and the humanized design of the application program is reflected.
S203: the server sends a message to the terminal; the message carries a sequence number.
In the embodiment of the application, after the terminal and the server establish the push link, the server allocates an independent serial number storage area for the terminal, and the server updates the serial number of the serial number storage area every time the server sends a message to the terminal. The sequence number of the latest message sent to the terminal is always stored in the sequence number storage area. On the push link, the sequence number carried by the message is unique.
In an alternative embodiment where the message carries a sequence number, the data packet of the message includes the sequence number.
S205: and the terminal receives the message sent by the server and acquires the current serial number.
In the embodiment of the application, the terminal receives a message sent by the server through a third-party push service platform or a push channel of a manufacturer; the server sends the message to a third push service platform or a manufacturer server, and the third push service platform or the manufacturer server sends the message to the terminal through a push channel of the third push service platform or the manufacturer server.
In the embodiment of the application, the terminal has two ways of acquiring the current serial number.
In an alternative embodiment of obtaining the current sequence number, the terminal obtains a previously received and stored message, obtains the sequence number from the message, and regards the sequence number as the current sequence number.
In an optional implementation mode of obtaining the current serial number, the current serial number is stored in a specific storage area, after the terminal receives the message last time, the terminal stores the serial number carried by the message into the specific storage area, and the serial number is used as the current serial number; and acquiring the current sequence number from the specific storage area after the terminal receives the message next time.
Optionally, the serial numbers "0" and "1" … … are an optional way to identify the serial numbers. After the terminal and the server establish the push link, messages sent to the terminal by the server are stored in a linked list form at the server, each message has a unique sequence number and is in sequence, and the difference value of the sequence numbers between two adjacent messages is 1.
S207: if the difference value between the serial number and the current serial number is larger than a preset value, the terminal sends request information to the server; wherein, the request message contains the current sequence number, and the terminal discards the message.
S209: the server receives request information sent by the terminal; the server sends a message with a sequence number larger than the current sequence number to the terminal.
In the embodiment of the application, if the difference value between the sequence number and the current sequence number is smaller than the preset value, the terminal discards the message. And if the difference value between the serial number and the current serial number is equal to the preset value, the terminal updates the current serial number by using the serial number to obtain the updated current serial number.
In an optional implementation manner, if a difference value between a sequence number and a current sequence number is greater than a preset value, a terminal sends request information to a server, the server receives the request information sent by the terminal, and sends a message that the sequence number is greater than the current sequence number to the terminal; if the difference value between the serial number and the current serial number is equal to a preset value, the terminal updates the current serial number by using the serial number to obtain an updated current serial number; and if the difference value between the sequence number and the current sequence number is less than the preset value, the terminal discards the message. Therefore, the method and the device can ensure that the messages pushed to the terminal by the server are effective and ordered.
Steps S207 to S209 are explained below by a specific embodiment. Assuming that the preset value is 1, in one case, a sequence number carried by a message received by a terminal is 4, a current sequence number is 1, a difference value between the sequence number and the current sequence number is 3, and is greater than the assumed preset value 1, which indicates that the message reaches the terminal before a message with the sequence number of 2 and the sequence number of 3, that is, the message may be out of order, or the message with the sequence number of 2 and the sequence number of 3 may be lost, at this time, the terminal sends request information to a server, the request information is used for requesting the server to send the message with the sequence number of 2, the sequence number of 3, and the sequence number of 4, and at the same time, the terminal discards the message with the. In another case, the sequence number of the message is 4, the current sequence number is 4, and at this time, the difference between the sequence number and the current sequence number is 0, which is smaller than the preset value 1, and the terminal may discard the message with the sequence number of 4. In another case, the sequence number of the message is 4, the current sequence number is 3, the difference between the sequence number and the current sequence number is 1 and equals to the preset value 1, the current sequence number 3 is updated by the sequence number 4, and the updated current sequence number is 4. Therefore, the method and the device can ensure that the messages pushed to the terminal by the server are effective and ordered.
In an optional implementation manner, the terminal may send feedback information to the server; the feedback information comprises a serial number, and the feedback information is used for informing the server that the message terminal corresponding to the serial number is processed or unprocessed. Specifically, as further explained based on the above example, it is assumed that the mobile phone user clicks the news message to indicate that the mobile phone user processes the news message, and at this time, the mobile phone may send the read feedback information of the news message to the background server of the news application. Or, the user of the mobile phone does not click the news message within 3 hours of the preset time, and at this time, the mobile phone can send unread feedback information of the news message to a background server of the news application program.
In another optional implementation, the terminal records the state of the message, where the state may include processed and unprocessed, and the server may obtain the state of the message from the terminal, and if the state of the message obtained by the server at a preset time is unprocessed, the server resends the message to the terminal.
Fig. 3 is a schematic flowchart of a message transmission method provided in an embodiment of the present application, including:
s301: and the server receives the terminal ID and the user ID sent by the terminal equipment.
Specifically, the user downloads the APP that the server provides services through the terminal device, and the user needs to register on the server when using the APP, and at this time, the server can obtain the terminal ID and the user ID of the terminal device.
S303: a management control module of a server sends a first instruction to a push control module of the server;
s305: the pushing module of the server sends the identity to the session control module of the server based on the first instruction; the identity information may be a user ID and a terminal ID, among others.
Optionally, the identity information may be a session ID, and the role of the session ID is consistent with the user ID and the terminal ID, both for identifying a unique terminal.
S307: the session control module of the server determines whether a logical communication link has been established between the terminal corresponding to the identity information, if so, the step S311 is performed, otherwise, the step S309 is performed:
s309: a session control module of the server establishes a logical communication link according to the identity information and the terminal corresponding to the identity information;
optionally, step S309 may include a process of persisting the logical communication link by the server, and maintaining the established logical communication link.
S311: the session control module of the server sends the information of the logical communication link to the push control module of the server;
s313: and the push control module of the server sends the message to be sent to the terminal to the message control module.
S301 to S313 are operations performed before the server determines the sequence number of the message according to the preset rule, and in the following embodiments, reference may be made to steps S201 to S209 and other optional embodiments corresponding to steps S201 to S209.
The application scenario of the message transmission method provided in the embodiment of the present application may be that the server issues an instruction to a management and control application program on the terminal. Specifically, in the application scenario, the server management platform issues three instructions to a specific terminal, including: (1) erasing terminal equipment data; (2) issuing a control strategy of the terminal equipment; (3) and issuing the control strategy of the application program. The three instructions must all be reachable and the order must not be in error. In the weak network environment, packet loss and disorder are likely to occur, and if the disorder may occur, the policy is executed first and then erased, so that the management and control policy of the terminal device and the application program cannot be effective. The message transmission method provided by the embodiment of the application ensures the accessibility and the sequence of the messages in the weak network environment by taking the sequence number as a stabilization mechanism.
An embodiment of the present application further provides a message transmission apparatus, and fig. 4 is a schematic structural diagram of the message transmission apparatus provided in the embodiment of the present application, and as shown in fig. 4, the apparatus includes:
a receiving module 401, configured to receive a message sent by a server; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule;
an obtaining module 402, configured to obtain a current serial number;
the decision module 403 is configured to send request information to the server if a difference between the serial number and the current serial number is greater than a preset value; the request information comprises a current serial number, and is used for requesting the server to send a message of which the serial number is greater than the current serial number; the message is discarded.
The device and method embodiments in the embodiments of the present application are based on the same application concept.
An embodiment of the present application further provides a message transmission apparatus, and fig. 5 is a schematic structural diagram of the message transmission apparatus provided in the embodiment of the present application, and as shown in fig. 5, the apparatus includes:
a determining module 501, configured to determine a sequence number of a message according to a preset rule;
a sending module 502, configured to send a message to a terminal; the message carries a sequence number;
a receiving module 503, configured to receive request information sent by a terminal; wherein the request information comprises a current sequence number;
the sending module 502 is further configured to send a message with a sequence number greater than the current sequence number to the terminal.
The device and method embodiments in the embodiments of the present application are based on the same application concept.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the message transmission method as described above.
Embodiments of the present application also provide a computer-readable storage medium that may be located on at least one of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store program codes.
As can be seen from the embodiments of the message transmission method, the message transmission apparatus, the electronic device, and the storage medium provided in the present application, a message sent by a server is received; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule; acquiring a current serial number; if the difference value between the serial number and the current serial number is larger than a preset value, request information is sent to a server; the request information comprises a current serial number and is used for requesting the server to send a message with the serial number larger than the current serial number, so that the fact that the message transmitted from the server to the terminal can be achieved, effective and ordered under the weak network environment or the abnormal condition of the terminal can be guaranteed.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for message transmission, the method comprising:
receiving a message sent by a server; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule;
acquiring a current serial number;
if the difference value between the serial number and the current serial number is larger than a preset value, request information is sent to the server; the request information comprises the current serial number, and the request information is used for requesting the server to send a message with the serial number greater than the current serial number;
the message is discarded.
2. The method of claim 1, further comprising:
if the difference value between the sequence number and the current sequence number is smaller than the preset value, discarding the message;
or;
if the difference value between the serial number and the current serial number is equal to the preset value, updating the current serial number by using the serial number; and obtaining the updated current sequence number.
3. A method for message transmission, the method comprising:
determining a sequence number of the message according to a preset rule;
sending the message to a terminal; the message carries the sequence number;
receiving request information sent by the terminal; wherein the request information comprises a current sequence number;
and sending a message with the sequence number larger than the current sequence number to the terminal.
4. The method of claim 3, wherein the preset rules comprise: one or more of the time sequence of the messages, the importance index of the messages and the weight parameters corresponding to the personal preference of the user.
5. A message transmission apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving the message sent by the server; the message carries a sequence number, and the sequence number is determined by the server according to a preset rule;
the acquisition module is used for acquiring a current serial number;
the decision module is used for sending request information to the server if the difference value between the serial number and the current serial number is larger than a preset value; the request information comprises the current serial number, and the request information is used for requesting the server to send a message with the serial number greater than the current serial number;
the decision module is further configured to discard the message.
6. The apparatus of claim 5,
the decision module is further configured to discard the message if the difference between the sequence number and the current sequence number is smaller than the preset value;
the decision module is further configured to update the current serial number with the serial number if the difference between the serial number and the current serial number is equal to the preset value; and obtaining the updated current sequence number.
7. A message transmission apparatus, characterized in that the apparatus comprises:
the determining module is used for determining the sequence number of the message according to a preset rule;
a sending module, configured to send the message to a terminal; the message carries the sequence number;
the receiving module is used for receiving the request information sent by the terminal; wherein the request information comprises a current sequence number;
and the sending module is used for sending the message with the sequence number larger than the current sequence number to the terminal.
8. The apparatus of claim 7, wherein the preset rule comprises: one or more of the time sequence of the messages, the importance index of the messages and the weight parameters corresponding to the personal preference of the user.
9. An electronic device, comprising a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and wherein the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the message transmission method according to any one of claims 1-2 or 3-4.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the message transmission method as claimed in any of claims 1-2 or 3-4.
CN201911376511.2A 2019-12-27 2019-12-27 Message transmission method and device, electronic equipment and storage medium Pending CN111193792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911376511.2A CN111193792A (en) 2019-12-27 2019-12-27 Message transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911376511.2A CN111193792A (en) 2019-12-27 2019-12-27 Message transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111193792A true CN111193792A (en) 2020-05-22

Family

ID=70707668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911376511.2A Pending CN111193792A (en) 2019-12-27 2019-12-27 Message transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111193792A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671636A (en) * 2020-12-25 2021-04-16 深圳云之家网络有限公司 Group message pushing method and device, computer equipment and storage medium
CN113965580A (en) * 2020-06-29 2022-01-21 北京字节跳动网络技术有限公司 Method and device for synchronizing messages
CN114500331A (en) * 2021-12-29 2022-05-13 云控智行科技有限公司 Data retransmission method, device and equipment
CN114765690A (en) * 2020-12-31 2022-07-19 华为技术有限公司 Data packet transmission method and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821889A (en) * 2015-03-09 2015-08-05 杭州华三通信技术有限公司 Backup packet processing method and device
CN106714334A (en) * 2016-12-22 2017-05-24 网易(杭州)网络有限公司 Disconnection reconnection method, device and system
CN110351569A (en) * 2019-06-25 2019-10-18 腾讯科技(深圳)有限公司 A kind of live content processing method, device, equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821889A (en) * 2015-03-09 2015-08-05 杭州华三通信技术有限公司 Backup packet processing method and device
CN106714334A (en) * 2016-12-22 2017-05-24 网易(杭州)网络有限公司 Disconnection reconnection method, device and system
CN110351569A (en) * 2019-06-25 2019-10-18 腾讯科技(深圳)有限公司 A kind of live content processing method, device, equipment and medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965580A (en) * 2020-06-29 2022-01-21 北京字节跳动网络技术有限公司 Method and device for synchronizing messages
CN112671636A (en) * 2020-12-25 2021-04-16 深圳云之家网络有限公司 Group message pushing method and device, computer equipment and storage medium
CN112671636B (en) * 2020-12-25 2023-03-03 深圳云之家网络有限公司 Group message pushing method and device, computer equipment and storage medium
CN114765690A (en) * 2020-12-31 2022-07-19 华为技术有限公司 Data packet transmission method and related equipment
CN114765690B (en) * 2020-12-31 2023-09-12 华为技术有限公司 Data packet transmission method, communication device and storage medium
CN114500331A (en) * 2021-12-29 2022-05-13 云控智行科技有限公司 Data retransmission method, device and equipment

Similar Documents

Publication Publication Date Title
CN111193792A (en) Message transmission method and device, electronic equipment and storage medium
JP6754734B2 (en) Resource management device in RAN slice and resource management method in RAN slice
CN111614748B (en) Apparatus and method for scalable peer-to-peer matching
CN105516246B (en) A kind of method and server of anti-application program downloading abduction
US11431662B2 (en) Techniques for message deduplication
CN105868231A (en) Cache data updating method and device
CN108390933B (en) Message distribution method, device, server and storage medium
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
US20190207873A1 (en) Techniques for batched bulk processing
US20190207888A1 (en) Techniques for message indexing
CN107426336B (en) Method and device for adjusting push message opening rate
CN110650209A (en) Method and device for realizing load balance
CN109428926B (en) Method and device for scheduling task nodes
CN110233902B (en) Session processing method and device, electronic equipment and machine-readable storage medium
CN108764866B (en) Method and equipment for allocating resources and drawing resources
CN113364887A (en) File downloading method based on FTP, proxy server and system
CN110286854B (en) Method, device, equipment and storage medium for group member management and group message processing
CN110557351B (en) Method and apparatus for generating information
US20170223136A1 (en) Any Web Page Reporting and Capture
CN113360348B (en) Abnormal request processing method and device, electronic equipment and storage medium
US10798147B2 (en) Constraint based controlled seeding
CN112491939B (en) Multimedia resource scheduling method and system
CN114422576A (en) Session cleaning method and device, computer equipment and readable storage medium
CN108696549B (en) Load balancing method, device and system
CN111625375A (en) Account reservation method and device, storage medium and electronic equipment

Legal Events

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

Application publication date: 20200522

RJ01 Rejection of invention patent application after publication