CN107222530A - Service asynchronous exchange method, equipment, system and computer-readable recording medium - Google Patents
Service asynchronous exchange method, equipment, system and computer-readable recording medium Download PDFInfo
- Publication number
- CN107222530A CN107222530A CN201710366759.5A CN201710366759A CN107222530A CN 107222530 A CN107222530 A CN 107222530A CN 201710366759 A CN201710366759 A CN 201710366759A CN 107222530 A CN107222530 A CN 107222530A
- Authority
- CN
- China
- Prior art keywords
- message
- service
- communication information
- business operation
- exchange method
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- 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/214—Monitoring or handling of messages using selective forwarding
-
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention discloses a kind of service asynchronous exchange method, equipment, system and computer-readable recording medium, and the service asynchronous exchange method comprises the following steps:When receiving the service order of needs and another system progress service interaction, locally associated business operation is performed according to the service order;In business operation success, message call is notified and receiving module, the transmission information of the business operation is encapsulated as into communication information, the communication information includes message transaction ID and message sends and received agreement;The communication information is sent to the message queue disposed between another system, to be sent by the message queue to another system.Effect of the present invention with the stability of simultaneously operating between increase system.
Description
Technical field
The present invention relates to communication technical field, more particularly to service asynchronous exchange method, equipment, system and computer-readable recording medium.
Background technology
As the function and content of a system goes from strength to strength, single system can not support growing user's body
Amount.The concept of micro services is also to produce in such a case, it be instruct a system how to be divided into it is independent one by one
System, makes mutually to decouple between service, so as to improve the performance and stability of service.But how the problem of decoupling is primarily solved is
Ensure how the uniformity of multiple data among systems operations, that is, distributed transaction ensure the method for final consistency.Pass
The solution of system is exactly by synchronizing operation by HTTP request between each service, being if relating only to 1 to 2
System can be with stable operation.But more systems are when it come to arrived, once then some system goes wrong, other can be caused to be
System can also be involved.
The content of the invention
The main object of the present invention is to provide service asynchronous exchange method, equipment, system and computer-readable recording medium, it is intended to increase system
The stability of simultaneously operating between system.
To achieve the above object, a kind of service asynchronous exchange method proposed by the present invention, is handed over for business between multisystem
Mutually, the service asynchronous exchange method comprises the following steps:
When receiving the service order of needs and another system progress service interaction, sheet is performed according to the service order
Ground related service operation;
In business operation success, message call is notified and receiving module, and the transmission of the business operation is believed
Breath is encapsulated as communication information, and the communication information includes message transaction ID and message sends and received agreement;
The communication information is sent to the message queue disposed between another system, to pass through the message
Queue is sent to another system.
It is preferred that, in business operation success, the service asynchronous exchange method also includes step:
The business operation message of the business operation is recorded in presetting message record sheet, wherein, the business operation disappears
Breath includes the message transaction ID and pushes state;
When receiving from the return message that another system is returned for the communication information, returned according to described
The push state of business operation message described in information updating.
It is preferred that, the service asynchronous exchange method also comprises the following steps:
Message Record table described in automatic regular polling, inquiry push state is the communication information of failure;
When inquiring the communication information that push state is failure, the push state is carried out for the communication information of failure
Resend.
It is preferred that, the message queue uses rabbit message queue RabbitMQ.
A kind of service asynchronous interactive device that the present invention is provided, the service asynchronous interactive device includes processor, storage
Device and service asynchronous interactive program that is being stored on the holder and can running on a processor;The service asynchronous interaction
The step of above-mentioned service asynchronous exchange method is realized when program is by the computing device.
The computer-readable recording medium that the present invention is provided, reads for computer, and be stored with service asynchronous interaction on the computer-readable recording medium
Program, the service asynchronous interactive program realizes above-mentioned service asynchronous exchange method when being executed by processor the step of.
A kind of service asynchronous interactive system that the present invention is provided, including processor, memory and it is stored in the holder
On multiple systems to realize a variety of services, the service asynchronous interactive system also include be stored on the holder
For the message queue cluster being deployed between multiple systems;
The system realizes following steps when by the computing device:
When receiving the service order of needs and another system progress service interaction, phase is performed according to the service order
Close business operation;
In business operation success, message call is notified and receiving module, and the transmission of the business operation is believed
Breath is encapsulated as communication information, and the communication information includes message transaction ID and message sends and received agreement;
The communication information is sent to the message queue disposed between another system, to pass through the message queue
Send to another system;
The system is when by the computing device, in addition to realizes following steps:
Receive the communication information from another system;
Handled according to the communication information, and result is encapsulated as including message when being disposed and sent
With the return message for receiving agreement;
The return message is sent to the message queue, to be sent by the message queue to another system;
The message queue cluster realizes following steps when by the computing device:
When receiving the communication information of the system and returning to message, pass through service interaction between each system
The specified message queue used respectively come send the communication information and return message.
It is preferred that, the message queue cluster is when by the computing device, in addition to realizes the lasting of message queue
Change.
It is preferred that, a system also realizes following steps when by the computing device:
In business operation success, the business operation that the business operation is recorded in presetting message record sheet disappears
Breath, wherein, the business operation message includes the message transaction ID and pushes state;
When receiving from the return message that another system is returned for the communication information, according to the return message
Update the push state of the business operation message.
It is preferred that, a system also realizes following steps when by the computing device:
Message Record table described in automatic regular polling, inquiry push state is the communication information of failure;
When inquiring the communication information that push state is failure, the push state is carried out for the communication information of failure
Resend.
Service asynchronous exchange method provided by the present invention, equipment, system and computer-readable recording medium, by setting function single
System, locally executes its business, and be then by encapsulating and being transferred to goal systems by message queue by transmission information
Each leisure locally carries out local business logical operation, then result is sent to another system by way of message queue.Phase
For realizing the synchronization between system by http, the present embodiment realizes the asynchronous interactive between system, is capable of strengthening system
Stability;Further, it can allow decoupling between the service business of each system by RabbitMq, be adjusted without complicated http
Verified with interface.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Structure according to these accompanying drawings obtains other accompanying drawings.
Fig. 1 is the flow chart of service asynchronous exchange method first embodiment of the present invention;
Fig. 2 is the flow chart of service asynchronous exchange method second embodiment of the present invention;
Fig. 3 is the flow chart of service asynchronous exchange method 3rd embodiment of the present invention;
Fig. 4 is the module diagram of the embodiment of service asynchronous interactive device one of the present invention;
Fig. 5 is the module diagram of the embodiment of computer-readable recording medium one of the present invention;
Fig. 6 is the module diagram of the embodiment of service asynchronous interactive system one of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
It refer to Fig. 1, service asynchronous exchange method first embodiment of the present invention, for service interaction between multisystem, institute
Service asynchronous exchange method is stated to comprise the following steps:
Step S101, when receiving the service order of needs and another system progress service interaction, according to the business
Instruction performs locally associated business operation.
For example, when user have activated neck certificate business in neck certificate system, then leading certificate system to perform the business of the neck certificate;And be somebody's turn to do
The business of neck certificate will be used for form ordering system, for implementing cash deduction business in form ordering system.Then above-mentioned neck certificate business is needed
Service interaction is carried out with form ordering system.When leading certificate system to receive execution neck certificate service order, it is performed locally the industry
Business is until the service ending, such as show neck certificate animation, and the neck certificate amount of money, and the successfully prompting etc. of neck certificate to user.
Step S102, in business operation success, message call is notified and receiving module, by the business operation
Transmission information be encapsulated as communication information, the communication information includes message transaction ID and message sends and received agreement.
Continue to illustrate using above-mentioned neck certificate business as example:When user's activation neck certificate business, certificate system is led by examination & verification, and
Do not find user have it is any do not conform to rule part, then the reward voucher can be received by representing user.Then neck certificate system, which is performed, provides excellent
The step of favour certificate, now judge business operation success.If user does not meet the requirement for getting reward voucher, refuse to provide to user
Reward voucher, now judges business operation failure.In neck certificate system, neck certificate system can singly complete its function, without closing
Whether heart form ordering system can correctly handle received coupon message, so as to lead, certificate systemic-function is more single, and structure is simpler
Singly realize the neck certificate function of itself.Further, when user obtains reward voucher, the reward voucher needs and form ordering system
Communication, therefore lead your system of certificate to need to generate a transmission information, form ordering system is notified, the user has reward voucher.
And the transmission information, by notifying to form with receiving module encapsulation.Specifically, the message informing and receiving module
Effect mainly generates a unique message transaction ID, is used for global message, to reach the purpose for distinguishing each message;
This other module can according to specific message queue interface grammer, the method for encapsulating transmission and the receiving of good news externally provides
Service.This module can as message call between all systems shared module.I.e. the notice and receiving module can be these
Systems that system is present or multiple share what is used.
Step S103, the communication information is sent to the message queue disposed between another system, to logical
The message queue is crossed to send to another system.
Message queue can be increasing income for current popular using grey rabbit message queue RabbitMq, RabbitMQ is preferred to use
Message Queuing system, uses erlang language developments, because erlang is exactly innately a distributed language, therefore is easy to implement collection
Group, and distributed system.RabbitMQ is the standard implementation of AMQP (advanced message queue protocol), reusable enterprise message
System.It follows Mozilla Public License open source protocols.Relative to other message queues, RabbitMq, which has, to be opened
Source, stability is good, and meets AMQP standards, therefore is selected for outstanding message queue.
The service asynchronous exchange method that the present embodiment is provided, by setting the single system of function, locally executes its industry
Business, and by transmission information by encapsulating and being transferred to goal systems by message queue, then being that each leisure is local carries out this
The business logical operation on ground, then result is sent to another system by way of message queue.Realized with respect to http
Synchronization between system, the present embodiment realizes the asynchronous interactive between system, is capable of the stability of strengthening system;Further,
It can allow decoupling between the service business of each system by RabbitMq, be verified without complicated http calling interfaces.
Wherein, asynchronous both sides do not need common clock, that is, recipient not to know when sender sends, institute
The information received with that will there is prompting recipient to start in the information of transmission, such as start bit, while there is stop position at the end.
Decoupling is exactly that two kinds of motions mathematically are separated into process problem, and conventional decoupling method is exactly to ignore or letter
Change a kind of motion less on the influence that studies a question, only analyze main motion.So that system variable is reduced so that
System is more stable.In uneoupled control problem, elementary object is one control device of design, makes the multivariable control system of composition
Each output variable only controlled completely by an input variable, and different output is controlled by different inputs.
Global transaction:The affairs that explorer is managed and coordinated, can cross over multiple databases and process.
It refer to Fig. 2, service asynchronous exchange method second embodiment of the present invention, the present embodiment is using first embodiment as base
Plinth, has increased step newly, specific as follows:
Step S201, this step is identical with the step S101 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S202, this step is identical with the step S102 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S203, this step is identical with the step S103 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S204, records the business operation message of the business operation in presetting message record sheet, wherein, the industry
Business operation information includes the message transaction ID and pushes state.
Step S205, when receiving from the return message that another system is returned for the communication information, root
According to the push state of business operation message described in the return information updating.
The present embodiment, by record traffic operation information into Message Record table, then can be realized to each business operation
The effect reviewed.Consequently facilitating the follow-up work such as check and verification message.
It refer to Fig. 3, service asynchronous exchange method 3rd embodiment of the present invention, the present embodiment is using second embodiment as base
Plinth, has increased step newly, specific as follows:
Step S301, this step is identical with the step S201 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S302, this step is identical with the step S202 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S303, this step is identical with the step S203 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S304, this step is identical with the step S204 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S305, this step is identical with the step S205 of first embodiment, specifically refer to above-described embodiment, herein not
Repeat again.
Step S306, Message Record table described in automatic regular polling, inquiry push state is the communication information of failure.
The time of timing, can be 5 seconds, 1 minute or 10 minutes etc..
Step S307, is that failure is led to the push state when inquiring the communication information that push state is failure
Letter message is resend.
The present embodiment is by Message Record table described in automatic regular polling, then further heavy it will be seen that sending failure
These message are sent out, so as to establish Error Compensation mechanism.Error Compensation mechanism ensure that some message send failure, Neng Goujin
Row is resend, it is ensured that message arrives at the service to other systems.
Fig. 4 is refer to, the embodiment of service asynchronous interactive device one of the present invention, the service asynchronous interactive device 1000 includes
Processor 1100, memory 1200 and be stored on the holder 1200 and the service that can be run on processor 1100 is different
Walk interactive program 1300;Any reality as described above is realized when the service asynchronous interactive program 1300 is performed by the processor 1100
The step of applying the service asynchronous exchange method of example.
When the service asynchronous exchange method is performed by processor 1100, the step of realizing referring to above-described embodiment,
This is repeated no more.
By the service asynchronous interactive device 1000 that the present embodiment is provided, include above-mentioned service asynchronous exchange method
All technical characteristic, therefore also there are whole beneficial effects of above-mentioned service asynchronous exchange method, it will not be repeated here.
Fig. 5 is refer to, the embodiment of computer-readable recording medium one of the present invention reads for computer, deposited on the computer-readable recording medium 2000
Service asynchronous interactive program 2100 is contained, is realized when the service asynchronous interactive program 2100 is executed by processor any as described above
The step of service asynchronous exchange method of embodiment.
When the service asynchronous exchange method is executed by processor, the step of realizing is referring to above-described embodiment, herein not
Repeat again.
By the computer-readable recording medium that the present embodiment is provided, the whole technologies for including above-mentioned service asynchronous exchange method are special
Levy, therefore also there are whole beneficial effects of above-mentioned service asynchronous exchange method, will not be repeated here.
It refer to Fig. 6 embodiments of service asynchronous interactive system one of the present invention, the service asynchronous interactive system 3000, including
Processor 3100, memory 3200 and the multiple systems to realize a variety of services being stored on the holder 3200.Institute
State service asynchronous interactive system 3000 also include be stored on the holder 3200 be used for be deployed in multiple systems it
Between message queue cluster 3500.Wherein, in the present embodiment, multiple systems are with the first system 3300 therein and second system
Illustrated exemplified by 3400.Processor 3100 can be one can also be it is multiple, holder 3200 can also be one or
Multiple, same whole service asynchronous interactive system can be arranged on a server, can also be arranged on multiple servers,
For example the first system 3300 is located on a server, and second system 3400 is on another server etc..
The first system 3300 realizes following steps when being performed by the processor 3100:
When receiving the service order of needs and the progress service interaction of second system 3400, held according to the service order
Row related service is operated.
For example, when user have activated neck certificate business in neck certificate system, then leading certificate system to perform the business of the neck certificate;And be somebody's turn to do
The business of neck certificate will be used for form ordering system, for implementing cash deduction business in form ordering system.Then above-mentioned neck certificate business is needed
Service interaction is carried out with form ordering system.When leading certificate system to receive execution neck certificate service order, it is performed locally the industry
Business is until the service ending, such as show neck certificate animation, and the neck certificate amount of money, and the successfully prompting etc. of neck certificate to user.
In business operation success, message call is notified and receiving module, and the transmission of the business operation is believed
Breath is encapsulated as communication information, and the communication information includes message transaction ID and message sends and received agreement.
Continue to illustrate using above-mentioned neck certificate business as example:When user's activation neck certificate business, certificate system is led by examination & verification, and
Do not find user have it is any do not conform to rule part, then the reward voucher can be received by representing user.Then neck certificate system, which is performed, provides excellent
The step of favour certificate, now judge business operation success.If user does not meet the requirement for getting reward voucher, refuse to provide to user
Reward voucher, now judges business operation failure.In neck certificate system, neck certificate system can singly complete its function, without closing
Whether heart form ordering system can correctly handle received coupon message, so as to lead, certificate systemic-function is more single, and structure is simpler
Singly realize the neck certificate function of itself.Further, when user obtains reward voucher, the reward voucher needs and form ordering system
Communication, therefore lead your system of certificate to need to generate a transmission information, form ordering system is notified, the user has reward voucher.
And the transmission information, by notifying to form with receiving module encapsulation.Specifically, the message informing and receiving module
Effect mainly generates a unique message transaction ID, is used for global message, to reach the purpose for distinguishing each message;
This other module can according to specific message queue interface grammer, the method for encapsulating transmission and the receiving of good news externally provides
Service.This module can as message call between all systems shared module.I.e. the notice and receiving module can be these
Systems that system is present or multiple share what is used.
The communication information is sent to the message queue disposed between second system 3400, to pass through the message
Queue is sent to second system 3400.
In the present embodiment, the first system 3300 both includes the service code needed for business itself, collects also in service code
Into message informing and receiving module.Similarly, second system 3400 also both includes the service code needed for business itself, also in industry
Message informing and receiving module are integrated with business code.
The first system 3300 is when by the computing device, in addition to realizes following steps:
Receive the communication information from second system 3400;
Handled according to the communication information, and result is encapsulated as including message when being disposed and sent
With the return message for receiving agreement;
The return message is sent to the message queue, to be sent by the message queue to second system
3400。
The message queue cluster realizes following steps when by the computing device:
When receiving the communication information of the first system 3300 and returning to message, pass through business between each system
The specified message queue that interaction is used respectively, to send the communication information and return to message.
In the present embodiment, in order to which system is stable and is easy to safeguard, the interaction of business needs to make respectively between each system
Message communicating is carried out with a message queue, a message queue can not be shared.Further, the name of queue can obtain phase
To meaningful, the queue that such as merchandise system and form ordering system are interacted can be shop_order_queue, so as to reach later stage appearance
The effect of easy care.
Message queue can be increasing income for current popular using grey rabbit message queue RabbitMq, RabbitMQ is preferred to use
Message Queuing system, uses erlang language developments, because erlang is exactly innately a distributed language, therefore is easy to implement collection
Group, and distributed system.RabbitMQ is the standard implementation of AMQP (advanced message queue protocol), reusable enterprise message
System.It follows Mozilla Public License open source protocols.Relative to other message queues, RabbitMq, which has, to be opened
Source, stability is good, and meets AMQP standards, therefore is selected for outstanding message queue.
Rabbit patterns are probably divided into following three kinds:Single-mode, general mode, mirror image pattern.Wherein, general mode and
Mirror image pattern is cluster mode.The RabbitMq clusters of the present embodiment can then use general mode or mirror image pattern.
General mode:The cluster mode of acquiescence.
For Queue, message entity exists only in one of node, and two nodes of A, B only have identical member number
According to i.e. queue structure.
After in the Queue that message enters A nodes, consumer from B node pull when, RabbitMQ can be interim in A, B
Between carry out message transmission, the message entity in A taken out and passes through B be sent to consumer.It is preferred that consumer try one's best and connect
Each node is connect, message is therefrom taken.I.e. for same logic query, physics Queue is set up in multiple nodes.Otherwise without
Connect A or B by consumer, export always in A, bottleneck can be produced.
But, the pattern has a problem that to be exactly that B node can not be got in A nodes and not consume also after A node failures
Message entity.Accordingly, it is preferred that the message queue cluster is when by the computing device, in addition to realize message queue
Persistence.After persistence has been done, then it can wait after the recovery of A nodes, then can be consumed;So as to ensure the stability of data.
Wherein, persistence can include:Interchanger is set to can be lasting, and passage is set to can be lasting, and message is sent
When set can be lasting.When message can persistence when, if MQ service disruptions, be again started up consumer and obtain message, message still can
It is enough to recover.
Mirror image pattern:Mirror image queue is made in the queue of needs, is present in multiple nodes, belongs to RabbitMQ HA side
Case.
The pattern solves the problem of above-mentioned general mode is present, and its essence and general mode difference are, message
Entity can be actively synchronous between mirror nodes, rather than consumer access according to when pull temporarily.
The pattern is due to needing stronger systematic function and well-to-do network bandwidth conditions.Therefore the pattern is pair can
Require to be applicable in higher occasion by property.
The message queue of the present embodiment service asynchronous interactive system, using RabbitMq group schemes, can it is more efficient and
The convenient distributed arrangement realized between multisystem.
The service asynchronous interactive system that the present embodiment is provided, by setting the single system of function, locally executes its industry
Business, and by transmission information by encapsulating and being transferred to goal systems by message queue, then being that each leisure is local carries out this
The business logical operation on ground, then result is sent to another system by way of message queue.Realized with respect to http
Synchronization between system, the present embodiment realizes the asynchronous interactive between system, is capable of the stability of strengthening system;Further,
It can allow decoupling between the service business of each system by RabbitMq, be verified without complicated http calling interfaces.
It is preferred that, the first system 3300 also realizes following steps when being performed by the processor 3100:
In business operation success, the business operation that the business operation is recorded in presetting message record sheet disappears
Breath, wherein, the business operation message includes the message transaction ID and pushes state.
When receiving from the return message that second system 3400 is returned for the communication information, returned according to described
The push state of business operation message described in information updating.
The present embodiment, by record traffic operation information into Message Record table, then can be realized to each business operation
The effect reviewed.Consequently facilitating the follow-up work such as check and verification message.
It is preferred that, the first system 3300 also realizes following steps when being performed by the processor 3100:
Message Record table described in automatic regular polling, inquiry push state is the communication information of failure;The time of timing, Ke Yishi
5 seconds, 1 minute or 10 minutes etc..
When inquiring the communication information that push state is failure, the push state is carried out for the communication information of failure
Resend.
The present embodiment is by Message Record table described in automatic regular polling, then further heavy it will be seen that sending failure
These message are sent out, so as to establish Error Compensation mechanism.Error Compensation mechanism ensure that some message send failure, Neng Goujin
Row is resend, it is ensured that message arrives at the service to other systems.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of service asynchronous exchange method, for service interaction between multisystem, it is characterised in that the service asynchronous interaction
Method comprises the following steps:
When receiving the service order of needs and another system progress service interaction, local phase is performed according to the service order
Close business operation;
In business operation success, message call is notified and receiving module, and the transmission information of the business operation is sealed
Fill as communication information, the communication information includes message transaction ID and message sends and received agreement;
The communication information is sent to the message queue disposed between another system, to pass through the message queue
Send to another system.
2. service asynchronous exchange method as claimed in claim 1, it is characterised in that described in business operation success
Service asynchronous exchange method also includes step:
The business operation message of the business operation is recorded in presetting message record sheet, wherein, the business operation message package
Include the message transaction ID and push state;
When receiving from the return message that another system is returned for the communication information, according to the return message
Update the push state of the business operation message.
3. service asynchronous exchange method as claimed in claim 2, it is characterised in that the service asynchronous exchange method also includes
Following steps:
Message Record table described in automatic regular polling, inquiry push state is the communication information of failure;
When inquiring the communication information that push state is failure, the push state is carried out again for the communication information of failure
Send.
4. service asynchronous exchange method as claimed in claim 1, it is characterised in that the message queue uses rabbit message team
Arrange RabbitMQ.
5. a kind of service asynchronous interactive device, it is characterised in that the service asynchronous interactive device include processor, memory and
It is stored in service asynchronous interactive program that is on the holder and can running on a processor;The service asynchronous interactive program
The step of service asynchronous exchange method as described in any one of Claims 1-4 is realized during the computing device.
6. a kind of computer-readable recording medium, is read for computer, it is characterised in that the service asynchronous that is stored with the computer-readable recording medium is interacted
Program, realizes that the service as any one of Claims 1-4 is different when the service asynchronous interactive program is executed by processor
The step of walking exchange method.
7. a kind of service asynchronous interactive system, including processor, memory and it is stored in many to realize on the holder
Plant multiple systems of service, it is characterised in that the service asynchronous interactive system also includes the use being stored on the holder
Message queue cluster between multiple systems are deployed in;
The system realizes following steps when by the computing device:
When receiving the service order of needs and another system progress service interaction, related industry is performed according to the service order
Business operation;
In business operation success, message call is notified and receiving module, and the transmission information of the business operation is sealed
Fill as communication information, the communication information includes message transaction ID and message sends and received agreement;
The communication information is sent to the message queue disposed between another system, to be sent by the message queue
To another system;
The system is when by the computing device, in addition to realizes following steps:
Receive the communication information from another system;
Handled according to the communication information, and result is encapsulated as including message transmission and connect when being disposed
By the return message of agreement;
The return message is sent to the message queue, to be sent by the message queue to another system;
The message queue cluster realizes following steps when by the computing device:
When receiving the communication information of the system and returning to message, divided by service interaction between each system
The specified message queue not used send the communication information and return message.
8. service asynchronous interactive system as claimed in claim 7, it is characterised in that the message queue cluster is by the place
When managing device execution, in addition to realize the persistence of message queue.
9. service asynchronous interactive system as claimed in claim 7 a, it is characterised in that system is held by the processor
During row, following steps are also realized:
In business operation success, the business operation message of the business operation is recorded in presetting message record sheet, its
In, the business operation message includes the message transaction ID and pushes state;
When receiving from the return message that another system is returned for the communication information, according to the return information updating
The push state of the business operation message.
10. service asynchronous interactive system as claimed in claim 7 a, it is characterised in that system is by the processor
During execution, following steps are also realized:
Message Record table described in automatic regular polling, inquiry push state is the communication information of failure;
When inquiring the communication information that push state is failure, the push state is carried out again for the communication information of failure
Send.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710366759.5A CN107222530A (en) | 2017-05-23 | 2017-05-23 | Service asynchronous exchange method, equipment, system and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710366759.5A CN107222530A (en) | 2017-05-23 | 2017-05-23 | Service asynchronous exchange method, equipment, system and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107222530A true CN107222530A (en) | 2017-09-29 |
Family
ID=59944400
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710366759.5A Pending CN107222530A (en) | 2017-05-23 | 2017-05-23 | Service asynchronous exchange method, equipment, system and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107222530A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967595A (en) * | 2017-10-30 | 2018-04-27 | 北京大数元科技发展有限公司 | It is a kind of to support message prompt method and system asynchronous, synchronously calculate |
CN108924041A (en) * | 2018-08-03 | 2018-11-30 | 北京捷易迅信息技术有限公司 | A kind of message efficient reliable diffusion method in instant messaging |
CN109144746A (en) * | 2018-07-19 | 2019-01-04 | 中国航空工业集团公司沈阳飞机设计研究所 | A kind of message asynchronous distribution system and method for GFT training system |
CN109669791A (en) * | 2018-12-22 | 2019-04-23 | 网宿科技股份有限公司 | Exchange method, server and computer readable storage medium |
CN110417913A (en) * | 2019-08-09 | 2019-11-05 | 浪潮云信息技术有限公司 | A kind of asynchronous creation method of Cloud Server based on Rabbit MQ |
CN111049730A (en) * | 2019-12-05 | 2020-04-21 | 紫光云(南京)数字技术有限公司 | RabbitMQ message retransmission and power of consumption idempotent solution method |
CN111211973A (en) * | 2020-01-15 | 2020-05-29 | 百望股份有限公司 | Information processing method and device in invoice field and storage medium |
CN111897825A (en) * | 2020-06-01 | 2020-11-06 | 中国人民财产保险股份有限公司 | Distributed transaction processing method and device |
CN112215637A (en) * | 2020-09-21 | 2021-01-12 | 建信金融科技有限责任公司 | Virtual asset processing method and device, electronic equipment and storage medium |
CN113179228A (en) * | 2021-04-15 | 2021-07-27 | 浪潮思科网络科技有限公司 | Method, device, equipment and medium for improving switch stacking reliability |
CN113742043A (en) * | 2021-08-31 | 2021-12-03 | 中企云链(北京)金融信息服务有限公司 | Asynchronous splitting method for server backend task |
CN113992643A (en) * | 2021-10-28 | 2022-01-28 | 中国银行股份有限公司 | Asynchronous message notification method, system, mobile terminal APP and asynchronous notification system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6430562B1 (en) * | 1999-03-01 | 2002-08-06 | Electronic Data Systems Corporation | Integrated resource management system and method |
CN1744046A (en) * | 2004-08-31 | 2006-03-08 | 华为技术有限公司 | Multi-task application software module management method in real-time operating system environment |
WO2007027679A2 (en) * | 2005-08-29 | 2007-03-08 | Rhysome, Inc. | Method and system for reliable message delivery |
US20110258638A1 (en) * | 2010-04-20 | 2011-10-20 | Davies Paul J | Distributed processing of binary objects via message queues including a failover safeguard |
CN102523109A (en) * | 2011-12-08 | 2012-06-27 | 杭州华三通信技术有限公司 | Resource state updating method, management client ends, and server |
CN103209115A (en) * | 2013-04-07 | 2013-07-17 | 北京京东世纪贸易有限公司 | Message sending system |
CN105159657A (en) * | 2015-06-12 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Method and system for processing message |
CN105227662A (en) * | 2015-09-30 | 2016-01-06 | 努比亚技术有限公司 | Message treatment method, device and system |
CN105740083A (en) * | 2016-01-28 | 2016-07-06 | 努比亚技术有限公司 | Information processing method, device and system |
CN106385382A (en) * | 2016-09-05 | 2017-02-08 | 努比亚技术有限公司 | Data synchronization method, device and system |
CN106453288A (en) * | 2016-09-29 | 2017-02-22 | 上海和付信息技术有限公司 | Asynchronous mode supporting distributed micro service framework system and implementation method thereof |
-
2017
- 2017-05-23 CN CN201710366759.5A patent/CN107222530A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6430562B1 (en) * | 1999-03-01 | 2002-08-06 | Electronic Data Systems Corporation | Integrated resource management system and method |
CN1744046A (en) * | 2004-08-31 | 2006-03-08 | 华为技术有限公司 | Multi-task application software module management method in real-time operating system environment |
WO2007027679A2 (en) * | 2005-08-29 | 2007-03-08 | Rhysome, Inc. | Method and system for reliable message delivery |
US20110258638A1 (en) * | 2010-04-20 | 2011-10-20 | Davies Paul J | Distributed processing of binary objects via message queues including a failover safeguard |
CN102523109A (en) * | 2011-12-08 | 2012-06-27 | 杭州华三通信技术有限公司 | Resource state updating method, management client ends, and server |
CN103209115A (en) * | 2013-04-07 | 2013-07-17 | 北京京东世纪贸易有限公司 | Message sending system |
CN105159657A (en) * | 2015-06-12 | 2015-12-16 | 北京京东尚科信息技术有限公司 | Method and system for processing message |
CN105227662A (en) * | 2015-09-30 | 2016-01-06 | 努比亚技术有限公司 | Message treatment method, device and system |
CN105740083A (en) * | 2016-01-28 | 2016-07-06 | 努比亚技术有限公司 | Information processing method, device and system |
CN106385382A (en) * | 2016-09-05 | 2017-02-08 | 努比亚技术有限公司 | Data synchronization method, device and system |
CN106453288A (en) * | 2016-09-29 | 2017-02-22 | 上海和付信息技术有限公司 | Asynchronous mode supporting distributed micro service framework system and implementation method thereof |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967595B (en) * | 2017-10-30 | 2021-06-29 | 北京大数元科技发展有限公司 | Message reminding method and system supporting asynchronous and synchronous calculation |
CN107967595A (en) * | 2017-10-30 | 2018-04-27 | 北京大数元科技发展有限公司 | It is a kind of to support message prompt method and system asynchronous, synchronously calculate |
CN109144746A (en) * | 2018-07-19 | 2019-01-04 | 中国航空工业集团公司沈阳飞机设计研究所 | A kind of message asynchronous distribution system and method for GFT training system |
CN108924041A (en) * | 2018-08-03 | 2018-11-30 | 北京捷易迅信息技术有限公司 | A kind of message efficient reliable diffusion method in instant messaging |
CN109669791A (en) * | 2018-12-22 | 2019-04-23 | 网宿科技股份有限公司 | Exchange method, server and computer readable storage medium |
CN110417913A (en) * | 2019-08-09 | 2019-11-05 | 浪潮云信息技术有限公司 | A kind of asynchronous creation method of Cloud Server based on Rabbit MQ |
CN111049730A (en) * | 2019-12-05 | 2020-04-21 | 紫光云(南京)数字技术有限公司 | RabbitMQ message retransmission and power of consumption idempotent solution method |
CN111211973A (en) * | 2020-01-15 | 2020-05-29 | 百望股份有限公司 | Information processing method and device in invoice field and storage medium |
CN111897825A (en) * | 2020-06-01 | 2020-11-06 | 中国人民财产保险股份有限公司 | Distributed transaction processing method and device |
CN112215637A (en) * | 2020-09-21 | 2021-01-12 | 建信金融科技有限责任公司 | Virtual asset processing method and device, electronic equipment and storage medium |
CN113179228A (en) * | 2021-04-15 | 2021-07-27 | 浪潮思科网络科技有限公司 | Method, device, equipment and medium for improving switch stacking reliability |
CN113179228B (en) * | 2021-04-15 | 2022-12-23 | 浪潮思科网络科技有限公司 | Method, device, equipment and medium for improving switch stacking reliability |
CN113742043A (en) * | 2021-08-31 | 2021-12-03 | 中企云链(北京)金融信息服务有限公司 | Asynchronous splitting method for server backend task |
CN113742043B (en) * | 2021-08-31 | 2024-04-26 | 中企云链股份有限公司 | Asynchronous splitting method for server back-end tasks |
CN113992643A (en) * | 2021-10-28 | 2022-01-28 | 中国银行股份有限公司 | Asynchronous message notification method, system, mobile terminal APP and asynchronous notification system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107222530A (en) | Service asynchronous exchange method, equipment, system and computer-readable recording medium | |
CN1533117B (en) | News transmitting and receiving through tailered communication channel and program design model | |
EP1553723B1 (en) | Method and system for modelling a communications network | |
KR101863398B1 (en) | Method and system for synchronization mechanism on multi-server reservation system | |
KR100807651B1 (en) | System and method of creating and communicating with component based wireless applications | |
CN111866191A (en) | Message event distribution method, distribution platform, system and server | |
US8488448B2 (en) | System and method for message sequencing in a broadband gateway | |
CN100518044C (en) | Minimum message division | |
CN107317839A (en) | Internet of things information processing method, apparatus and system | |
US20110321011A1 (en) | Application server with a protocol-neutral programming model for developing telecommunications-based applications | |
CN101854348B (en) | Realization method of SOA (Service Oriented Architecture) accessing core supporting system in peripheral system | |
CN111339145A (en) | Process integration method and platform, and computer-readable storage medium | |
US20120239724A1 (en) | Method and system for centralized reservation context management on multi-server reservation system | |
CN108255614A (en) | A kind of interface calling system and method based on micro services framework | |
CN110266815B (en) | Micro service network system based on block chain | |
CA2843284C (en) | Computer system, computer-implemented method and computer program product for sequencing incoming messages for processing at an application | |
CN112149079A (en) | Planning review management platform based on micro-service architecture and user access authorization method | |
CN110287266A (en) | A kind of distributed system and data processing method | |
CN1973282A (en) | System and method for managing a change to a cluster configuration | |
CN106027534A (en) | System for implementing financial message processing based on Netty | |
CN110430142A (en) | Method and apparatus for controlling flow | |
CN101924815A (en) | 3G MOA phone middleware embedded system | |
CN112351106B (en) | Service grid platform containing event grid and communication method thereof | |
CN201854301U (en) | Middleware system for sharing data on mobile phones | |
CN116828035A (en) | Data integration system based on cloud computing |
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: 20170929 |