CN105471703A - Message sending method and device - Google Patents

Message sending method and device Download PDF

Info

Publication number
CN105471703A
CN105471703A CN201410429718.2A CN201410429718A CN105471703A CN 105471703 A CN105471703 A CN 105471703A CN 201410429718 A CN201410429718 A CN 201410429718A CN 105471703 A CN105471703 A CN 105471703A
Authority
CN
China
Prior art keywords
pending message
message
pending
processing server
order
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
CN201410429718.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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410429718.2A priority Critical patent/CN105471703A/en
Publication of CN105471703A publication Critical patent/CN105471703A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a message sending method and device. The method is characterized in that a providing server obtains a plurality of messages to be processed, then, determines messages to be processed, which need to be processed in sequence, in the plurality of messages to be processed, sends the messages to be processed, which need to be processed in sequence, to a processing server serially through the same thread, and sends the messages to be processed, which do not need to be processed in sequence, in parallel to the processing server through a plurality of threads, so that processing sequence of the messages to be processed in sequence can be guaranteed, efficiency for sending the messages to be processed can be improved, and furthermore, efficiency of the processing server in processing the messages to be processed can be improved.

Description

A kind of message method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of message method and device.
Background technology
At present, user, when obtaining the various service in network, generally needs to be processed by the message of processing server to corresponding service.There is provided server as certain pending message first to be sent to by terminal by, user, provide server to send to processing server to process this pending message again.
Wherein, provide server for providing pending message for processing server, processing server then for the treatment of pending message, and returns the response message (that is, result) of pending message.
In the prior art, provide server, by single-threaded mode, pending message is sent to processing server.
Concrete, after providing server to get the pending message of user's transmission, this pending message is supplied to processing server, and when receiving the response message of this pending message that processing server returns, again pending for the next one of user message is supplied to processing server, that is, server is provided to be that each pending message is sent to processing server serially by a thread.
Obviously, this can cause the efficiency processing each pending message lower.
Summary of the invention
In view of the above problems, the present invention proposes a kind of message method and the device that effectively can overcome the problems referred to above, both the processing sequence of the pending message needing to process according to the order of sequence can have been ensured, also can improve the efficiency sending pending message, and then the efficiency of the pending message of processing server process can be improved.
According to an aspect of the present invention, propose a kind of message method, comprising:
Obtain multiple pending message;
Determine the pending message needing in described multiple pending message to process in order;
The pending message needing to process in order is sent to processing server by same thread serial, the pending message not needing to process in order is sent to described processing server by multiple thread parallel.
Optionally, described method also comprises:
Preserve described multiple pending message;
When not receiving corresponding response message in the preset time period after sending described pending message, this pending message of preserving is sent to described processing server again.
Optionally, determine the pending message needing in described multiple pending message to process in order, specifically comprise:
Determine each pending message of carrying same treatment order identification, as the pending message needing to process in order.
Optionally, the pending message needing to process in order is sent to processing server by same thread serial, specifically comprises:
The sequencing of each pending message determining to carry same treatment order identification rise time separately;
According to described sequencing, each pending message is sent to described processing server by same thread serial.
Optionally, according to described sequencing, each pending message is sent to described processing server by same thread serial, specifically comprises:
For each pending message of carrying same treatment order identification, after this pending message is sent to described processing server according to described sequencing, when receiving the response message of this pending message, send next pending message of carrying same treatment order identification.
According to another aspect of the present invention, propose a kind of message dispensing device, comprising:
Acquisition module, for obtaining multiple pending message;
Determination module, for determining the pending message needing in described multiple pending message to process in order;
First sending module, for sending to processing server by the pending message needing to process in order by same thread serial;
Second sending module, sends to described processing server by the pending message not needing to process in order by multiple thread parallel.
Optionally, comprising:
Memory module, for preserving described multiple pending message that described acquisition module obtains;
3rd sending module, for when not receiving corresponding response message in the preset time period after sending described pending message, sends to described processing server again by this pending message of preserving.
Optionally, described determination module specifically for:
Determine each pending message of carrying same treatment order identification, as the pending message needing to process in order.
Optionally, described first sending module specifically for:
The sequencing of each pending message determining to carry same treatment order identification rise time separately;
According to described sequencing, each pending message is sent to described processing server by same thread serial.
Optionally, according to described sequencing, each pending message is sent to described processing server by same thread serial, specifically comprises:
For each pending message of carrying same treatment order identification, after this pending message is sent to described processing server according to described sequencing, when receiving the response message of this pending message, send next pending message of carrying same treatment order identification.
According to message method provided by the invention, server is provided to pass through the pending message determining to need in multiple pending message to process in order; The pending message needing to process in order is sent to processing server by same thread serial; The pending message not needing to process in order is sent to described processing server by multiple thread parallel.Like this, both can ensure the processing sequence of the pending message needing to process according to the order of sequence, and also can improve the efficiency sending pending message, and then the efficiency of the pending message of processing server process can be improved.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the message method schematic flow sheet according to one embodiment of the invention;
Fig. 2 provides the schematic diagram of the annexation between server and processing server for foundation one embodiment of the invention;
Fig. 3 provides server, annexation schematic diagram between proxy server and processing server according to one embodiment of the invention;
Fig. 4 is one of message dispensing device structural representation of foundation one embodiment of the invention;
Fig. 5 is the message dispensing device structural representation two according to one embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Below in conjunction with Figure of description, the embodiment of the present invention is described in detail.
Fig. 1 is the message method according to one embodiment of the invention, can comprise step:
S101, obtain multiple pending message;
S102, determine the pending message that needs in described multiple pending message to process in order;
S103, the pending message needing to process in order is sent to processing server by same thread serial, the pending message not needing to process in order is sent to described processing server by multiple thread parallel.
From the foregoing, the invention provides server and the pending message needing to process in order is sent to processing server by same thread serial, the pending message not needing to process in order is sent to described processing server by multiple thread parallel.Like this, both can ensure the processing sequence of the pending message needing to process according to the order of sequence, also can improve the efficiency sending pending message, and then improve the efficiency of the pending message of processing server process.
It should be noted that, the server that provides of the present invention is the operation information sent for receiving user, and operation information being encapsulated as the server of pending message, processing server of the present invention is in each pending message of background process, and returns the server of response message.
According to one embodiment of the present of invention, in the step S101 shown in Fig. 1, provide server directly can obtain described multiple pending message from terminal, the plurality of pending message can be generated and sent to providing server according to the sequence of operations of user by terminal.Or, but provide server also self to generate multiple pending message, such as, provide server first to obtain the sequence of operations information of user from terminal, then each operation information is encapsulated one by one, generate multiple pending message.
The present invention will illustrate for example to provide server self to generate multiple pending message below.
Concrete, suppose to provide server successively to receive operation information 1, operation information 2, operation information 3, operation information 4 and operation information 5, then successively can generate and each operation information pending message a, pending message b, pending message c, pending message d and pending message e one to one according to each operation information received, wherein, each pending message corresponding rise time.
Wherein, the operation information described in the embodiment of the present invention can be any one operation information that user performs, and corresponding pending message then can be to provide the message that server directly processes according to the server that can be processed that this operation information generates.Be information corresponding to (e.g., to the input operation in geographical position, the input operation to date of birth, the input operation etc. to the pet name) sequence of operations that a certain user carries out when carrying out Account Registration with operation information be below example explanation.
Such as, suppose that operation information 1 inputs the country name input operation information of its country one belongs to for user, operation information 2 inputs city's name input operation information in its place city for user, operation information 3 inputs the time input operation information of its year of birth for user, operation information 4 inputs the day moon input operation information on birth month and date for user, and operation information 5 inputs the pet name input operation information of the pet name for user.
Then pending message a is encapsulated by two request messages and forms, and a request message is typing and preserves the request message of the country name of user's input, and another request message is the request message obtaining each city name corresponding to this country name.Pending message b is only encapsulated by a request message and forms, and this request message is typing and preserves the request message of city's name of user's input.Pending message c is encapsulated by two request messages and forms, and a request message is typing and preserves the request message in the time of user's input, and another request message is the request message obtaining month corresponding to this time and date.Pending message d is only encapsulated by a request message and forms, and this request message is typing and preserves the month of user's input and the request message on date.Pending message e is only encapsulated by a request message and forms, and this request message is typing and preserves the request message of the pet name of user's input.
For the ease of when sending each pending message, which can be distinguished in each pending message belong to and process in order, which does not belong to processes in order, can when generating each pending message, in this pending message, carry processing order mark, this processing order mark can be, but not limited to the key assignments (being called for short Key value) into pending message.Suppose the set of each pending message needing to process in order to be called a message groups, then in the multiple pending message providing server to obtain, may comprise multiple message groups, different message groups is without the need to processing in order.Therefore, the present invention carries identical processing order mark in each pending message belonging to same message groups, carries not identical processing order mark in the pending message of different message groups.
For the ease of when sending each pending message, the processing sequence of each pending message in a message groups can be distinguished, then when generating each pending message, the rise time of this pending message can be carried in this pending message.
Continue to adopt example, provide server according to the attribute of operation information 1 and operation information 2, determine that pending message a and pending message b needs to process in order, the set formed by pending message a and pending message b is as message groups one.According to the attribute of operation information 3 and operation information 4, determine that pending message c and pending message d needs to process in order, the set formed by pending message c and pending message d is as message groups two.Message groups one and message groups two do not need to process in order.According to the attribute of operation information 5, determine that pending message e does not need to process in order with any pending message.Then providing server can carry the key assignments of Key=0 and corresponding rise time respectively in pending message a and pending message b, the key assignments of Key=1 and corresponding rise time is carried respectively in pending message c and pending message d, do not carry in pending message e key assignments and rise time (certainly, also can carry Key in pending message e is other key assignments except 0 and 1 and rise time).
Wherein, can the attribute of setting operation information be the attribute (e.g., the country name of input and the attribute of city's name are geographical position, and the attribute on the year of birth of input, month and date is date of birth etc.) of the information that user inputs, then the rule preset be:
Rule one, be each pending message that the operation information in geographical position is corresponding for attribute, need to process in order, and according to the sequencing of each pending message generation time, each pending message is processed.This is because, user is only had to have input country name by operation information 1, each city name that processing server could return this country name corresponding to user is selected for user, that is, user only has first executable operations information 1, ability executable operations information 2, therefore, the pending message a of operation information 1 and operation information 2 correspondence and pending message b needs to perform in order.
Rule two, be each pending message that the operation information of date of birth is corresponding for attribute, need to process in order, and according to the sequencing of each pending message generation time, each pending message is processed.This is because, user is only had to have input the time by operation information 3, processing server could return month corresponding to this time and date to user, and (month corresponding to each time is not necessarily identical with the date, as there is February 29 in the leap year) select for user, that is, user only has first executable operations information 3, ability executable operations information 4, therefore, the pending message c of operation information 3 and operation information 4 correspondence and pending message d needs to perform in order.
Therefore, in upper example, provide server to be carried in message groups one by pending message a and pending message b, and the processing sequence determined is for first to process pending message a, the pending message b of reprocessing; Pending message c and pending message d is carried in message groups two, and the processing sequence determined is for first to process pending message c, the pending message d of reprocessing.Pending message e then can process at any time.
According to one embodiment of the present of invention, in the step S102 shown in Fig. 1, determine the pending message needing in described multiple pending message to process in order, specifically comprise: each pending message of determining to carry same treatment order identification, as the pending message needing to process in order.
Concrete, adopt above-mentioned example, there is provided after server obtains pending message a, pending message b, pending message c, pending message d and pending message e, the pending message a and the pending message b that determine to carry Key=0 are two the pending message (message groups one) needing to process in order; The pending message c and the pending message d that determine to carry Key=1 are two the pending message (message groups two) needing to process in order; The pending message e determining not carry Key value is the pending message without the need to processing in order.
It should be noted that, in the step S102 shown in Fig. 1, provide server after determining in multiple pending message the pending message needing to process in order, remaining each pending message is the pending message not needing to process in order.That is, after the pending message needing to process in order is determined, the pending message processed in order is not needed just to determine yet.
According to one embodiment of the present of invention, in the step S103 shown in Fig. 1, the pending message needing to process in order is sent to processing server by same thread serial, specifically comprises: the sequencing of each pending message of determining to carry same treatment order identification rise time separately; According to described sequencing, each pending message is sent to described processing server by same thread serial.
Optionally, according to described sequencing, each pending message is sent to described processing server by same thread serial, specifically comprise: for each pending message of carrying same treatment order identification, after this pending message is sent to described processing server according to described sequencing, when receiving the response message of this pending message, send next pending message of carrying same treatment order identification.
Concrete, adopt above-described embodiment, suppose to provide between server and processing server and be provided with three threads, as shown in Figure 2, for providing the schematic diagram of the annexation between server and processing server, supposing to provide between server and processing server and be provided with the first thread, the second thread and the 3rd thread.Then each pending message in message groups one is sent to processing server by the first thread, each pending message in message groups two is sent to processing server by the second thread, pending message e is sent to processing server by the 3rd thread.
Concrete, for message groups one, the sequencing of determine pending message a and pending message b rise time is separately: first generate pending message a, the pending message b of rear generation.Therefore, server is provided first pending message a to be sent to processing server by the first thread, timing is started from the pending message a of transmission, when receiving the response message of this pending message a within the time period set, again pending message b is sent to processing server by the first thread, starting timing from the pending message b of transmission, when receiving the response message of this pending message b within the time period set, determining that each pending message in message groups one sends successfully.
Similar, for message groups two, the sequencing of determine pending message c and pending message d rise time is separately: first generate pending message c, the pending message d of rear generation.Therefore, server is provided first pending message c to be sent to processing server by the second thread, timing is started from the pending message c of transmission, when receiving the response message of this pending message c within the time period set, again pending message d is sent to processing server by the second thread, starting timing from the pending message d of transmission, when receiving the response message of this pending message d within the time period set, determining that each pending message in message groups two sends successfully.
For pending message e, pending message e is sent to processing server by the 3rd thread.
It should be noted that, pending message in message groups one, the pending message in message groups two and pending message e send to processing server by different threads, therefore, can send pending message a, pending message c and pending message e at synchronization or same time period to processing server, then processing server also receives pending message a, pending message c and pending message e in section at one time.Obviously, compare and send pending message a, pending message b, pending message c, pending message d and pending message e one by one by a thread, the present invention can effectively improve the treatment effeciency providing server, and then can improve the treatment effeciency of processing server.
The above-mentioned message method that the embodiment of the present invention provides, in practical application scene, the communication network between server and processing server is provided to be probably unstable in the process sending pending message, if in step s 103, each pending message is sent by each thread, and when providing the network between server and processing server to occur to interrupt, then the pending message sent can be caused successfully cannot to be sent to the problem of processing server.
In order to solve the problem, optionally, the embodiment of the present invention, after got described pending message by step S101, preserves described multiple pending message.Further, when not receiving corresponding response message in the preset time period after sending described pending message, this pending message of preserving is sent to described processing server again.
Such as, after got pending message a, pending message b, pending message c, pending message d and pending message e by step S101, preserve pending message a, pending message b, pending message c, pending message d and pending message e.
In step s 103, beginning timing from the pending message a of transmission, the response message of pending message a is not received in preset time period t, then the pending message a preserved is sent by the first thread again, until when receiving the response message of pending message a, then send pending message b.
Similar, after the pending message b of transmission, start timing, in preset time period t, do not receive the response message of pending message b, then the pending message b preserved is sent, until receive the response message of pending message b by the first thread again.
According to one embodiment of the present of invention, proxy module can be set providing in server, or, as shown in Figure 3, can provide in the reliable network environment at server place proxy server is set at this.Then in step S101, after providing server to get multiple pending message, be transmitted to proxy module or proxy server, proxy module or proxy server then can perform step S102 and step S103, repeat no more here after getting multiple pending message.
Be the message method that the embodiment of the present invention provides above, based on same thinking, the embodiment of the present invention additionally provides message dispensing device, as shown in Figure 4 and Figure 5.
Fig. 4 is the structural representation of the message dispensing device according to one embodiment of the invention, comprising:
Acquisition module 1, for obtaining multiple pending message;
Determination module 2, for determining the pending message needing in described multiple pending message to process in order;
First sending module 3, for sending to processing server by the pending message needing to process in order by same thread serial;
Second sending module 4, sends to described processing server by the pending message not needing to process in order by multiple thread parallel.
See Fig. 5, described device also comprises:
Memory module 5, for preserving described multiple pending message that acquisition module 1 obtains;
3rd sending module 6, for when not receiving corresponding response message in the preset time period after sending described pending message, sends to described processing server again by this pending message of preserving.
Determination module 2 specifically for:
Determine each pending message of carrying same treatment order identification, as the pending message needing to process in order.
First sending module 3 specifically for:
The sequencing of each pending message determining to carry same treatment order identification rise time separately;
According to described sequencing, each pending message is sent to described processing server by same thread serial.
According to described sequencing, each pending message is sent to described processing server by same thread serial, specifically comprises:
For each pending message of carrying same treatment order identification, after this pending message is sent to described processing server according to described sequencing, when receiving the response message of this pending message, send next pending message of carrying same treatment order identification.
In sum, the embodiment of the present invention is by determining the pending message needing in described multiple pending message to process in order; The pending message needing to process in order is sent to processing server by same thread serial; The pending message not needing to process in order is sent to described processing server by multiple thread parallel.Like this, both can ensure the processing sequence of the pending message needing to process according to the order of sequence, also can improve the efficiency sending pending message, and then the efficiency of each pending message of processing server process can have been improved.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the equipment of the implantation information in the interception application program of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The present invention can be applied to computer system/server, and it can operate with other universal or special computing system environment numerous or together with configuring.The example of the well-known computing system being suitable for using together with computer system/server, environment and/or configuration includes but not limited to: personal computer system, server computer system, thin client, thick client computer, hand-held or laptop devices, system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC, minicomputer system large computer system and comprise the distributed cloud computing technology environment of above-mentioned any system, etc.
Computer system/server can describe under the general linguistic context of the computer system executable instruction (such as program module) performed by computer system.Usually, program module can comprise routine, program, target program, assembly, logic, data structure etc., and they perform specific task or realize specific abstract data type.Computer system/server can be implemented in distributed cloud computing environment, and in distributed cloud computing environment, task is performed by the remote processing devices by communication network links.In distributed cloud computing environment, program module can be positioned at and comprise on the Local or Remote computing system storage medium of memory device.

Claims (10)

1. a message method, it comprises:
Obtain multiple pending message;
Determine the pending message needing in described multiple pending message to process in order;
The pending message needing to process in order is sent to processing server by same thread serial, the pending message not needing to process in order is sent to described processing server by multiple thread parallel.
2. the method for claim 1, is characterized in that, also comprises:
Preserve described multiple pending message;
When not receiving corresponding response message in the preset time period after sending described pending message, this pending message of preserving is sent to described processing server again.
3. the method for claim 1, is characterized in that, determines the pending message needing in described multiple pending message to process in order, specifically comprises:
Determine each pending message of carrying same treatment order identification, as the pending message needing to process in order.
4. method as claimed in claim 3, is characterized in that, the pending message needing to process in order is sent to processing server by same thread serial, specifically comprises:
The sequencing of each pending message determining to carry same treatment order identification rise time separately;
According to described sequencing, each pending message is sent to described processing server by same thread serial.
5. method as claimed in claim 4, is characterized in that, according to described sequencing, each pending message is sent to described processing server by same thread serial, specifically comprise:
For each pending message of carrying same treatment order identification, after this pending message is sent to described processing server according to described sequencing, when receiving the response message of this pending message, send next pending message of carrying same treatment order identification.
6. a message dispensing device, is characterized in that, comprising:
Acquisition module, for obtaining multiple pending message;
Determination module, for determining the pending message needing in described multiple pending message to process in order;
First sending module, for sending to processing server by the pending message needing to process in order by same thread serial;
Second sending module, sends to described processing server by the pending message not needing to process in order by multiple thread parallel.
7. device as claimed in claim 6, is characterized in that, comprising:
Memory module, for preserving described multiple pending message that described acquisition module obtains;
3rd sending module, for when not receiving corresponding response message in the preset time period after sending described pending message, sends to described processing server again by this pending message of preserving.
8. device as claimed in claim 6, is characterized in that, described determination module specifically for:
Determine each pending message of carrying same treatment order identification, as the pending message needing to process in order.
9. device as claimed in claim 8, is characterized in that, described first sending module specifically for:
The sequencing of each pending message determining to carry same treatment order identification rise time separately;
According to described sequencing, each pending message is sent to described processing server by same thread serial.
10. device as claimed in claim 9, is characterized in that, according to described sequencing, each pending message is sent to described processing server by same thread serial, specifically comprise:
For each pending message of carrying same treatment order identification, after this pending message is sent to described processing server according to described sequencing, when receiving the response message of this pending message, send next pending message of carrying same treatment order identification.
CN201410429718.2A 2014-08-27 2014-08-27 Message sending method and device Pending CN105471703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410429718.2A CN105471703A (en) 2014-08-27 2014-08-27 Message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410429718.2A CN105471703A (en) 2014-08-27 2014-08-27 Message sending method and device

Publications (1)

Publication Number Publication Date
CN105471703A true CN105471703A (en) 2016-04-06

Family

ID=55609008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410429718.2A Pending CN105471703A (en) 2014-08-27 2014-08-27 Message sending method and device

Country Status (1)

Country Link
CN (1) CN105471703A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130868A (en) * 2016-06-02 2016-11-16 腾讯科技(深圳)有限公司 A kind of processing method adjusting back message and queue management system
CN106201705A (en) * 2016-07-25 2016-12-07 东软集团股份有限公司 Process the method and device of message
CN108092918A (en) * 2017-12-07 2018-05-29 长城计算机软件与系统有限公司 A kind of method for message transmission and system
WO2019019384A1 (en) * 2017-07-27 2019-01-31 上海壹账通金融科技有限公司 Message push method, apparatus, computer device, and storage medium
CN110069514A (en) * 2017-10-20 2019-07-30 北京京东尚科信息技术有限公司 Message treatment method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812606A (en) * 2006-02-23 2006-08-02 中兴通讯股份有限公司 Node B application part public process parallel processing method
CN1905531A (en) * 2006-08-11 2007-01-31 白杰 Method for processing data being transmitted and method and apparatus for transmitting data
CN101110791A (en) * 2006-08-17 2008-01-23 华为技术有限公司 Method and system for implementing short message business bifurcation transmission in multimedia subsystem
EP2091175A1 (en) * 2008-02-18 2009-08-19 Kabushiki Kaisha Toshiba Decryption processing apparatus, system, method, and computer program product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812606A (en) * 2006-02-23 2006-08-02 中兴通讯股份有限公司 Node B application part public process parallel processing method
CN1905531A (en) * 2006-08-11 2007-01-31 白杰 Method for processing data being transmitted and method and apparatus for transmitting data
CN101110791A (en) * 2006-08-17 2008-01-23 华为技术有限公司 Method and system for implementing short message business bifurcation transmission in multimedia subsystem
EP2091175A1 (en) * 2008-02-18 2009-08-19 Kabushiki Kaisha Toshiba Decryption processing apparatus, system, method, and computer program product

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130868A (en) * 2016-06-02 2016-11-16 腾讯科技(深圳)有限公司 A kind of processing method adjusting back message and queue management system
CN106201705A (en) * 2016-07-25 2016-12-07 东软集团股份有限公司 Process the method and device of message
WO2019019384A1 (en) * 2017-07-27 2019-01-31 上海壹账通金融科技有限公司 Message push method, apparatus, computer device, and storage medium
CN110069514A (en) * 2017-10-20 2019-07-30 北京京东尚科信息技术有限公司 Message treatment method and device
CN108092918A (en) * 2017-12-07 2018-05-29 长城计算机软件与系统有限公司 A kind of method for message transmission and system

Similar Documents

Publication Publication Date Title
CN105471703A (en) Message sending method and device
JP2020531976A (en) A device that provides a set of cryptographically protected, filtered, and sorted transaction datasets for blockchain links.
CN102955717B (en) Message management equipment and method in distributed message processing system
CN105389191A (en) Software upgrading method, apparatus and system based on local area network
CN102981911B (en) Distributed message handling system and device and method thereof
US20170024396A1 (en) Determining application deployment recommendations
CN103646082A (en) Method and device for checking files
CN103544035A (en) Application clearing method and device for mobile terminal
US20120331038A1 (en) Systems and methods for processing web service piped network requests
CN105095168A (en) Automatic generation method and device for contract files
CN102955907A (en) Password management method device
CN102957696A (en) Data processing method and device
CN105373420A (en) Data transmission method and apparatus
CN103595770A (en) Method and device for achieving file downloading through SDK
CN103678568A (en) Method, server and system for providing problem solutions
CN102446100B (en) For the type of data type and the abstract system and method for length
CN108765220A (en) A kind of work correction method, apparatus, work correction system and storage medium
CN110888639A (en) Business code compiling and packaging method and device
CN103647775A (en) Method and apparatus for registration in webpage
CN103647811A (en) A method and an apparatus for application's accessing backstage service
CN103593396A (en) Network resource extracting method and device based on browser
CN112825154A (en) Method and device for optimizing online reasoning in deep learning and computer storage medium
JP6038232B2 (en) Mail service system and method for efficient mail search
CN104143110A (en) Two-dimensional code generating method with web site information
CN104346460A (en) Method and device for downloading file and browser client

Legal Events

Date Code Title Description
C06 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160406