CN109120713A - Message sends the processing method and system, device and storage medium of failure - Google Patents
Message sends the processing method and system, device and storage medium of failure Download PDFInfo
- Publication number
- CN109120713A CN109120713A CN201811108027.7A CN201811108027A CN109120713A CN 109120713 A CN109120713 A CN 109120713A CN 201811108027 A CN201811108027 A CN 201811108027A CN 109120713 A CN109120713 A CN 109120713A
- Authority
- CN
- China
- Prior art keywords
- message
- failure
- retransmitted
- autotask
- sends
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses the processing methods that a kind of message sends failure, which comprises determines that message sends failure;Reserve autotask;The message that the number of the autotask and needs are retransmitted is associated;Backstage poll is waited, the message for needing to retransmit is matched according to the number of the autotask and carries out asynchronous transmission.The message that the number of autotask and needs are retransmitted is associated by method of the invention, the efficiency for improving repeating transmission is made by way of the poll of backstage, while reducing the influence to system entirety.It bypasses and sends in conjunction with message, the reliability of message retransmission has been effectively ensured, and the method disclosed in the present can be adapted for the case where transmission failure news is retransmitted in a plurality of or certain time period.
Description
Technical field
The present invention relates to information technology fields, more particularly, be related to a kind of message send failure processing method and
System, equipment and storage medium.
Background technique
Increasingly deep with informatization, more and more enterprises initially enter the stage of good application.And it calculates
The development of machine and network technology, so that distributed information system increasingly obtains extensive concern, and it is each to be gradually applied to every profession and trade
In the software systems of enterprise.Message-oriented middleware plays vital role in the crucial application of many industries, such as in political affairs
Business industry province, city, the transmitting exchange of county's multi-stage data summarize;Financial industry, the national ticket of People's Bank of China hand over image exchange system
System and small amount payment system;In transportation industry, the ship and crew management system of marine board;In energy industry, national grid is public
Take charge of information project integration firm grade information integrated platform.
Since the distributed system of many industries and field is built in extremely complex network environment, and message-oriented middleware
Using sender, the framework of ----message server ----consumer carries out the transmitting of message, during network communication, inevitably
The suspension for having network fluctuation or even a period of time causes message transmission to fail, in this regard, abnormal failure is handled, just seems especially heavy
It wants.
It in existing message-oriented middleware technology, directly waits and retrying mostly when message sends failure, constantly carry out weight
Hair, can throw into dead letter queue for the message after a time out.This method causes the waste of system resource, meanwhile, to message retransmission
Sending method it is few, not flexible, control is also little, not can guarantee the reliability of message retransmission.
Summary of the invention
In order to solve the above-mentioned problems in the prior art, the present invention provides the processing sides that a kind of message sends failure
Method and system, equipment and storage medium reduce the influence to system entirety while promoting the efficiency retransmitted.
Embodiment according to the present invention provides a kind of processing method of message transmission failure, which comprises really
Determine message and sends failure;Reserve autotask;The message that the number of the autotask and needs are retransmitted is associated;It waits
Backstage poll matches the message for needing to retransmit according to the number of the autotask and carries out asynchronous transmission.
In certain embodiments of the present invention, the method also includes: need the content of message retransmitted to add for described
Enter in message;Asynchronous transmission is carried out by service call mode.
In certain embodiments of the present invention, the message that the needs are retransmitted includes: to send in the period of failure
Message or the corresponding message of business flowing water list for sending failure.
In certain embodiments of the present invention, the method also includes: according to the quantity of message for needing to retransmit
The message retransmitted is needed to split into multiple message packages by described;The message package is subjected to the pre- of the autotask in sequence
About.
Embodiment according to the present invention provides a kind of processing system of message transmission failure, the system comprises: it is pre-
About module for determining that message sends failure, and reserves autotask;Relating module, for by the number of the autotask
The message retransmitted with needs is associated;Sending module is matched for waiting backstage poll according to the number of the autotask
The message for needing to retransmit carries out asynchronous transmission out.
In certain embodiments of the present invention, the system also includes message sending modules, for needing weight for described
During the content of the message of hair joins message, asynchronous transmission is carried out by service call mode.
In certain embodiments of the present invention, the message that the needs are retransmitted includes: to send in the period of failure
Message or the corresponding message of business flowing water list for sending failure.
In certain embodiments of the present invention, the reservation module is also used to: according to the message for needing to retransmit
Quantity needs the message retransmitted to split into multiple message packages for described;The message package is subjected to the autotask in sequence
Reservation.
It is described to deposit meanwhile the present invention provides the processing unit that a kind of message sends failure, including memory and processor
Reservoir is for storing one or more computer instruction;The processor for call one or more computer instruction from
And execute the processing method that any one of aforementioned message sends failure.
The present invention also provides a kind of computer storage medium, it is stored with one or more computer program, described one
Or a plurality of computer program realizes that any one of aforementioned message sends the processing method of failure when calling.
The message that the number of autotask and needs are retransmitted is associated by method of the invention, passes through the side of backstage poll
Formula makes the efficiency for improving repeating transmission, while reducing the influence to system entirety.It bypasses and sends in conjunction with message, be effectively ensured and disappeared
The reliability retransmitted is ceased, and the method disclosed in the present can be adapted for disappearing to transmission failure in a plurality of or certain time period
The case where breath is retransmitted.
Detailed description of the invention
To facilitate the understanding of the present invention, the present invention is carried out specifically below by way of specific embodiment and in conjunction with attached drawing
It is bright.
Fig. 1 is the flow diagram that a kind of message of embodiment according to the present invention sends the processing method of failure;
Fig. 2 is the block diagram that a kind of message of embodiment according to the present invention sends the processing system of failure.
Specific embodiment
It is described in detail to various aspects of the present invention below in conjunction with the drawings and specific embodiments.Wherein, many institute's weeks
Module, unit and its mutual connection, link, communication or the operation known are not shown or do not elaborate.Also, institute
Feature, framework or the function of description can combine in any way in one or more embodiments.Those skilled in the art
Member is it should be appreciated that following various embodiments are served only for the protection scope for example, and is not intended to limit the present invention.May be used also
To be readily appreciated that, module or unit or processing mode in each embodiment described herein and shown in the drawings can by it is various not
It is combined and designs with configuration.
Fig. 1 is the flow diagram that a kind of message of embodiment according to the present invention sends the processing method of failure, at this
In the embodiment of invention, referring to Fig.1, this method is specifically included:
100: determining that message sends failure;
101: reservation autotask;
102: the message that the number of the autotask and needs are retransmitted is associated;
103: wait backstage poll, according to the number of the autotask match the message that retransmits of needs into
Line asynchronous is sent.
In embodiments of the present invention, if message sends failure, when being retransmitted, then it will do it autotask
Reservation, autotask is numbered and is associated with the message.It is asynchronous to have adjusted this automatic by the poll of backstage autotask
Business, and the message for needing to send is matched by autotask number, carry out message transmission.Relative to directly retransmission at present
Mode, embodiments of the present invention by way of the message that will need to retransmit is by autotask carry backstage, after waiting
Chaptrel is ask, and the occupancy to system resource is reduced.Meanwhile the mode of asynchronous transmission also reduces the influence to system entirety.
In addition, in embodiments of the present invention, can also carry out message bypass while carrying out autotask repeating transmission
It sends, to ensure the reliability of message retransmission.Specific processing is as follows: the content for needing the message retransmitted is joined message
In;Asynchronous transmission is carried out by service call mode.Preferably, it can be sent using the message of http form.
In embodiments of the present invention, the message for needing to retransmit includes: the message or hair sent in the period of failure
Send the corresponding message of business flowing water list of failure.In network fluctuation or suspension, a large amount of transmission failure news can be generated.This
When, the message retransmission or the corresponding message retransmission of business flowing water list in certain period of time can be carried out by the script of offer.
Specifically, matching corresponding message according to the list of initial time and end time or flowing water, being retransmitted.Equally
, which is asynchronous transmission, and processing logic is the message number sent according to needs, and the message sent to needs is torn open
Point, be split as multiple message packages, and carry out autotask reservation according to fractionation sequence, by backstage autotask tune rise into
Line asynchronous is retransmitted.
Simultaneously as message-oriented middleware carries out message using the framework of sender ----message server ----consumer
Transmitting, in information consumption, if consumption service device generates exception and message is caused to send failure, not consuming message can be in message
Server, which generates, to be overstock, and after consumption service device restores normal, can instantaneously have a large amount of message to pour in consuming thread, if this
A little message are not nonessential role consumption or the exigent message of instantaneity, not only increase server process pressure at this time,
Also result in the lag of message.In embodiments of the present invention, the consumption progress function of reset that consumer can be used, abandons this
All information consumptions during exception, are consumed since subsequent time latest news.In addition, needs are paid special attention to
Message scenario, can be by script, by carrying out the case where inquiry of consumption progress is to grasp the message on message server.
The message that the number of autotask and needs are retransmitted is associated by embodiments of the present invention, passes through backstage poll
Mode make the efficiency for improving repeating transmission, while reducing the influence to system entirety.It bypasses and sends in conjunction with message, be effectively ensured
The reliability of message retransmission, and the method disclosed in the present can be adapted for sending failure in a plurality of or certain time period
Message the case where being retransmitted.
Fig. 2 is that the block diagram that a kind of message of embodiment according to the present invention sends the processing system 1 of failure should referring to Fig. 2
Data-storage system 1 includes: reservation module 11, for determining that message sends failure, and reserves autotask;Relating module 12,
Message for retransmitting the number of autotask and needs is associated;Sending module 13, for waiting backstage poll, according to
The number of autotask matches the message for needing to retransmit and carries out asynchronous transmission.
In embodiments of the present invention, which sends the processing system 1 of failure further include: message sending module 14,
Used in the content for the message for needing to retransmit to join message, asynchronous transmission is carried out by service call mode
In embodiments of the present invention, the message for needing to retransmit includes: the message or hair sent in the period of failure
Send the corresponding message of business flowing water list of failure.
In embodiments of the present invention, the quantity for the message that reservation module 11 is also used to retransmit as needed will need weight
The message of hair splits into multiple message packages;Message package is carried out to the reservation of autotask in sequence.
Optionally, embodiment of the present invention provides a kind of processing unit of message transmission failure, the data storage device
Including memory, for storing one or more computer instruction;Processor, for call one or more computer instruction from
And execute the processing method that message provided by aforementioned embodiments of the present invention or implementation sends failure.Optionally, at this
In a kind of implementation of invention embodiment, the processing unit that message sends failure can also include for carrying out data communication
Input/output interface.For example, processing unit can be intelligent terminal, server etc..
Embodiment of the present invention additionally provides a kind of computer storage medium, is stored with one or more computer instruction,
Message for realizing that aforementioned embodiments of the present invention or implementation are provided when calling sends the processing method to fail.Example
Such as, storage medium may include hard disk, floppy disk, CD etc..
Although illustrating some embodiments herein, it, can be right under the premise of not departing from essence of the present invention
These embodiments carry out various modifications, and all these deformations still fall within design of the invention, and fall into right of the present invention and want
Protection scope defined by asking.
Specific embodiment disclosed herein is only used for illustrating the present invention, to those skilled in the art,
Obviously can carry out various modifications according to the teaching of this article, can using it is various it is equivalent by the way of implement the present invention, therefore, this hair
Bright specific embodiment disclosed above is only exemplary, and protection scope is not by construction or design disclosed herein
Details is limited, unless being otherwise noted in the claims.Therefore, specific illustrative embodiment disclosed above can carry out
Various replacements, combination or modification, all deformations are both fallen in range disclosed herein.It is not specifically disclosed herein lacking
Any element or in the case where lacking optional component disclosed herein, disclosed message exemplified here sends the place of failure
Reason method and system, device and storage medium can be still appropriately carried out.All numerical value and range disclosed above can also carry out
Certain variation.Whenever disclosing the numberical range with lower and upper limit, any numerical value for falling within the scope of this and any wrapped
The range contained is all specifically disclosed.Specifically, any range of numerical value disclosed herein can be regarded as listing packet
Any value and range being contained in broader numerical.Equally, unless applicant is explicitly and clearly defined otherwise, right is wanted
Term in asking has their clear, common meaning.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
The mode of software combination hardware platform is realized.Based on this understanding, technical solution of the present invention makes tribute to background technique
That offers can be embodied in the form of software products in whole or in part, which can store is situated between in storage
In matter, such as ROM/RAM, magnetic disk, CD, including some instructions use is so that a computer equipment (can be individual calculus
Machine, server or network equipment etc.) execute each embodiment of the present invention or embodiment certain parts method.
In addition, the quantity of the component in claims includes one or at least one, unless otherwise indicated.If this hair
Word or term in bright in other documents usage or meaning there are inconsistent, then should be to be with defined in the present invention
It is quasi-.
Claims (10)
1. the processing method that a kind of message sends failure, which is characterized in that the described method includes:
Determine that message sends failure;
Reserve autotask;
The message that the number of the autotask and needs are retransmitted is associated;
Backstage poll is waited, the message for needing to retransmit is matched according to the number of the autotask and carries out asynchronous hair
It send.
2. the method as described in claim 1, which is characterized in that the method also includes:
It is needed described during the content of message retransmitted joins message;
Asynchronous transmission is carried out by service call mode.
3. the method as described in claim 1, which is characterized in that
The message that the needs are retransmitted includes: the message sent in the period of failure or the business flowing water list pair for sending failure
The message answered.
4. method as claimed in claim 3, which is characterized in that the method also includes:
The message retransmitted is needed to split into multiple message packages by described according to the quantity for needing the message retransmitted;
The message package is carried out to the reservation of the autotask in sequence.
5. the processing system that a kind of message sends failure, which is characterized in that the system comprises:
Reservation module for determining that message sends failure, and reserves autotask;
Relating module, the message for retransmitting the number of the autotask and needs are associated;
Sending module matches what the needs retransmitted according to the number of the autotask for waiting backstage poll
Message carries out asynchronous transmission.
6. system as claimed in claim 5, which is characterized in that the system also includes:
Message sending module, for being needed described during the content of message retransmitted joins message, by service call mode into
Line asynchronous is sent.
7. system as claimed in claim 5, which is characterized in that
The message that the needs are retransmitted includes: the message sent in the period of failure or the business flowing water list pair for sending failure
The message answered.
8. system as claimed in claim 7, which is characterized in that the reservation module is also used to:
The message retransmitted is needed to split into multiple message packages by described according to the quantity for needing the message retransmitted;
The message package is carried out to the reservation of the autotask in sequence.
9. a kind of message sends the processing unit of failure, including memory and processor, which is characterized in that
The memory is for storing one or more computer instruction;
The processor is for calling one or more computer instruction thereby executing any one of such as claim 1-5 institute
The message stated sends the processing method of failure.
10. a kind of computer storage medium is stored with one or more computer program, which is characterized in that described one or more
Computer program executes the processing method that message according to any one of claims 1 to 5 sends failure when calling.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811108027.7A CN109120713A (en) | 2018-09-21 | 2018-09-21 | Message sends the processing method and system, device and storage medium of failure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811108027.7A CN109120713A (en) | 2018-09-21 | 2018-09-21 | Message sends the processing method and system, device and storage medium of failure |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109120713A true CN109120713A (en) | 2019-01-01 |
Family
ID=64856129
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811108027.7A Pending CN109120713A (en) | 2018-09-21 | 2018-09-21 | Message sends the processing method and system, device and storage medium of failure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120713A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918213A (en) * | 2019-02-21 | 2019-06-21 | 北京奇艺世纪科技有限公司 | A kind of message treatment method, device and server |
CN110336854A (en) * | 2019-05-08 | 2019-10-15 | 重庆八戒电子商务有限公司 | A kind of internet financial work message transmission system, method and device |
CN111211973A (en) * | 2020-01-15 | 2020-05-29 | 百望股份有限公司 | Information processing method and device in invoice field and storage medium |
CN113422739A (en) * | 2021-06-21 | 2021-09-21 | 上海哔哩哔哩科技有限公司 | Data transmission method, sending end and data transmission system |
CN113794744A (en) * | 2021-01-29 | 2021-12-14 | 北京京东拓先科技有限公司 | Message processing method and related equipment |
CN113965624A (en) * | 2020-06-29 | 2022-01-21 | 中国电信股份有限公司 | Method for processing message, message caching middleware and service system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105743978A (en) * | 2016-01-29 | 2016-07-06 | 武汉联影医疗科技有限公司 | Data transmitting method |
CN106912034A (en) * | 2017-04-27 | 2017-06-30 | 努比亚技术有限公司 | A kind of SMS processing, system and terminal |
CN108228363A (en) * | 2017-12-22 | 2018-06-29 | 中国银联股份有限公司 | A kind of message method and device |
-
2018
- 2018-09-21 CN CN201811108027.7A patent/CN109120713A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105743978A (en) * | 2016-01-29 | 2016-07-06 | 武汉联影医疗科技有限公司 | Data transmitting method |
CN106912034A (en) * | 2017-04-27 | 2017-06-30 | 努比亚技术有限公司 | A kind of SMS processing, system and terminal |
CN108228363A (en) * | 2017-12-22 | 2018-06-29 | 中国银联股份有限公司 | A kind of message method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918213A (en) * | 2019-02-21 | 2019-06-21 | 北京奇艺世纪科技有限公司 | A kind of message treatment method, device and server |
CN110336854A (en) * | 2019-05-08 | 2019-10-15 | 重庆八戒电子商务有限公司 | A kind of internet financial work message transmission system, method and device |
CN111211973A (en) * | 2020-01-15 | 2020-05-29 | 百望股份有限公司 | Information processing method and device in invoice field and storage medium |
CN113965624A (en) * | 2020-06-29 | 2022-01-21 | 中国电信股份有限公司 | Method for processing message, message caching middleware and service system |
CN113794744A (en) * | 2021-01-29 | 2021-12-14 | 北京京东拓先科技有限公司 | Message processing method and related equipment |
CN113422739A (en) * | 2021-06-21 | 2021-09-21 | 上海哔哩哔哩科技有限公司 | Data transmission method, sending end and data transmission system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109120713A (en) | Message sends the processing method and system, device and storage medium of failure | |
US10963962B2 (en) | Offload processing of data packets containing financial market data | |
CN104579905B (en) | Message delivery method and system and MOM servers, receiving terminal | |
CN101022431B (en) | Interface gateway and interface gateway data processing method | |
CN101282227B (en) | Method, concentrating control equipment and system for charging service | |
CN101483613B (en) | Method and device for providing QoS control capability to presenting server, and system thereof | |
US6920476B2 (en) | Messaging system for computers | |
JP2009531749A (en) | Method and apparatus for reliable message notification between systems | |
US20130191680A1 (en) | Handling of messages in a message system | |
GB2533562A (en) | An interface, method and computer program product for controlling the transfer of electronic messages | |
CN106878197A (en) | A kind of management system and method for the transmission of cloud platform message | |
CN110221927A (en) | Asynchronous message processing method and device | |
CN102957594A (en) | Message queue-based message processing method, related device and system | |
US8577984B2 (en) | State management in a distributed computing system | |
CN107809480A (en) | One kind transaction commutation system | |
CN104052677A (en) | Soft load balancing method and apparatus of single data source | |
CN109067669A (en) | Synchronization call method and application based on asynchronous interface | |
CN108762945A (en) | A kind of implementation method for supporting a variety of message queues | |
CN103036885A (en) | Session initiation protocol (SIP) server overload protective system and method | |
CN103067184A (en) | Exception handling method of offline charging and system | |
CN101925882A (en) | Method of improving replica server performance and replica server system | |
EP1952318B1 (en) | Independent message stores and message transport agents | |
CN111049730A (en) | RabbitMQ message retransmission and power of consumption idempotent solution method | |
CN102164384A (en) | Method, device and system for improving service success rate | |
CN115499501A (en) | Message pushing method, system, service gateway and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190101 |