Unlock instant, AI-driven research and patent intelligence for your innovation.

Message sending implementation method based on asynchronous thread pool

A technology of message sending and asynchronous thread, which is applied in inter-program communication, multi-program device, program control design, etc. It can solve the problems of difficult control of network transmission, waste of resources in repeated construction, and affect the quality of main message, so as to reduce queue blocking The probability of ensuring real-time and accuracy, and the effect of portability

Pending Publication Date: 2020-12-15
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the development of information technology, various distributed message queues emerge in endlessly. Most of the message queues themselves will combine the distributed framework to meet the basic principles of asynchronous transmission. The network is the most uncontrollable factor in information technology. The message may not reach the target due to various reasons. The transmission of the network is difficult to control, and the quality of network communication becomes difficult to predict. Many large-scale distributed messages The construction of the system is very difficult due to communication problems. Although different manufacturers have unique requirements for their own products, most of them have basically the same requirements for the message system. If the message system is integrated into other business logic, it will not only affect the quality of the main message sending, but also It is also easy to cause duplication of construction and waste of resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message sending implementation method based on asynchronous thread pool
  • Message sending implementation method based on asynchronous thread pool
  • Message sending implementation method based on asynchronous thread pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

[0024] The present invention provides a method for implementing message sending based on asynchronous thread pool: after the message arrives at the message entrance and is filtered by an interceptor, the message is partitioned by using the factory mode, and the asynchronous thread pool is started for the partitioned message to call different sending platforms via the message queue to send the message .

[0025] At present, the main messages are mainly divided into in-site messages, short messages and emails. When the message arrives at the message entrance, it will first pass through the interceptor, and then use the factory pattern (Factory Pattern) to distinguish the message. Aft...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a message sending implementation method based on an asynchronous thread pool, and relates to the technical field of message processing. According to the method, when reaching amessage inlet, a message is filtered by an interceptor and then partitioned in a factory mode, and the asynchronous thread pool is started for the partitioned message to call different sending platforms through a message queue to send the message; message storage and message sending can be separated, the asynchronous thread pool and the message queue are combined in order to guarantee the real-time performance and accuracy of message sending, message sending only needs to pay attention to interaction with the message queue, good transportability is achieved, the advantages of the message queue are brought into play to the maximum extent, and the probability of queue blocking is reduced.

Description

technical field [0001] The invention discloses an implementation method, relates to the technical field of message processing, and in particular relates to an implementation method of message sending based on an asynchronous thread pool. Background technique [0002] With the development of information technology, various distributed message queues emerge in endlessly. Most of the message queues themselves will combine the distributed framework to meet the basic principles of asynchronous transmission. The network is the most uncontrollable factor in information technology. The message may not reach the target due to various reasons. The transmission of the network is difficult to control, and the quality of network communication becomes difficult to predict. Many large-scale distributed messages The construction of the system is very difficult due to communication problems. Although different manufacturers have unique requirements for their own products, most of them have b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/54
CPCG06F9/546G06F2209/548
Inventor 刘洋颜亮
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD