CN106330688A - Method and system for sending medical message based on random message queue - Google Patents
Method and system for sending medical message based on random message queue Download PDFInfo
- Publication number
- CN106330688A CN106330688A CN201610918232.4A CN201610918232A CN106330688A CN 106330688 A CN106330688 A CN 106330688A CN 201610918232 A CN201610918232 A CN 201610918232A CN 106330688 A CN106330688 A CN 106330688A
- Authority
- CN
- China
- Prior art keywords
- medical news
- medical
- request
- news
- send
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/043—Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/234—Monitoring or handling of messages for tracking messages
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The invention discloses a method and system for sending medical message based on random message queue, comprising receiving the medical message sending request used for sending medical message to users;randomly obtaining the first time interval of medical message queue generating the medical message sending request queue within the scope of set first time interval; obtaining the medical message sending request within the first time interval successively as per the time of receiving the medical message sending request; sending the medical message sending request in the first time interval to the task queue of medical message sending; obtaining corresponding medical message sending request from the task queue according to the preset medical message sending strategy and sending the request to the medical message sending engine;receiving the medical message status callback notification of medical message sending request, and re-sending the notification to corresponding medical message sender. The method and system solve the message sending failure arising from simultaneously sending the medical message.
Description
Technical field
The present invention relates to the technical field of online medical treatment, send doctor more particularly, to one based on random message queue
Treat the method and system of message.
Background technology
Along with the fast development of Internet technology, present the Internet combines mobile network's technology and is capable of zones of different
People between interactive communication anywhere or anytime.Online medical field based on the Internet, user can pass through the Internet and doctor
Raw online interaction carries out medical advice, has broken in traditional medical field and user and doctor must link up the side for the treatment of face-to-face
Formula, it is achieved that the medical resource of cross-region is shared, the region relieving medical resource limits, it is achieved that rationally dividing of medical resource
Join, solve, the problem of the difficulty and high cost of getting medical such as road remote difficult at hospital treatment row number now simultaneously.
But, in online medical procedure, the communication between doctor and user is realized by internet, and user institute
The Internet used the most all has preferable signal, and the online medical treatment client of user is located the most always
In online logging status, it is possible to the online medical information that doctor is sent can not received.Therefore, in order to ensure online medical treatment
During, carry out good online communication between doctor and user, in addition it is also necessary to guarantee Medical News energy by other communication way
Enough send in time to user.Because having substantial amounts of user and doctor to carry out online medical treatment by online medical platform all the time
Linking up, so being required for sending substantial amounts of Medical News all the time by online medical platform, and messenger service business being come
Saying, online medical platform sends a large amount of message simultaneously and will be regarded as rubbish message and do not sent, and user also cannot be timely
Receive Medical News, thus delay the treatment of user.
Further, send platform by message and send message to multiple users, when there is not feedback report, in message simultaneously
Transmitting terminal is to learn whether user receives sent message, also cannot ensure that Medical News is sent out accurately and timely
Deliver to user, thus improve the communication cost of online medical treatment.
Therefore it provides a kind of scheme safe, that sent by the Medical News of online medical treatment to user timely and accurately is this
Field problem demanding prompt solution.
Summary of the invention
In view of this, the invention provides a kind of method and system sending Medical News based on random message queue, solve
Prior art of having determined sends message to different user simultaneously and can not arrive user's accurately, in time sending platform by message
Technical problem.
In order to solve above-mentioned technical problem, the present invention proposes a kind of side sending Medical News based on random message queue
Method, including:
Send on platform at Medical News, receive and send request for the Medical News sending Medical News to user;
In the very first time interval set, the medical treatment obtaining generation Medical News transmission request queue randomly disappears
The very first time interval of breath queue;Sending, by receiving described Medical News, the time asked, after arriving first, order obtains in institute
State the described Medical News in very first time interval and send request;
Described Medical News in being spaced in the described very first time sends request and sends sending to Medical News of task
In queue;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News
Send request, and send to Medical News transmission engine;
Receive described Medical News and send the Medical News state callbacks notice of request, and described Medical News state is returned
Notice is adjusted to send to corresponding Medical News sender.
Further, wherein, according to Medical News sending strategy set in advance, obtain corresponding from described task queue
Described Medical News send request send to Medical News send engine, be further:
According to the second time interval set in advance in described task queue, receive described medical treatment by described task queue
Message sends the time of request, the described doctor that order obtains described task queue in described second time interval after arriving first
Treat message and send request transmission to Medical News transmission engine.
Further, wherein, the method farther includes:
The request that sent by described Medical News sends after sending engine to Medical News, does not receives in readjustment time threshold
When described Medical News sends the Medical News state callbacks notice of request, retransmit the most described medical treatment every the 3rd time interval
Message sends a request to described Medical News and sends engine.
Further, wherein, according to Medical News sending strategy set in advance, obtain corresponding from described task queue
Described Medical News send request, and send to Medical News send engine, be further:
By Nginx load strategy above or equal to 2 Medical News send engine by resource degree from big to small
Sequence, selects a Medical News to send engine according to described resource degree clooating sequence and draws as performing Medical News transmission
Hold up;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News
The request of transmission sends to described execution Medical News transmission engine.
Further, wherein, the method farther includes:
Detect selected Medical News send the network of engine obstructed or abnormal time, arrange according to described resource degree
Sequence, order is chosen the Medical News transmission engine later Medical News transmission engine of described selection and is sent out as performing Medical News
Send engine;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News
Send request, and send to described execution Medical News transmission engine.
On the other hand, the present invention also provides for a kind of system sending Medical News based on random message queue, including: medical treatment
Message sends request receiver module, Medical News sends request and chooses module, Medical News transmission request queue generation module, doctor
Treat message and send request queue execution module and Medical News state callbacks notification module;Wherein,
Described Medical News sends request receiver module, for sending platform at Medical News, receives for user
The Medical News sending Medical News sends request;
Described Medical News sends request and chooses module, for, in the very first time interval set, obtaining randomly
Take the very first time interval generating the Medical News queue that Medical News sends request queue;Send out by receiving described Medical News
Sending the time of request, the described Medical News that order obtains in the described very first time is spaced after arriving first sends request;
Described Medical News sends request queue generation module, the described medical treatment in being spaced in the described very first time
Message sends request and sends to the task queue of Medical News transmission;
Described Medical News sends request queue and performs module, is used for according to Medical News sending strategy set in advance,
From described task queue, obtain corresponding described Medical News send request, and send to Medical News transmission engine;
Described Medical News state callbacks notification module, sends the Medical News shape of request for receiving described Medical News
State readjustment notice, and described Medical News state callbacks notice is sent to corresponding Medical News sender.
Further, wherein, described Medical News sends request queue and performs module, is further used for:
According to the second time interval set in advance in described task queue, receive described medical treatment by described task queue
Message sends the time of request, the described doctor that order obtains described task queue in described second time interval after arriving first
Treat message and send request transmission to Medical News transmission engine.
Further, wherein, this system also includes: Medical News sends request repeat module, is used for:
The request that sent by described Medical News sends after sending engine to Medical News, does not receives in readjustment time threshold
When described Medical News sends the Medical News state callbacks notice of request, retransmit the most described medical treatment every the 3rd time interval
Message sends a request to described Medical News and sends engine.
Further, wherein, described Medical News sends request queue and performs module, is further used for:
By Nginx load strategy above or equal to 2 Medical News send engine by resource degree from big to small
Sequence, selects a Medical News to send engine according to described resource degree clooating sequence and draws as performing Medical News transmission
Hold up;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News
The request of transmission sends to described execution Medical News transmission engine.
Further, wherein, described Medical News sends request queue and performs module, is further used for:
Detect selected Medical News send the network of engine obstructed or abnormal time, arrange according to described resource degree
Sequence, order is chosen the Medical News transmission engine later Medical News transmission engine of described selection and is sent out as performing Medical News
Send engine;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News
Send request, and send to described execution Medical News transmission engine.
Compared with prior art, the method and system sending Medical News based on random message queue of the present invention, it is achieved
Following beneficial effect:
(1) method and system sending Medical News based on random message queue of the present invention, send out at Medical News
Send on platform in the range of the timing sending message, the timed length of the random transmission message request obtaining this, according to
The transmission message request timed length obtained sends from message and obtains the transmission request transmission of corresponding Medical News request set
To task queue, form random message queue, perform the transmission of Medical News according to random message queue, pass through message queue
Change transmission solves transmission message simultaneously and causes message to send failed problem.
(2) method and system sending Medical News based on random message queue of the present invention, based on random message
Queue sends Medical News to user, and receives the feedback notification of user, carries out message retransmission, really when message sends unsuccessful
Protect Medical News can send accurately and timely to user.
(3) method and system sending Medical News based on random message queue of the present invention, in conjunction with multiple message
Send server, therefrom choose the optimum message of resource and send the transmission of server execution Medical News, and current detecting
When message transmission server is unavailable, it is switched to other message and sends server, it is ensured that Medical News can send accurately and timely
To user, reduce the resource occupation problem of message retransmission simultaneously.
Certainly, the arbitrary product implementing the present invention specific needs must not reach all the above technique effect simultaneously.
By detailed description to the exemplary embodiment of the present invention referring to the drawings, the further feature of the present invention and
Advantage will be made apparent from.
Accompanying drawing explanation
Combined in the description and the accompanying drawing of the part that constitutes description shows embodiments of the invention, and even
With its explanation together for explaining the principle of the present invention.
Fig. 1 is the flow process signal of the method sending Medical News described in the embodiment of the present invention 1 based on random message queue
Figure;
Fig. 2 is the flow process signal of the method sending Medical News described in the embodiment of the present invention 2 based on random message queue
Figure;
Fig. 3 is the structural representation of the system sending Medical News described in the embodiment of the present invention 3 based on random message queue
Figure;
Fig. 4 is information transmission in the system sending Medical News described in the embodiment of the present invention 3 based on random message queue
Schematic diagram.
Detailed description of the invention
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should also be noted that unless additionally have
Body illustrates, the parts illustrated the most in these embodiments and positioned opposite, the numerical expression of step and numerical value are not intended to this
The scope of invention.
Description only actually at least one exemplary embodiment is illustrative below, never as to the present invention
And any restriction applied or use.
May be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of when, described technology, method and apparatus should be considered a part for description.
It is shown here that any occurrence should be construed as merely exemplary with in all examples discussed, and not
It is as restriction.Therefore, other example of exemplary embodiment can have different values.
It should also be noted that similar label and letter represent similar terms, therefore, the most a certain Xiang Yi in following accompanying drawing
Individual accompanying drawing is defined, then need not it is further discussed in accompanying drawing subsequently.
Embodiment 1
As it is shown in figure 1, the flow process of the method for sending Medical News based on random message queue described in the present embodiment is shown
It is intended to.Method based on random message queue transmission Medical News described in this enforcement is passed through at any time, timing sends online medical
During medical information, solve in prior art can not send message or the message sent to user to different user simultaneously
The problem that can not accurately arrive.Method based on random message queue transmission Medical News described in this enforcement includes walking as follows
Rapid:
Step 101, the sender of Medical News send Medical News by online medical platform to user, generate for
User sends the Medical News of Medical News and sends request, and described Medical News sends request transmission to described online medical treatment
Platform.
Medical News content, the mark of sender, the mark of targeted customer is included in described Medical News sends request
The information datas such as knowledge and callback instruction.Send request at described Medical News and be transferred to described by Medical News transmission engine
During targeted customer, mark based on described callback instruction and sender is fed back Medical News state callbacks to described sender and is led to
Know, thus just can know that sent Medical News accurately reaches targeted customer described sender.
Step 102, described online medical platform receive described Medical News send request, and record reception described medical treatment disappear
Breath sends the time of request.
The request of substantial amounts of Medical News the most all can be had to be sent to described online medical platform, by recording described doctor
Treat message and send the time of request, each Medical News can be arranged in reasonable and orderly manner to be sent extremely by Medical News transmit queue
The strategy of each targeted customer.
Step 103, from set very first time interval in, randomly obtain generate Medical News send request queue
Medical News queue the very first time interval;The time asked is sent, order after arriving first by receiving described Medical News
The described Medical News obtained in the described very first time is spaced sends request.
The Medical News transmission platform moment of online medical treatment all may receive substantial amounts of Medical News and send request, sends out simultaneously
Send the most substantial amounts of message that Medical News both can have been caused to send unsuccessfully, also add Medical News and send the message transmission pressure of platform
Power.Medical News based on online medical treatment sends platform, sends Medical News the most in batches, is simultaneously based on medical treatment and disappears
The task queue of the Medical News transmission that breath sends platform carries out transmission in batches and processes, and is conducive to promoting the one-tenth that Medical News sends
Power.And randomly choose this batch based on this step and send the quantity of Medical News transmission request (based in very first time interval
Medical News send number of requests), and use random manner from set very first time interval in obtain each time
Very first time interval in batches, advantageously reduces the concurrent peak value that Medical News request sends.
Preferably, described very first time interval is 0-30 minute.Avoid sending the concurrent of service by random algorithm
The complicated short time crosses excessive risk.
Step 104, request will be sent at the described Medical News in the described very first time is spaced and send to Medical News and send out
In the task queue sent.
The task queue that described Medical News sends is to perform the important of Medical News transmission on Medical News transmission platform
Module, but need the Medical News performing or performing to send number of request there being the most pending Medical News to send request
It is abnormal that the amount/frequency the most all may cause Medical News to send, and first the Medical News to be sent chosen is sent request temporary
In described task queue, in conjunction with Medical News sending strategy set in advance in task queue
Step 105, according to Medical News sending strategy set in advance, obtain corresponding described from described task queue
Medical News sends request, and sends to Medical News transmission engine.
Preferably, described Medical News sending strategy set in advance can be to send according to Medical News in task queue
The request time of request, it is also possible to be according to fixing timed interval, obtains corresponding described from described task queue
Medical News sends request.
Step 106, described Medical News send the Medical News of engine reception described Medical News transmission platform transmission and send out
Send request, according to targeted customer's mark that Medical News sends in request, Medical News can be sent to targeted customer.
When step 107, targeted customer receive the Medical News that sender sends, mark based on callback instruction and targeted customer
Know and automatically generate the Medical News state callbacks notice carrying transmitting side marking, and feed back to described Medical News transmission platform.
Step 108, Medical News send the Medical News state callbacks of platform reception described Medical News transmission request and lead to
Know, and described Medical News state callbacks notice is sent to corresponding Medical News sender.
By Medical News state callbacks informing mechanism so that send and can obtain Medical News transmission arrival target in time
The information of user, the most just need not carry out Medical News again and send failed treatment measures, ensure that Medical News sends simultaneously
The synchronicity of information is linked up between side and targeted customer.
The method sending Medical News based on random message queue described in the present embodiment, performs according to random message queue
The transmission of Medical News, solves transmission message simultaneously by message queueization transmission and causes message to send failed problem.
Embodiment 2
As in figure 2 it is shown, the flow process of the method for sending Medical News based on random message queue described in the present embodiment is shown
It is intended to.The present embodiment on the basis of embodiment 1, describe Medical News sending strategy, retransmit described Medical News send please
The particular content asked.Method based on random message queue transmission Medical News described in the present embodiment comprises the steps:
Step 201, the sender of Medical News send Medical News by online medical platform to user, generate for
User sends the Medical News of Medical News and sends request, and described Medical News sends request transmission to described online medical treatment
Platform.
Step 202, described online medical platform receive described Medical News send request, and record reception described medical treatment disappear
Breath sends the time of request
Step 203, from set very first time interval in, randomly obtain generate Medical News send request queue
Medical News queue the very first time interval;The time asked is sent, order after arriving first by receiving described Medical News
The described Medical News obtained in the described very first time is spaced sends request.
Step 204, request will be sent at the described Medical News in the described very first time is spaced and send to Medical News and send out
In the task queue sent.
Step 205, send engine by resource degree by Nginx load strategy above or equal to the Medical News of 2
Sort from big to small, select a Medical News to send engine as performing Medical News according to described resource degree clooating sequence
Send engine.
Send engine by many Medical News and can increase the fault tolerant mechanism during Medical News sends, it is ensured that at one
There is multiple Medical News to send in the case of Medical News transmission engine is abnormal to select, also ensure that Medical News can be accurate
Really, targeted customer is arrived in time.
Step 206, detect selected Medical News send the network of engine obstructed or abnormal time, according to described resource
Degree sorts, and order is chosen the Medical News of described selection and sent engine later Medical News transmission engine as performing medical treatment
Message sends engine.
Step 207, according to the second time interval set in advance in described task queue, receive by described task queue
Described Medical News sends the time of request, and order obtains described task queue in described second time interval after arrive first
Described Medical News send request send to perform Medical News send engine.
Preferably, described second time interval scope can be 0-30 minute, and the setting by the second time interval can
Ensure that Medical News request to be sent in task queue is sent in batches, swimmingly to targeted customer.
Step 208, described Medical News send the Medical News of engine reception described Medical News transmission platform transmission and send out
Send request, according to targeted customer's mark that Medical News sends in request, Medical News can be sent to targeted customer.
When step 209, targeted customer receive the Medical News that sender sends, mark based on callback instruction and targeted customer
Know and automatically generate the Medical News state callbacks notice carrying transmitting side marking, and feed back to described Medical News transmission platform.
Step 210, Medical News send the Medical News state callbacks of platform reception described Medical News transmission request and lead to
Know, and described Medical News state callbacks notice is sent to corresponding Medical News sender.
Medical News state callbacks notice herein represents that described Medical News is successfully transmitted targeted customer, and described doctor
Treat and the state callbacks notice that Medical News transmission is failed when message does not sends targeted customer, can be produced.
Step 211, the request that sent by described Medical News send after sending engine to Medical News, at readjustment time threshold
When inside not receiving the Medical News state callbacks notice that described Medical News sends request, retransmit once every the 3rd time interval
Described Medical News sends a request to described Medical News and sends engine.
Preferably, described readjustment time threshold is 1-5 minute.It is highly preferred that arrange described Medical News to send request
Sending times is 3-10 time, after the sending times exceeding the transmission request of described Medical News, to the transmission of described Medical News
Side's feedback Medical News sends failed state callbacks notice.
The method sending Medical News based on random message queue described in the present embodiment, sends based on random message queue
Medical News is to user, and receives the feedback notification of user, carries out message retransmission when message sends unsuccessful, it is ensured that medical treatment disappears
Breath can send accurately and timely to user.
Embodiment 3
As it is shown on figure 3, the structure of the system for sending Medical News based on random message queue described in the present embodiment is shown
It is intended to.System based on random message queue transmission Medical News described in the present embodiment is used for implementing described in above-described embodiment
The method sending Medical News based on random message queue.
Described in the present embodiment, system based on random message queue transmission Medical News includes: Medical News sends request
Receiver module 301, Medical News send request and choose module 302, Medical News transmission request queue generation module 303, medical treatment
Message sends request queue and performs module 304 and Medical News state callbacks notification module 305.
Wherein, described Medical News sends request receiver module 301 and chooses module 302 with the transmission request of described Medical News
Rhizoma Nelumbinis connects phase, for sending platform at Medical News, receives and sends request for the Medical News sending Medical News to user.
Described Medical News sends request and chooses module 302 and described Medical News transmission request receiver module 301 and doctor
Treat message transmission request queue generation module 303 phase Rhizoma Nelumbinis to connect, for, in the very first time interval set, obtaining randomly
Generate the very first time interval that Medical News sends the Medical News queue of request queue;Send by receiving described Medical News
The time of request, the described Medical News that order obtains in the described very first time is spaced after arriving first sends request.
Described Medical News sends request queue generation module 303 and chooses module 302 with the transmission request of described Medical News
And Medical News sends request queue execution module 304 phase Rhizoma Nelumbinis and connects, being used for will be in the described medical treatment in the described very first time is spaced
Message sends request and sends to the task queue of Medical News transmission.
Described Medical News sends request queue and performs module 304 and described Medical News transmission request queue generation module
303 and Medical News state callbacks notification module 305 phase Rhizoma Nelumbinis connect, for according to Medical News sending strategy set in advance, from
Described task queue obtains corresponding described Medical News and sends request, and send to Medical News transmission engine.
Described Medical News state callbacks notification module 305 and described Medical News send request queue and perform module 304
Rhizoma Nelumbinis connects phase, sends the Medical News state callbacks notice of request for receiving described Medical News, and by described Medical News shape
State readjustment notice sends to corresponding Medical News sender.
Described Medical News sends request queue and performs module 304, is further used for:
According to the second time interval set in advance in described task queue, receive described medical treatment by described task queue
Message sends the time of request, the described doctor that order obtains described task queue in described second time interval after arriving first
Treat message and send request transmission to Medical News transmission engine.
Described Medical News sends request queue and performs module 304, is further used for:
By Nginx load strategy above or equal to 2 Medical News send engine by resource degree from big to small
Sequence, selects a Medical News to send engine according to described resource degree clooating sequence and draws as performing Medical News transmission
Hold up;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News
The request of transmission sends to described execution Medical News transmission engine.
Described Medical News sends request queue and performs module 304, is additionally operable to:
Detect selected Medical News send the network of engine obstructed or abnormal time, arrange according to described resource degree
Sequence, order is chosen the Medical News transmission engine later Medical News transmission engine of described selection and is sent out as performing Medical News
Send engine;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News
Send request, and send to described execution Medical News transmission engine.
This system also includes: Medical News sends request repeat module 306 and notifies mould with described Medical News state callbacks
Phase Rhizoma Nelumbinis connects block 305, is used for:
The request that sent by described Medical News sends after sending engine to Medical News, does not receives in readjustment time threshold
When described Medical News sends the Medical News state callbacks notice of request, retransmit the most described medical treatment every the 3rd time interval
Message sends a request to described Medical News and sends engine.
As shown in Figure 4, pass for information in system based on random message queue transmission Medical News described in the present embodiment
Defeated schematic diagram.In the diagram, Medical News sender 401 generates Medical News transmission request Concurrency and delivers to Medical News transmission
Platform 402;Medical News send platform 402 receive Medical News send request according to predetermined policy choose Medical News send please
Ask and join in the task queue 403 that Medical News sends platform 402;Task queue 403 is according to the setting plan in task queue
Slightly choose Medical News and send request transmission to Medical News transmission engine 404;Medical News sends engine 404 and will receive
Medical News sends the Medical News carried in request and sends to user 405;User 405 generates state callbacks notice the most anti-
It is fed to Medical News and sends platform 402, Medical News send platform 402 and be conveyed to Medical News sender 401.
By each embodiment above, the present invention sends the method for Medical News based on random message queue and is
System, exists and provides the benefit that:
(1) method and system sending Medical News based on random message queue of the present invention, send out at Medical News
Send on platform in the range of the timing sending message, the timed length of the random transmission message request obtaining this, according to
The transmission message request timed length obtained sends from message and obtains the transmission request transmission of corresponding Medical News request set
To task queue, form random message queue, perform the transmission of Medical News according to random message queue, pass through message queue
Change transmission solves transmission message simultaneously and causes message to send failed problem.
(2) method and system sending Medical News based on random message queue of the present invention, based on random message
Queue sends Medical News to user, and receives the feedback notification of user, carries out message retransmission, really when message sends unsuccessful
Protect Medical News can send accurately and timely to user.
(3) method and system sending Medical News based on random message queue of the present invention, in conjunction with multiple message
Send server, therefrom choose the optimum message of resource and send the transmission of server execution Medical News, and current detecting
When message transmission server is unavailable, it is switched to other message and sends server, it is ensured that Medical News can send accurately and timely
To user, reduce the resource occupation problem of message retransmission simultaneously.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, device or computer program
Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code
The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of product.
Although by example, some specific embodiments of the present invention have been described in detail, but the skill of this area
Art personnel are it should be understood that example above is merely to illustrate rather than in order to limit the scope of the present invention.The skill of this area
Art personnel are it should be understood that can modify to above example without departing from the scope and spirit of the present invention.This
Bright scope is defined by the following claims.
Claims (10)
1. the method sending Medical News based on random message queue, it is characterised in that including:
Send on platform at Medical News, receive and send request for the Medical News sending Medical News to user;
In the very first time interval set, obtain the Medical News team generating Medical News transmission request queue randomly
The very first time interval of row;By receiving described Medical News and send time of request, order obtains described the after arrive first
Described Medical News in one time interval sends request;
Described Medical News in being spaced in the described very first time sends request and sends the task queue sent to Medical News
In;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News send
Request, and send to Medical News transmission engine;
Receive described Medical News and send the Medical News state callbacks notice of request, and described Medical News state callbacks is led to
Know the Medical News sender sent to corresponding.
The method sending Medical News based on random message queue the most according to claim 1, it is characterised in that according in advance
The Medical News sending strategy first set, obtain from described task queue corresponding described Medical News send request send to
Medical News sends engine, is further:
According to the second time interval set in advance in described task queue, receive described Medical News by described task queue
Sending the time of request, the described medical treatment that order obtains described task queue in described second time interval after arriving first disappears
Breath sends request and sends to Medical News transmission engine.
The method sending Medical News based on random message queue the most according to claim 1, it is characterised in that further
Including:
The request that sent by described Medical News sends after sending engine to Medical News, does not receives described in readjustment time threshold
When Medical News sends the Medical News state callbacks notice of request, retransmit the most described Medical News every the 3rd time interval
Send a request to described Medical News and send engine.
The method sending Medical News based on random message queue the most according to claim 1, it is characterised in that according in advance
The Medical News sending strategy first set, obtains corresponding described Medical News from described task queue and sends request, concurrently
Deliver to Medical News and send engine, be further:
Sorted from big to small by resource degree above or equal to the Medical News transmission engine of 2 by Nginx load strategy,
Select a Medical News to send engine according to described resource degree clooating sequence and send engine as performing Medical News;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News send
Request sends to described execution Medical News transmission engine.
The method sending Medical News based on random message queue the most according to claim 4, it is characterised in that further
Including:
Detect selected Medical News send the network of engine obstructed or abnormal time, sort according to described resource degree, suitable
Sequence is chosen the Medical News transmission engine later Medical News transmission engine of described selection and is drawn as performing Medical News transmission
Hold up;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News send
Request, and send to described execution Medical News transmission engine.
6. the system sending Medical News based on random message queue, it is characterised in that including: Medical News sends request
Module is chosen in the transmission request of receiver module, Medical News, Medical News sends request queue generation module, Medical News sends please
Queue is asked to perform module and Medical News state callbacks notification module;Wherein,
Described Medical News sends request receiver module, for sending platform at Medical News, receives for sending to user
The Medical News of Medical News sends request;
Described Medical News sends request and chooses module, for, in the very first time interval set, obtaining life randomly
Become the very first time interval of the Medical News queue of Medical News transmission request queue;Please by receiving the transmission of described Medical News
The time asked, the described Medical News that order obtains in the described very first time is spaced after arriving first sends request;
Described Medical News sends request queue generation module, the described Medical News in being spaced in the described very first time
The request of transmission sends to the task queue of Medical News transmission;
Described Medical News sends request queue and performs module, for according to Medical News sending strategy set in advance, from institute
State and task queue obtains the transmission request of corresponding described Medical News, and send to Medical News transmission engine;
Described Medical News state callbacks notification module, the Medical News state sending request for receiving described Medical News is returned
Adjust notice, and described Medical News state callbacks notice is sent to corresponding Medical News sender.
The system sending Medical News based on random message queue the most according to claim 6, it is characterised in that described doctor
Treat message and send request queue execution module, be further used for:
According to the second time interval set in advance in described task queue, receive described Medical News by described task queue
Sending the time of request, the described medical treatment that order obtains described task queue in described second time interval after arriving first disappears
Breath sends request and sends to Medical News transmission engine.
The system sending Medical News based on random message queue the most according to claim 6, it is characterised in that also wrap
Include: Medical News sends request repeat module, is used for:
The request that sent by described Medical News sends after sending engine to Medical News, does not receives described in readjustment time threshold
When Medical News sends the Medical News state callbacks notice of request, retransmit the most described Medical News every the 3rd time interval
Send a request to described Medical News and send engine.
The system sending Medical News based on random message queue the most according to claim 6, it is characterised in that described doctor
Treat message and send request queue execution module, be further used for:
Sorted from big to small by resource degree above or equal to the Medical News transmission engine of 2 by Nginx load strategy,
Select a Medical News to send engine according to described resource degree clooating sequence and send engine as performing Medical News;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News send
Request sends to described execution Medical News transmission engine.
The system sending Medical News based on random message queue the most according to claim 9, it is characterised in that described
Medical News sends request queue and performs module, is further used for:
Detect selected Medical News send the network of engine obstructed or abnormal time, sort according to described resource degree, suitable
Sequence is chosen the Medical News transmission engine later Medical News transmission engine of described selection and is drawn as performing Medical News transmission
Hold up;
According to Medical News sending strategy set in advance, from described task queue, obtain corresponding described Medical News send
Request, and send to described execution Medical News transmission engine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610918232.4A CN106330688B (en) | 2016-10-21 | 2016-10-21 | The method and system of Medical News are sent based on random message queue |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610918232.4A CN106330688B (en) | 2016-10-21 | 2016-10-21 | The method and system of Medical News are sent based on random message queue |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106330688A true CN106330688A (en) | 2017-01-11 |
CN106330688B CN106330688B (en) | 2019-06-25 |
Family
ID=57818023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610918232.4A Expired - Fee Related CN106330688B (en) | 2016-10-21 | 2016-10-21 | The method and system of Medical News are sent based on random message queue |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106330688B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346827A (en) * | 2020-11-12 | 2021-02-09 | 食亨(上海)科技服务有限公司 | Data consistency method and device for multi-transaction system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242564A (en) * | 2007-02-05 | 2008-08-13 | 田蕊 | Broadcasting and receiving method for mobile wireless self-organized network message and applied terminal node |
CN101373474A (en) * | 2008-09-02 | 2009-02-25 | 北京开拓天际信息技术有限公司 | Magnanimity data real time processing structure and real time processing platform following with necessaries for the same |
CN101651526A (en) * | 2008-08-14 | 2010-02-17 | 武汉光发科技有限公司 | Method for transmitting messages between network equipment |
CN103138886A (en) * | 2011-12-05 | 2013-06-05 | 深圳迈瑞生物医疗电子股份有限公司 | Pre-hospital emergency end, pre-hospital emergency system and data transmission method of pre-hospital emergency end |
-
2016
- 2016-10-21 CN CN201610918232.4A patent/CN106330688B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242564A (en) * | 2007-02-05 | 2008-08-13 | 田蕊 | Broadcasting and receiving method for mobile wireless self-organized network message and applied terminal node |
CN101651526A (en) * | 2008-08-14 | 2010-02-17 | 武汉光发科技有限公司 | Method for transmitting messages between network equipment |
CN101373474A (en) * | 2008-09-02 | 2009-02-25 | 北京开拓天际信息技术有限公司 | Magnanimity data real time processing structure and real time processing platform following with necessaries for the same |
CN103138886A (en) * | 2011-12-05 | 2013-06-05 | 深圳迈瑞生物医疗电子股份有限公司 | Pre-hospital emergency end, pre-hospital emergency system and data transmission method of pre-hospital emergency end |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346827A (en) * | 2020-11-12 | 2021-02-09 | 食亨(上海)科技服务有限公司 | Data consistency method and device for multi-transaction system |
CN112346827B (en) * | 2020-11-12 | 2023-05-02 | 食亨(上海)科技服务有限公司 | Data consistency method and device for multi-transaction system |
Also Published As
Publication number | Publication date |
---|---|
CN106330688B (en) | 2019-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190199658A1 (en) | Relay chatbot linked to multiple chatbots | |
CN101605108B (en) | Method, system and apparatus for instant communication | |
CN103019866B (en) | Distributed method and system based on message queue | |
CN107070613B (en) | Reliable data transmission method in distributed network environment | |
CN103685384A (en) | User authentication method and device for preventing malicious harassment | |
US20090165018A1 (en) | Leader election | |
CN108228363A (en) | A kind of message method and device | |
CN105991412A (en) | Method and device for pushing message | |
CN105868032A (en) | Message processing system and method supporting multi-system access | |
KR20190099532A (en) | Method for controlling media downlink transmission and related apparatus | |
CN109194723A (en) | Communication means, safe examination system, server and computer storage medium | |
US11709900B2 (en) | Automated web page accessing | |
CN108833443A (en) | A kind of method for message transmission and system, computer equipment | |
CN103795642B (en) | Load balancing method and device | |
CN106330688A (en) | Method and system for sending medical message based on random message queue | |
CN103580817B (en) | A kind of data transmission method, device, system and relevant device | |
CN105933217B (en) | Message synchronization method and platform, network server and adaptive server | |
CN110012051A (en) | Notify method for pushing, device, terminal device, server and system | |
CN102368766A (en) | Instant messaging tool login method and system thereof | |
CN105099738B (en) | Data capture method, apparatus and system | |
CN109858343A (en) | A kind of control method based on recognition of face, device and storage medium | |
CN106921619B (en) | Associated event processing method and device | |
CN101808003A (en) | Client, system and method for providing instant communication | |
CN108075870A (en) | The method and apparatus that carrier aggregation is dispatched between standing | |
CN107203604A (en) | A kind of data distribution management method, platform, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190625 Termination date: 20201021 |