CN114449037A - Asynchronous communication push system - Google Patents

Asynchronous communication push system Download PDF

Info

Publication number
CN114449037A
CN114449037A CN202111639121.7A CN202111639121A CN114449037A CN 114449037 A CN114449037 A CN 114449037A CN 202111639121 A CN202111639121 A CN 202111639121A CN 114449037 A CN114449037 A CN 114449037A
Authority
CN
China
Prior art keywords
message
push
module
queue
asynchronous communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111639121.7A
Other languages
Chinese (zh)
Inventor
米斌光
秦宇杰
赵海燕
董红顺
陈乃明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN202111639121.7A priority Critical patent/CN114449037A/en
Publication of CN114449037A publication Critical patent/CN114449037A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2871Implementation details of single intermediate entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an asynchronous communication push model which comprises a message receiving module, a message push module and a message middleware, wherein the message middleware further comprises a distribution queue and a push queue. The asynchronous communication system utilizes the message middleware to realize the decoupling of the business system and the asynchronous communication pushing model, can increase the expansibility and the easy integration of the whole asynchronous communication pushing model, and simultaneously utilizes the order task to drive on the basis of business data flow, thereby enhancing the reliability of the communication process and reducing the occurrence of abnormal conditions. When the user uses the system, the user can operate more simply and conveniently without worrying about abnormal conditions which may occur in the existing system.

Description

Asynchronous communication push system
Technical Field
The invention relates to the technical field of communication, in particular to an asynchronous communication pushing system.
Background
For asynchronous communication interfaces or systems, a common existing scheme is to receive messages and store the messages synchronously based on message middleware; performing service processing after the service request by monitoring or subscribing the message; and after a service data result is formed, calling back an execution result sending operation.
In the existing scheme, asynchronous push operation is mainly driven by service data flow, and the whole data flow completely depends on a service processing flow. When an accident occurs in the business processing flow, the asynchronous push operation is affected, for example: queue congestion may cause asynchronous pushes to be later than expected execution times; the middleware exception loss message will cause the asynchronous push operation not to be performed, and so on. This causes an exception to the flow at the calling end, which results in a missing business flow and possibly incomplete data in the business system.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an asynchronous communication pushing model which can guarantee the integrity of an asynchronous communication process to the greatest extent, further improve the stability of a system and reduce the processing of external interface abnormity.
According to a first aspect of the present invention, an asynchronous communication pushing method based on order information assurance is characterized by comprising:
the system comprises a message middleware, a message acceptance module and a message pushing module;
the message middleware comprises a distribution queue and a push queue, wherein the distribution queue can store service requests to be processed, and meanwhile, the distribution queue can be monitored by a service system; the push queue can receive and store result messages to be pushed, and meanwhile, the push queue is monitored by the message push module;
the message accepting module is used as an inlet of the asynchronous communication push system and is provided with a first external interface, the first external interface can receive HTTP protocol data from an external access system, and the message accepting module can make an order placing request to the message push module;
the message pushing module can receive the order placing request of the message accepting module, monitor the pushing queue of the message middleware, and deliver orders and trigger callback pushing operation.
The air conditioner regulating device provided by the embodiment of the invention at least has the following beneficial effects:
the asynchronous communication system utilizes the message middleware to realize the decoupling of the business system and the asynchronous communication pushing model, can increase the expansibility and the easy integration of the whole asynchronous communication pushing model, and simultaneously utilizes the order task to drive on the basis of business data flow, thereby enhancing the reliability of the communication process and reducing the occurrence of abnormal conditions. When the user uses the system, the user can operate more simply and conveniently without worrying about abnormal conditions which may occur in the existing system. According to some embodiments of the invention, the fault alarm module may also locate the position of the regulating device using GPRS technology.
According to some embodiments of the invention, the first external interface is a RESTful style interface.
According to some embodiments of the present invention, the message acceptance module is further capable of verifying and storing the message after receiving the information from the external access system.
According to some embodiments of the present invention, when the message accepting module performs an order placing request for a plurality of message pushing modules, the message accepting module needs to complete the checksum storage of the message first, perform the order placing request, and after the operation of the order placing request, need to return a message of an acceptance result to the external access system.
According to some embodiments of the present invention, after monitoring the message from the service system in the push queue, the message push module may search for corresponding order information, perform a callback operation according to the order, send a result message to the external access system, and then cancel the timed delivery task.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a block diagram of an asynchronous push communication model according to an embodiment of the present invention.
Message middleware 100, distribution queue 110, push queue 120, message reception module 200, message push module 300, external access system 400, and business system 500.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
In the range of the prior art, asynchronous communication is mainly driven by service data flow, and if an accident occurs in the process of service processing, an abnormal state is caused, so that a service flow is lost, and even incomplete data is generated.
In order to solve the problems in the prior art, an asynchronous communication push model with higher reliability is proposed, which can increase the stability of the system.
The first embodiment,
As shown in fig. 1, the embodiment of the present application includes a message middleware 100, a message accepting module 200, and a message pushing module 300. Since the system described in this application needs to interact with other systems during operation, two external systems, namely the external access system 400 and the service system 500, are introduced for understanding.
The message middleware 100 includes therein a distribution queue 110 and a push queue 120.
The distribution queue 110 can store the received information, which in this embodiment is mainly embodied in storing pending service requests, and can be listened to by the service system 500.
The push queue 120 can also store the received information, in this embodiment, the main stored information is the result message to be pushed, and in addition, the push queue 120 is also monitored by the message pushing module 300.
The message middleware 100 formed by the distribution queue 110 and the push queue 120 can realize the decoupling of the message push module 300 and the service system 500, and increases the expansibility of the device.
The message receiving module 200 is an entry of the entire asynchronous communication system, and has a first external interface thereon, where the first external interface is used to receive information sent from the external access system 400, and specifically, the first external interface adopts an HTTP protocol and provides a RESTful style interface to the outside. The message receiving module 200 also needs to be able to complete basic verification and synchronous storage of the message, which can improve the reliability of the device in the communication process. Preferably, the message reception module 200 needs to be capable of sending a placement request to the message push module 300, and in this embodiment, the function is also realized by an interface, and after the message reception module 200 sends a placement request to the message push module 300, the message push module 300 is capable of returning a message of a reception result to the message reception module 200.
It can be understood that the implementation manner of the first external interface is various, and may be implemented in the form of a computer interface, or may be implemented in other forms capable of exchanging data with the outside world, where the interface is the most common technical means in the art under the current conditions, and is not to be construed as a limitation to the present application.
The message push module 300 can not only acquire the order placing request from the message reception module 200, but also monitor the push queue 120.
According to some preferred embodiments of the present application, the message pushing module 300 can further search the order information corresponding to the received information, execute a callback operation according to the order information, and then send the result message to the external access system 400. And finally, canceling the timed distribution task.
The first embodiment illustrates the general structure of the asynchronous push model described in this application, and the functions that can be implemented by the asynchronous push model, and to facilitate understanding of those skilled in the art, several examples are given on the basis of the first embodiment to illustrate how information is exchanged during working.
Example II,
On the basis of the asynchronous communication system proposed in the first embodiment, a normal operating state is given. In this embodiment, the operation principle inside the asynchronous communication system is as follows:
the message receiving module 200 receives the service request from the external access system 400, checks the received information, and then the message receiving module 200 sends the message to the corresponding distribution queue 110 according to the type of the service request. Meanwhile, the message accepting module 200 calls the order placing interface of the message pushing module 300 to generate an order, and then receives a return value from the message pushing module 300: and (6) receiving a result. The message pushing module 200 starts a timed distribution task after receiving the order placing request.
The service system 500 listens or subscribes to the distribution queue 110, and when the processing is completed, the service system 500 sends a processing result message to the push queue 120. Then, when the message pushing module 300 monitors the processing result message in the pushing queue 120, the corresponding order information is searched according to the processing result message, and a callback operation is executed according to the order information, so as to callback the processing result message to the external access system 400, and cancel the timed distribution task in the message pushing module 200.
The second embodiment describes an ideal working state of the asynchronous communication push model in the present application, which is also the most important working mode. However, the communication link cannot be always cleared, and some emergency treatment measures are required in case of accidents such as blockage.
Example III,
On the basis of the first embodiment, the present embodiment provides an embodiment capable of processing a delay scenario, and in this embodiment, the specific working process is as follows:
the message receiving module 200 receives the service request from the external access system 400, checks the received information, and then the message receiving module 200 sends the message to the corresponding distribution queue 110 according to the type of the service request. Meanwhile, the message accepting module 200 calls the order placing interface of the message pushing module 300 to generate an order, and then receives a return value from the message pushing module 300: and (6) receiving a result. The message pushing module 200 starts a timed distribution task after receiving the order placing request.
The service system 500 monitors or subscribes the distribution queue 110, and when the order distribution time is over and no processing result message is received, the message pushing module 300 pushes a preset result message to the external access system 400 according to the order information to complete the order distribution. When the processing result message reaches the push queue 120 with a delay, the message push module 300 stores the processing result message to wait for the next query of the external access system 400.
The third embodiment describes a processing mode of the asynchronous communication push model in the case of delay. In some extreme cases, loss of messages may occur. With specific reference to example four.
Example four,
The fourth embodiment of the application provides a working scenario under the condition of message loss.
The message receiving module 200 receives the service request from the external access system 400, checks the received information, and then the message receiving module 200 sends the message to the corresponding distribution queue 110 according to the type of the service request. Meanwhile, the message accepting module 200 calls the order placing interface of the message pushing module 300 to generate an order, and then receives a return value from the message pushing module 300: and (6) receiving a result. The message pushing module 200 starts a timed distribution task after receiving the order placing request.
The service system 500 monitors or subscribes the distribution queue 110, and when the order distribution time is over and no processing result message is received, the message pushing module 300 pushes a preset result message to the external access system 400 according to the order information to complete the order distribution.
The above embodiment describes the structure of the asynchronous communication push model in the present application, and several basic operating states thereof, and this structure utilizes message middleware to implement decoupling of the service system and the asynchronous communication push model, and can increase expandability and easy integration of the whole asynchronous communication push model, and meanwhile, on the basis of service data flow, it is driven by order tasks, which enhances reliability of the communication process, and can reduce occurrence of abnormal situations. When the user uses the system, the user can operate more simply and conveniently without worrying about abnormal conditions which may occur in the existing system.
It is to be understood that the asynchronous communication push model described in the first embodiment may be implemented in the form of a computer program, and as long as the module can implement the functions of the asynchronous communication push module, it is understood to be within the scope described in this application.
A further embodiment of the present application provides a terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor can implement the method described in any one of the second to fourth embodiments.
In particular, the processor may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like.
In particular, the processor is coupled to the memory via a bus, which may include a path for communicating information. The bus may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
The memory may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
Optionally, the memory is used for storing codes of computer programs for executing the scheme of the application, and the processor is used for controlling the execution. The processor is configured to execute application code stored in the memory to implement the actions of the asynchronous communication push model provided by the embodiment shown in fig. 1.
The above-described embodiments of the apparatus are merely illustrative, and the units illustrated as separate components may or may not be physically separate, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units illustrated as separate components may or may not be physically separate, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It will be understood by those of ordinary skill in the art that all or some of the structures, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those skilled in the art.
While the present invention has been described with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (5)

1. An asynchronous communication push system, comprising:
the system comprises a message middleware, a message acceptance module and a message pushing module;
the message middleware comprises a distribution queue and a push queue, wherein the distribution queue can store service requests to be processed, and meanwhile, the distribution queue can be monitored by a service system; the push queue can receive and store result messages to be pushed, and meanwhile, the push queue is monitored by the message push module;
the message accepting module is used as an inlet of the asynchronous communication push system and is provided with a first external interface, the first external interface can receive HTTP protocol data from an external access system, and the message accepting module can make an order placing request to the message push module;
the message pushing module can receive the order placing request of the message accepting module, monitor the pushing queue of the message middleware, and deliver orders and trigger callback pushing operation.
2. The asynchronous communication push system of claim 1, wherein the first external interface is a RESTful style interface.
3. The asynchronous communication pushing system of claim 1, wherein the message accepting module is further capable of checking and storing the message after receiving the message from the external access system.
4. The asynchronous communication push system according to claim 3, wherein the message acceptance module needs to complete the checksum storage of the message when performing the ordering request for the plurality of message push modules, and needs to return the message of the acceptance result to the external access system after performing the ordering request and performing the ordering request.
5. The asynchronous communication push system according to claim 1, wherein the message push module, after monitoring the message from the service system in the push queue, can search for the corresponding order information, perform a callback operation according to the order, send the result message to the external access system, and then cancel the timed distribution task.
CN202111639121.7A 2021-12-29 2021-12-29 Asynchronous communication push system Pending CN114449037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111639121.7A CN114449037A (en) 2021-12-29 2021-12-29 Asynchronous communication push system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111639121.7A CN114449037A (en) 2021-12-29 2021-12-29 Asynchronous communication push system

Publications (1)

Publication Number Publication Date
CN114449037A true CN114449037A (en) 2022-05-06

Family

ID=81365917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111639121.7A Pending CN114449037A (en) 2021-12-29 2021-12-29 Asynchronous communication push system

Country Status (1)

Country Link
CN (1) CN114449037A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117997958A (en) * 2024-04-02 2024-05-07 福建时代星云科技有限公司 Method and system for pushing internet of things data of charging station

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169842A1 (en) * 2001-04-02 2002-11-14 Centegy Corporation Method and system for facilitating the integration of a plurality of dissimilar systems
CN105681426A (en) * 2016-01-22 2016-06-15 上海携程商务有限公司 Heterogeneous system
CN107679931A (en) * 2017-08-17 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, storage medium and the terminal of order asynchronous process
CN108196961A (en) * 2017-12-28 2018-06-22 广东蜂助手网络技术股份有限公司 A kind of asynchronous message processing method, terminal, system and storage medium
CN108520454A (en) * 2018-04-10 2018-09-11 平安科技(深圳)有限公司 Method and system for calling back orders in real time
CN110189206A (en) * 2019-06-04 2019-08-30 苏州程旅网络科技有限公司 Asynchronous ordering system and ordering method from the background
CN110968438A (en) * 2019-11-29 2020-04-07 江苏满运软件科技有限公司 Asynchronous notification method and device of event message, electronic equipment and storage medium
CN112181674A (en) * 2019-07-04 2021-01-05 深圳市观麦网络科技有限公司 Distributed transaction processing method based on RabbitMQ
CN113626218A (en) * 2021-07-30 2021-11-09 江苏苏宁物流有限公司 Data processing method, data processing device, storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169842A1 (en) * 2001-04-02 2002-11-14 Centegy Corporation Method and system for facilitating the integration of a plurality of dissimilar systems
CN105681426A (en) * 2016-01-22 2016-06-15 上海携程商务有限公司 Heterogeneous system
CN107679931A (en) * 2017-08-17 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, storage medium and the terminal of order asynchronous process
CN108196961A (en) * 2017-12-28 2018-06-22 广东蜂助手网络技术股份有限公司 A kind of asynchronous message processing method, terminal, system and storage medium
CN108520454A (en) * 2018-04-10 2018-09-11 平安科技(深圳)有限公司 Method and system for calling back orders in real time
CN110189206A (en) * 2019-06-04 2019-08-30 苏州程旅网络科技有限公司 Asynchronous ordering system and ordering method from the background
CN112181674A (en) * 2019-07-04 2021-01-05 深圳市观麦网络科技有限公司 Distributed transaction processing method based on RabbitMQ
CN110968438A (en) * 2019-11-29 2020-04-07 江苏满运软件科技有限公司 Asynchronous notification method and device of event message, electronic equipment and storage medium
CN113626218A (en) * 2021-07-30 2021-11-09 江苏苏宁物流有限公司 Data processing method, data processing device, storage medium and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘一田;刘士进;: "多租户高可用并行任务调度框架", 计算机系统应用, no. 12, 15 December 2016 (2016-12-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117997958A (en) * 2024-04-02 2024-05-07 福建时代星云科技有限公司 Method and system for pushing internet of things data of charging station

Similar Documents

Publication Publication Date Title
CN111835467B (en) Message sending method, device, computer equipment and storage medium
CN107087033B (en) Message pushing method and device, storage medium and computer equipment
CN111104235B (en) Queue-based asynchronous processing method and device for service requests
CN110535692B (en) Fault processing method and device, computer equipment, storage medium and storage system
CN108491301B (en) Electronic device, abnormality early warning method based on redis and storage medium
CN109714409B (en) Message management method and system
US11068266B2 (en) Handling an input/output store instruction
CN110806960B (en) Information processing method and device and terminal equipment
WO2019192133A1 (en) Electronic apparatus, data link risk pre-warning method, and storage medium
WO2019019457A1 (en) Control center device, business system processing method and system, and storage medium
CN114826962A (en) Link fault detection method, device, equipment and machine readable storage medium
WO2019169771A1 (en) Electronic device, access instruction information acquisition method and storage medium
CN114449037A (en) Asynchronous communication push system
CN110650204A (en) Data access method, device, equipment and storage medium of NAS cluster
EP4064589A1 (en) Ethernet time synchronization method and apparatus
CN108241616B (en) Message pushing method and device
CN108306815A (en) A kind of method, apparatus, equipment and computer readable storage medium obtaining message
CN111371586B (en) Log data transmission method, device and equipment
CN111652681A (en) Receipt processing method, server and computer readable storage medium
CN116643929A (en) Single-node application fault processing method based on ZooKeeper
CN112134951B (en) Data transmission method, device, electronic equipment and storage medium
CN115658745A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN114116645A (en) Log management method and device for multi-processing unit, storage medium and electronic equipment
CN111552907A (en) Message processing method, device, equipment and storage medium
CN110611583B (en) System service method, server 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