CN109729061A - Message treatment method, device, equipment and readable storage medium storing program for executing - Google Patents
Message treatment method, device, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109729061A CN109729061A CN201810418220.4A CN201810418220A CN109729061A CN 109729061 A CN109729061 A CN 109729061A CN 201810418220 A CN201810418220 A CN 201810418220A CN 109729061 A CN109729061 A CN 109729061A
- Authority
- CN
- China
- Prior art keywords
- message
- forwarded
- client
- server end
- packet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000005540 biological transmission Effects 0.000 claims abstract description 40
- 238000000926 separation method Methods 0.000 claims abstract description 33
- 238000004891 communication Methods 0.000 claims description 13
- 238000002224 dissection Methods 0.000 claims description 8
- 238000012163 sequencing technique Methods 0.000 claims description 8
- 238000003672 processing method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 4
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004744 fabric Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of message treatment method, device, equipment and readable storage medium storing program for executing, the message treatment method includes: to judge whether server end is in high concurrent state when receiving the first message message for sending client transmission;When the server end is in high concurrent state, the addition for carrying out timing node to the first message message is handled, to obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation field of Millisecond;The second message message is forwarded, the second message message is parsed for receiving client, and based on the timing separation field after parsing, carries out the successive display of second message message.The present invention solves easily to occur losing the technical problem of message or message random ordering in existing messaging procedure.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of message treatment method, device, equipment and readable storage mediums
Matter.
Background technique
Currently, in the various applications of TCP (transmission control protocol) technology, when server-side receives and forwards the reality of client
When message when, due to be server end be forwarded with millisecond timing node in message, thus client be based on millisecond
When timing node carries out message display, it is possible to occur losing message illusion, such as: B, C, D client are forwarded via server end
Different messages are to A client, if this three message have arrived server end under all same millisecond, server end by this three
When message is forwarded to A client, when A client shows three message, it just will appear random ordering, or do not show that message is lost
The phenomenon that message, this reduces the experience of user to a certain extent.
Summary of the invention
The main purpose of the present invention is to provide a kind of message treatment method, device, equipment and readable storage medium storing program for executing, it is intended to
It solves in existing messaging procedure, easily occurs losing the technical problem of message or message random ordering.
To achieve the above object, the present invention provides a kind of message treatment method, and the message treatment method includes:
When receiving the first message message for sending client transmission, judge whether server end is in high concurrent shape
State;
When the server end is in high concurrent state, at the addition of first message message progress timing node
Reason, to obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation field of Millisecond;
The second message message is forwarded, the second message message is parsed for receiving client,
And based on the timing separation field after parsing, the successive display of second message message is carried out.
Optionally, described when receiving the first message message for sending client transmission, judge whether server end is located
Include: in high concurrent state step
When receiving the first message message for sending client transmission, the transmission client in preset time period is obtained
The number of associated message packet to be forwarded;
Judge whether the number of the message packet to be forwarded is greater than preset value, when the number of the message packet to be forwarded
When greater than preset value, judge that the server end is in high concurrent state, wherein the preset value is according to the server unit time
The forwarding rate of interior forwarding message packet determines.
Optionally, the number step for obtaining the message packet to be forwarded for sending client associate includes:
The first number of the message packet to be forwarded that the transmission client is sent is obtained within a preset period of time, and is obtained
Second number for sending the received message packet to be forwarded of client;
Using the sum of first number and second number as the Izvestia to be forwarded for sending client associate
The number of text.
Optionally, described when receiving the first message message for sending client transmission, judge whether server end is located
Include: after high concurrent state step
When the server end is not in high concurrent state, the time segment information being presently in is obtained, when being currently at
When preset non-rush hour section, dissection process is carried out to the first message message, to obtain receiving the address letter of client
Breath;
Based on the address information for receiving client, processing is forwarded to the first message message.
Optionally, after the period information Step that the acquisition is presently in further include:
When being currently at preset rush hour section, the addition that timing node is carried out to the first message message is executed
Processing, the step of to obtain second message message.
Optionally, described when the server end is in high concurrent state, the time is carried out to the first message message
The addition of node is handled, and includes: to obtain second message message step
When the server end is in high concurrent state, carrying out accuracy to the first message message is nanosecond rank
Timing separation field addition processing, to obtain second message message.
Optionally, described to be forwarded the second message message, for receiving client to the second message report
Text carries out analyzing step
Based on the server end, currently message packet to be forwarded corresponds to the sequencing mesh of increased timing node, obtains
The forwarding order of the second message message;
Based on the forwarding order, the second message message is forwarded, for receiving client to described second
Message packet is parsed, and obtains corresponding timestamp in the second message message.
The present invention also provides a kind of message processing apparatus, the message processing apparatus includes:
Judgment module, for whether judging server end when receiving the first message message for sending client transmission
In high concurrent state;
Adding module is used for when the server end is in high concurrent state, when carrying out to the first message message
The addition of intermediate node is handled, to obtain second message message, wherein when the timing node is that accuracy is other greater than Millisecond
Between distinguish field;
First forwarding module, for the second message message to be forwarded, for receiving client to described second
Message packet is parsed, and based on the timing separation field after parsing, carries out the successive display of second message message.
Optionally, the judgment module includes:
Acquiring unit, for obtaining in preset time period when receiving the first message message for sending client transmission
The number of the message packet to be forwarded for sending client associate;
Judging unit, for judging whether the number of the message packet to be forwarded is greater than preset value, when described to be forwarded
The number of message packet be greater than preset value when, judge that the server end is in high concurrent state, wherein the preset value according to
The forwarding rate of forwarding message packet determines in the server unit time.
Optionally, the acquiring unit includes:
Subelement is obtained, for obtaining the message packet to be forwarded for sending client transmission within a preset period of time
First number, and obtain second number for sending the received message packet to be forwarded of client;
Subelement is determined, for using the sum of first number and second number as the transmission client associate
Message packet to be forwarded number.
Optionally, the message processing apparatus further include:
Module is obtained, for when the server end is not in high concurrent state, obtaining the period being presently in letter
Breath carries out dissection process to the first message message when being currently at preset non-rush hour section, to obtain receiving visitor
The address information at family end;
Second forwarding module, for being carried out to the first message message based on the address information for receiving client
Forward process.
Optionally, the acquisition module further include:
Implementation sub-module, for when being currently at preset rush hour section, execute to the first message message into
The addition of row timing node is handled, the step of to obtain second message message.
Optionally, the adding module further include:
Adding unit, for carrying out essence to the first message message when the server end is in high concurrent state
Exactness is that the addition of the other timing separation field of nanosecond is handled, to obtain second message message.
Optionally, first forwarding module includes:
Order acquiring unit is forwarded, for currently message packet to be forwarded to correspond to the increased time based on the server end
The sequencing mesh of node obtains the forwarding order of the second message message;
Retransmission unit is forwarded the second message message, for being based on the forwarding order for receiving client
End parses the second message message, and obtains corresponding timestamp in the second message message.
In addition, to achieve the above object, the present invention also provides a kind of message processing device, the message processing device packet
It includes: memory, processor, communication bus and the message processing program being stored on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the message processing program, to perform the steps of
When receiving the first message message for sending client transmission, judge whether server end is in high concurrent shape
State;
When the server end is in high concurrent state, at the addition of first message message progress timing node
Reason, to obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation field of Millisecond;
The second message message is forwarded, the second message message is parsed for receiving client,
And based on the timing separation field after parsing, the successive display of second message message is carried out.
Optionally, described when receiving the first message message for sending client transmission, judge whether server end is located
Include: in high concurrent state step
When receiving the first message message for sending client transmission, the transmission client in preset time period is obtained
The number of associated message packet to be forwarded;
Judge whether the number of the message packet to be forwarded is greater than preset value, when the number of the message packet to be forwarded
When greater than preset value, judge that the server end is in high concurrent state, wherein the preset value is according to the server unit time
The forwarding rate of interior forwarding message packet determines.
Optionally, the number step for obtaining the message packet to be forwarded for sending client associate includes:
The first number of the message packet to be forwarded that the transmission client is sent is obtained within a preset period of time, and is obtained
Second number for sending the received message packet to be forwarded of client;
Using the sum of first number and second number as the Izvestia to be forwarded for sending client associate
The number of text.
Optionally, described when receiving the first message message for sending client transmission, judge whether server end is located
Include: after high concurrent state step
When the server end is not in high concurrent state, the time segment information being presently in is obtained, when being currently at
When preset non-rush hour section, dissection process is carried out to the first message message, to obtain receiving the address letter of client
Breath;
Based on the address information for receiving client, processing is forwarded to the first message message.
Optionally, after the period information Step that the acquisition is presently in further include:
When being currently at preset rush hour section, the addition that timing node is carried out to the first message message is executed
Processing, the step of to obtain second message message.
Optionally, described when the server end is in high concurrent state, the time is carried out to the first message message
The addition of node is handled, and includes: to obtain second message message step
When the server end is in high concurrent state, carrying out accuracy to the first message message is nanosecond rank
Timing separation field addition processing, to obtain second message message.
Optionally, described to be forwarded the second message message, for receiving client to the second message report
Text carries out analyzing step
Based on the server end, currently message packet to be forwarded corresponds to the sequencing mesh of increased timing node, obtains
The forwarding order of the second message message;
Based on the forwarding order, the second message message is forwarded, for receiving client to described second
Message packet is parsed, and obtains corresponding timestamp in the second message message.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing storage
Have one perhaps more than one program the one or more programs can be held by one or more than one processor
Row is to be used for:
When receiving the first message message for sending client transmission, judge whether server end is in high concurrent shape
State;
When the server end is in high concurrent state, at the addition of first message message progress timing node
Reason, to obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation field of Millisecond;
The second message message is forwarded, the second message message is parsed for receiving client,
And based on the timing separation field after parsing, the successive display of second message message is carried out.
The present invention is by judging whether server end is in when receiving the first message message for sending client transmission
High concurrent state;When the server end is in high concurrent state, timing node is carried out to the first message message and is added
Add processing, to obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation word of Millisecond
Section;The second message message is forwarded, the second message message is parsed for receiving client, and is based on
The timing separation field after parsing carries out the successive display of second message message.Since client is by parsing message
Current time stamp carries out what message was shown in message.In the present embodiment, when server end forwards message, it is big to increase accuracy
In the other timing separation field of Millisecond, thus, client receives the difference that server end forwards in same millisecond and disappears
When breath, the successive display of different messages can be carried out after the timing node of parsing different messages, rather than out-of-order display or
Since same millisecond receives message, part messages are directly subjected to discard processing, thus solve existing messaging procedure
In, easily occur losing the technical problem of message or message random ordering.
Detailed description of the invention
Fig. 1 is the flow diagram of message treatment method first embodiment of the present invention;
Fig. 2 is the flow diagram of message treatment method second embodiment of the present invention;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of message treatment method, in the first embodiment of message treatment method of the present invention, referring to figure
1, the message treatment method includes:
When receiving the first message message for sending client transmission, judge whether server end is in high concurrent shape
State;When the server end is in high concurrent state, the addition for carrying out timing node to the first message message is handled, with
Obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation field of Millisecond;By described
Two message packets are forwarded, and are parsed for receiving client to the second message message, and based on the institute after parsing
Timing separation field is stated, the successive display of second message message is carried out.
Specific step is as follows:
Step S10 judges whether server end is in high when receiving the first message message for sending client transmission
Concurrent state;
When receiving the first message message for sending client transmission, judge whether server end is in high concurrent shape
State, it should be noted that message treatment method of the present invention is applied applied to instant messaging APP, and bottom is by TCP long connection
Mechanics of communication is briefly exactly that customer end A sends a message, received server-side it, and the message is forwarded to another
Customer end B or A send a message, received server-side it, and the message is forwarded to another crowd of customer end B, C, D, or
Sending message is forwarded to A etc. simultaneously by person's customer end B, C, D, wherein client is made by the timestamp in parsing message packet
For successive display order, currently, timestamp is all using millisecond or second as the recognition unit of timing node in message packet.
Thus, in messaging, it is possible to occur losing the illusion of message or message display order random ordering, such as: server end exists
The message " hello " that first sends of forwarding B, message that C is then sent " when ", the message " difference " that D is finally sent is objective to A
During the end of family, if this three message have arrived server end, when message is forwarded to A client, A under all same millisecond
Client may first show message " difference ", show afterwards message " when ", finally show or do not show message " hello ",
This causes the reduction of user experience.The present invention is to avoid in such case.
Specifically, in the present embodiment, when receiving the first message message for sending client transmission, judge server
End whether be in high concurrent state, by judge server end whether be in high concurrent state determine whether to message packet into
Row is further processed, to avoid because of asking to the server end load excessive caused by being further processed of all message packets
Topic judges that server end is when receiving the first message message for sending client transmission referring to Fig. 2 in the present embodiment
It is no to include: in high concurrent state step
Step S11 obtains the hair in preset time period when receiving the first message message for sending client transmission
Send the number of the associated message packet to be forwarded of client;
When receiving the first message message for sending client transmission, the transmission client in preset time period is obtained
The number of associated message packet to be forwarded, wherein the number for sending the message packet to be forwarded of client associate includes two kinds
Destination type, specifically, the number step for obtaining the message packet to be forwarded for sending client associate includes:
Step S111 obtains the first number of the message packet to be forwarded that the transmission client is sent within a preset period of time
Mesh, and obtain second number for sending the received message packet to be forwarded of client;
Step S112, using the sum of first number and second number as the transmission client associate wait turn
Send out the number of message packet.
In the present embodiment, the number for sending the message packet to be forwarded of client associate includes obtaining within a preset period of time
First number of the message packet to be forwarded that the transmission client taken is sent, and the termination of the transmission client including acquisition
Second number of the message packet to be forwarded received, wherein preset time period can be 1 millisecond or 1 second time etc., to specific real
It applies example to be illustrated, when preset time period is 1 second, and transmission client is A client, then the to be forwarded of A client associate disappears
Breath message number include: A client be sent in this 1 second customer end B, C, D message packet number and A client
Hold the number for the message packet for wanting received E, F, G etc. to be sent to A client in this 1 second.
Step S12, judges whether the number of the message packet to be forwarded is greater than preset value, when the Izvestia to be forwarded
When the number of text is greater than preset value, judge that the server end is in high concurrent state, wherein the preset value is according to server
The forwarding rate of forwarding message packet in the unit time is held to determine.
Judge whether the number of the message packet to be forwarded is more than or equal to preset value, when the message packet to be forwarded
When number is more than or equal to preset value, judge that the server end is in high concurrent state, wherein when the message packet to be forwarded
Number be less than preset value when, judge that the server end is not in high concurrent state, wherein the preset value is according to server
The forwarding rate of forwarding message packet in the unit time is held to determine.It is illustrated to specific embodiment, when server end unit
When the forwarding rate of forwarding message packet is greater than first rate in time or the processing speed of server end is greater than First Speed
When, preset value is the first preset value, when the forwarding rate of forwarding message packet in the server end unit time is greater than the second rate
When or server end processing speed be greater than second speed when, preset value be the second preset value.
Step S20 carries out timing node to the first message message when the server end is in high concurrent state
Addition processing, to obtain second message message, wherein the timing node be accuracy be greater than Millisecond other timing separation
Field;
When the server end is in high concurrent state, the first message message is parsed, is disappeared in parsing described first
After ceasing message, the addition for carrying out timing node to the first message message is handled, to obtain second message message, wherein institute
Stating timing node is that accuracy is greater than the other timing separation field of Millisecond, which is greater than the other timing separation word of Millisecond
Section can be the timing separation field etc. of microsecond accuracy, it should be noted that in the present embodiment, server end will be in height
When concurrent state, the addition for carrying out timing node to the first message message is handled, and to obtain second message message, needs thing
Program segment first is set in built-in processor, which indicates that the processing logic of the first message, the processing logic are used
In when server end is in high concurrent state, the addition for carrying out timing node to the first message message is handled, to obtain
Second message message.
It should be noted that described when the server end is in high concurrent state, to the first message message into
The addition of row timing node is handled, and includes: to obtain second message message step
Step S21, when the server end is in high concurrent state, carrying out accuracy to the first message message is
The addition of the other timing separation field of nanosecond is handled, to obtain second message message.
I.e. in the present embodiment, when the server end is in high concurrent state, the first message message is added
The other timing separation field of nanosecond, farthest to distinguish received message packet.
The second message message is forwarded by step S30, for receive client to the second message message into
Row parsing, and based on the timing separation field after parsing, carry out the successive display of second message message.
The second message message is forwarded, when server end forwards second message message, forwarding is that have successively
Sequence, which can be determined by different time nodes, after forwarding, receive client to the second message message
It is parsed, and based on the timing separation field such as timestamp after parsing, carries out the successive display of second message message.
The present invention is by judging whether server end is in when receiving the first message message for sending client transmission
High concurrent state;When the server end is in high concurrent state, timing node is carried out to the first message message and is added
Add processing, to obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation word of Millisecond
Section;The second message message is forwarded, the second message message is parsed for receiving client, and is based on
The timing separation field after parsing carries out the successive display of second message message.Since client is by parsing message
Current time stamp carries out what message was shown in message.In the present embodiment, when server end forwards message, it is big to increase accuracy
In the other timing separation field of Millisecond, thus, client receives the difference that server end forwards in same millisecond and disappears
When breath, the successive display of different messages can be carried out after the timing node of parsing different messages, rather than out-of-order display or
Since same millisecond receives message, part messages are directly subjected to discard processing, thus solve existing messaging procedure
In, easily occur losing the technical problem of message or message random ordering.
Further, the present invention provides another embodiment of message treatment method, in this embodiment, described to receive
When sending the first message message that client is sent, judge whether server end is in high concurrent state step and includes: later
Step A1 obtains the time segment information being presently in when the server end is not in high concurrent state, when working as
It is preceding in preset non-rush hour section when, dissection process is carried out to the first message message, to obtain receiving client
Address information;
When the server end is not in high concurrent state, the time segment information being presently in is obtained, when being currently at
When preset non-rush hour section, dissection process is carried out to the first message message, to obtain receiving the address letter of client
Breath, wherein the currently pending task of server end that non-rush hour section referred to can be less than preset task number when
Between section, at this point, server end can orderly handle each waiting task, thus, it is only necessary to the first message message
Dissection process is carried out, to obtain receiving the relevant informations such as address information of client.
Wherein, after the period information Step that the acquisition is presently in further include:
Step B1 executes segmentum intercalaris when carrying out to the first message message when being currently at preset rush hour section
The addition processing of point, the step of to obtain second message message.
In the present embodiment, since in rush hour section, the currently pending task of server end is greater than preset task number
Mesh, at this time, it may be necessary to based on the corresponding timing node greater than millisecond level of accuracy of current server end message packet to be forwarded
Sequencing, obtain the forwarding order of the second message message, rather than the timing node based on millisecond level of accuracy
Sequencing execute when being carried out to the first message message thus when being currently at preset rush hour section
The addition of intermediate node is handled, the step of to obtain second message message.
Step A2 is forwarded processing to the first message message based on the address information for receiving client.
After obtaining receiving the relevant informations such as the address information of client, place is forwarded to the first message message
Reason, the addition without carrying out corresponding timing node again are handled.
In the present embodiment, by obtaining the time being presently in when the server end is not in high concurrent state
Segment information carries out dissection process to the first message message, to be connect when being currently at preset non-rush hour section
Receive the address information of client;Based on the address information for receiving client, place is forwarded to the first message message
Reason, in the present embodiment when server end is not in high concurrent state, and when in preset non-rush hour section, do not need into
The increase of row message packet timing node, the problem of having saved process, avoided server end load excessive that may be present.
Further, the present invention provides another embodiment of message treatment method, in this embodiment, described by described the
Two message packets are forwarded, and include: for receiving client to second message message progress analyzing step
Step S31, based on the server end, currently message packet to be forwarded corresponds to the successive suitable of increased timing node
The preface and table of contents obtains the forwarding order of the second message message;
In the present embodiment, when server end forwarding message packet, segmentum intercalaris when being no longer based on millisecond level of accuracy
Point is forwarded, but the timing node based on millisecond level of accuracy is forwarded, i.e., based on the server end currently to
Forwarding message packet corresponds to the sequencing mesh of increased timing node, obtains the forwarding order of the second message message.
Step S32 is based on the forwarding order, is forwarded to the second message message, for receiving client pair
The second message message is parsed, and obtains corresponding timestamp in the second message message.
Based on the forwarding order, the second message message is forwarded, for receiving client to described second
Message packet is parsed, and obtains corresponding timestamp in the second message message, is to obtain the second message report
Corresponding timing separation field in text carries out the successive display of second message message.
In the present embodiment, by the way that based on the server end, currently message packet to be forwarded corresponds to increased timing node
Sequencing mesh, obtain the forwarding order of the second message message;Based on the forwarding order, to the second message report
Text is forwarded, and is parsed for receiving client to the second message message, and obtain in the second message message
Corresponding timestamp.The present embodiment server end can orderly forward second message message, to receive client to described second
Message packet progress sequence, which receives, establishes lower basis.
Referring to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Message processing device of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, e-book reading
Device, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio
Level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression
Standard audio level 3) terminal devices such as player, portable computer.
As shown in figure 3, the message processing device may include: processor 1001, such as CPU, memory 1005, communication is always
Line 1002.Wherein, communication bus 1002 is for realizing the connection communication between processor 1001 and memory 1005.Memory
1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as disk is deposited
Reservoir.Memory 1005 optionally can also be the storage equipment independently of aforementioned processor 1001.
Optionally, which can also include target user interface, network interface, camera, RF (Radio
Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..Target user interface may include display screen
(Display), input unit such as keyboard (Keyboard), optional target user interface can also include that the wired of standard connects
Mouth, wireless interface.Network interface optionally may include standard wireline interface and wireless interface (such as WI-FI interface).
It will be understood by those skilled in the art that message processing device structure shown in Fig. 3 is not constituted to Message Processing
The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module and message processing program.Operating system is to manage and control the program of message processing device hardware and software resource,
Support the operation of message processing program and other softwares and/or program.Network communication module is for realizing in memory 1005
Communication between each component in portion, and communicated between hardware and softwares other in message processing device.
In message processing device shown in Fig. 3, processor 1001 is for executing at the message stored in memory 1005
The step of managing program, realizing message treatment method described in any of the above embodiments.
Message processing device specific embodiment of the present invention and each embodiment of above-mentioned message treatment method are essentially identical, herein
It repeats no more.
The present invention also provides a kind of message processing apparatus, the message processing apparatus includes:
Judgment module, for whether judging server end when receiving the first message message for sending client transmission
In high concurrent state;
Adding module is used for when the server end is in high concurrent state, when carrying out to the first message message
The addition of intermediate node is handled, to obtain second message message, wherein when the timing node is that accuracy is other greater than Millisecond
Between distinguish field;
Forwarding module, for the second message message to be forwarded, for receiving client to the second message
Message is parsed, and based on the timing separation field after parsing, carries out the successive display of second message message.
Message processing apparatus specific embodiment of the present invention and each embodiment of above-mentioned message treatment method are essentially identical, herein
It repeats no more.
The present invention provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is stored with one or more than one journey
Sequence, the one or more programs can also be executed by one or more than one processor for realizing above-mentioned
The step of message treatment method described in one.
Readable storage medium storing program for executing specific embodiment of the present invention and each embodiment of above-mentioned message treatment method are essentially identical, herein
It repeats no more.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field similarly includes in patent process range of the invention.
Claims (10)
1. a kind of message treatment method, which is characterized in that the message treatment method includes:
When receiving the first message message for sending client transmission, judge whether server end is in high concurrent state;
When the server end is in high concurrent state, the addition for carrying out timing node to the first message message is handled,
To obtain second message message, wherein the timing node is that accuracy is greater than the other timing separation field of Millisecond;
The second message message is forwarded, the second message message is parsed for receiving client, and base
The timing separation field after parsing carries out the successive display of second message message.
2. message treatment method as described in claim 1, which is characterized in that described when receiving send that client sends the
When one message packet, judge whether server end is in high concurrent state step and includes:
When receiving the first message message for sending client transmission, the transmission client associate in preset time period is obtained
Message packet to be forwarded number;
Judge whether the number of the message packet to be forwarded is greater than preset value, when the number of the message packet to be forwarded is greater than
When preset value, judge that the server end is in high concurrent state, wherein the preset value is according in the server end unit time
The forwarding rate of message packet is forwarded to determine.
3. message treatment method as claimed in claim 2, which is characterized in that it is described obtain it is described send client associate to
Forwarding message packet number step include:
The first number of the message packet to be forwarded that the transmission client is sent is obtained within a preset period of time, and described in acquisition
Send the second number of the received message packet to be forwarded of client;
Using the sum of first number and second number as the message packet to be forwarded for sending client associate
Number.
4. message treatment method as described in claim 1, which is characterized in that described when receiving send that client sends the
When one message packet, judge whether server end is in high concurrent state step and includes: later
When the server end is not in high concurrent state, the time segment information being presently in is obtained, it is default when being currently at
The non-rush hour section when, to the first message message carry out dissection process, with obtain receive client address information;
Based on the address information for receiving client, processing is forwarded to the first message message.
5. message treatment method as claimed in claim 4, which is characterized in that described to obtain the time segment information step being presently in
After rapid further include:
When being currently at preset rush hour section, execute at the addition for carrying out timing node to the first message message
Reason, the step of to obtain second message message.
6. message treatment method as described in claim 1, which is characterized in that described when the server end is in high concurrent shape
When state, the addition for carrying out timing node to the first message message is handled, and includes: to obtain second message message step
When the server end is in high concurrent state, when being that nanosecond is other to first message message progress accuracy
Between distinguish field addition processing, to obtain second message message.
7. message treatment method as described in claim 1, which is characterized in that described to be turned the second message message
Hair, so that reception client includes: to second message message progress analyzing step
Based on the server end, currently message packet to be forwarded corresponds to the sequencing of increased timing node, obtains described
The forwarding order of two message packets;
Based on the forwarding order, the second message message is forwarded, for receiving client to the second message
Message is parsed, and obtains corresponding timestamp in the second message message.
8. a kind of message processing apparatus, which is characterized in that the message processing apparatus includes:
Judgment module, for judging whether server end is in when receiving the first message message for sending client transmission
High concurrent state;
Adding module is used for when the server end is in high concurrent state, segmentum intercalaris when carrying out to the first message message
The addition processing of point, to obtain second message message, wherein the timing node is that accuracy is greater than the other time zone of Millisecond
Divide field;
Forwarding module, for the second message message to be forwarded, for receiving client to the second message message
It is parsed, and based on the timing separation field after parsing, carries out the successive display of second message message.
9. a kind of message processing device, which is characterized in that the message processing device includes: memory, processor, communication bus
And it is stored in the message processing program on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the message processing program, to realize the message as described in any one of claims 1 to 7
The step of processing method.
10. a kind of readable storage medium storing program for executing, which is characterized in that message processing program is stored on the readable storage medium storing program for executing, it is described
It realizes when message processing program is executed by processor such as the step of message treatment method of any of claims 1-7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810418220.4A CN109729061B (en) | 2018-05-04 | 2018-05-04 | Message processing method, device, equipment and readable storage medium |
PCT/CN2018/095041 WO2019210574A1 (en) | 2018-05-04 | 2018-07-09 | Message processing method, apparatus, device, and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810418220.4A CN109729061B (en) | 2018-05-04 | 2018-05-04 | Message processing method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109729061A true CN109729061A (en) | 2019-05-07 |
CN109729061B CN109729061B (en) | 2021-09-21 |
Family
ID=66293729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810418220.4A Active CN109729061B (en) | 2018-05-04 | 2018-05-04 | Message processing method, device, equipment and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109729061B (en) |
WO (1) | WO2019210574A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112968828A (en) * | 2021-03-26 | 2021-06-15 | 联仁健康医疗大数据科技股份有限公司 | Chat message display method, device, equipment and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114202197B (en) * | 2021-12-09 | 2024-06-04 | 成都轨道交通集团有限公司 | Alarm message ordering method and system |
CN114339628B (en) * | 2021-12-27 | 2023-07-04 | 中国农业银行股份有限公司 | 5G rich media message sending method, equipment, storage medium and product |
CN114979264B (en) * | 2022-05-16 | 2024-04-19 | 中国银行股份有限公司 | Finance-level message processing method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020124104A1 (en) * | 2001-03-01 | 2002-09-05 | Yigal Rappaport | Network element and a method for preventing a disorder of a sequence of data packets traversing the network |
CN101742430A (en) * | 2008-11-20 | 2010-06-16 | 华为技术有限公司 | Method and device for processing data packet, and base station |
CN102368748A (en) * | 2011-09-10 | 2012-03-07 | 上海量明科技发展有限公司 | Method, client and system for postponing message sending in instant messaging |
CN102629929A (en) * | 2012-04-18 | 2012-08-08 | 华为技术有限公司 | Method and system and device for obtaining data |
CN102938676A (en) * | 2011-08-16 | 2013-02-20 | 中兴通讯股份有限公司 | Method, device and system for processing time synchronization |
CN105227588A (en) * | 2014-05-28 | 2016-01-06 | 中国移动通信集团公司 | A kind of method for down loading of files in stream media and user terminal |
CN105681160A (en) * | 2014-11-21 | 2016-06-15 | 中国移动通信集团公司 | Methods and apparatuses for correcting session message disorder in instant communication system |
CN105978796A (en) * | 2016-06-28 | 2016-09-28 | 乐视控股(北京)有限公司 | Message communication method and system based on unstable mobile network |
CN107465802A (en) * | 2016-06-03 | 2017-12-12 | 北京融聚世界网络科技有限公司 | A kind of methods, devices and systems for showing communication message |
CN108123866A (en) * | 2016-11-30 | 2018-06-05 | 北京云中融信网络科技有限公司 | Method for message transmission and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404618B (en) * | 2008-11-04 | 2011-04-20 | 中兴通讯股份有限公司 | System, apparatus and method for implementing transparent transmission clock in accurate clock synchronization protocol |
KR101589561B1 (en) * | 2009-06-12 | 2016-01-28 | 엘지전자 주식회사 | Method and apparatus to keeping orders among messages of discrete media type in cpm session |
CN102291324A (en) * | 2011-06-28 | 2011-12-21 | 北京神州泰岳软件股份有限公司 | Highly concurrent service request processing method |
CN103546824A (en) * | 2013-10-25 | 2014-01-29 | 中国科学院声学研究所 | Method and device for controlling sending rate of streaming media |
-
2018
- 2018-05-04 CN CN201810418220.4A patent/CN109729061B/en active Active
- 2018-07-09 WO PCT/CN2018/095041 patent/WO2019210574A1/en active Application Filing
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020124104A1 (en) * | 2001-03-01 | 2002-09-05 | Yigal Rappaport | Network element and a method for preventing a disorder of a sequence of data packets traversing the network |
CN101742430A (en) * | 2008-11-20 | 2010-06-16 | 华为技术有限公司 | Method and device for processing data packet, and base station |
CN102938676A (en) * | 2011-08-16 | 2013-02-20 | 中兴通讯股份有限公司 | Method, device and system for processing time synchronization |
CN102368748A (en) * | 2011-09-10 | 2012-03-07 | 上海量明科技发展有限公司 | Method, client and system for postponing message sending in instant messaging |
CN102629929A (en) * | 2012-04-18 | 2012-08-08 | 华为技术有限公司 | Method and system and device for obtaining data |
CN105227588A (en) * | 2014-05-28 | 2016-01-06 | 中国移动通信集团公司 | A kind of method for down loading of files in stream media and user terminal |
CN105681160A (en) * | 2014-11-21 | 2016-06-15 | 中国移动通信集团公司 | Methods and apparatuses for correcting session message disorder in instant communication system |
CN107465802A (en) * | 2016-06-03 | 2017-12-12 | 北京融聚世界网络科技有限公司 | A kind of methods, devices and systems for showing communication message |
CN105978796A (en) * | 2016-06-28 | 2016-09-28 | 乐视控股(北京)有限公司 | Message communication method and system based on unstable mobile network |
CN108123866A (en) * | 2016-11-30 | 2018-06-05 | 北京云中融信网络科技有限公司 | Method for message transmission and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112968828A (en) * | 2021-03-26 | 2021-06-15 | 联仁健康医疗大数据科技股份有限公司 | Chat message display method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109729061B (en) | 2021-09-21 |
WO2019210574A1 (en) | 2019-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220394316A1 (en) | Message sending method and device, readable medium and electronic device | |
CN109729061A (en) | Message treatment method, device, equipment and readable storage medium storing program for executing | |
CN105488837B (en) | Real-time off screen rendering method based on cloud computing, apparatus and system | |
CN105141496B (en) | A kind of instant communication message playback method and device | |
CN107637125A (en) | Method and apparatus for managing buffer in a wireless communication system | |
CN108173742B (en) | Image data processing method and device | |
WO2014183427A1 (en) | Method and apparatus for displaying webcast rooms | |
CN108965932B (en) | Continuous wheat window display method and device | |
CN104052655A (en) | Group chatting method and instant messaging client-side | |
CN111459690B (en) | Data receiving and transmitting control method and device, mobile terminal and storage medium | |
CN111224792B (en) | Conference access method and device | |
CN103069755A (en) | Instant messaging using multiple instances of a client | |
US12126844B2 (en) | Methods, apparatuses, readable media and electronic devices for live stream interaction | |
CN107748690A (en) | Using jump method, device and computer-readable storage medium | |
CN107733995A (en) | A kind of session keeping method, device and electronic equipment | |
US11924255B2 (en) | Data transmission method and apparatus, server, storage medium, and program product | |
CN107707594B (en) | It is a kind of to realize the document transmission method and device accelerated on demand | |
CN115671723A (en) | Resource processing method, device, equipment and medium | |
CN111857515A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN112860431B (en) | Connection method, system, equipment and storage medium of micro service node | |
US10536393B2 (en) | Mail obtaining method, terminal, and system | |
CN109214895A (en) | A kind of game resource promotion method, apparatus and system | |
EP3264851A1 (en) | Data transmission method and device for data service | |
CN106657172A (en) | Method and device for realizing information push | |
CN113259759A (en) | Network connection state evaluation method and device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |