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

Message handling method

A message processing and message technology, applied in the computer field, can solve the problems of CPU and memory consumption, serious, no programmable mechanism for message queues, etc., to achieve the effect of utilizing server resources and optimizing performance

Active Publication Date: 2011-02-02
ULTRAPOWER SOFTWARE
View PDF3 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Its defect is: the thread pool still consumes native threads, which consumes a lot of CPU and memory in the case of high concurrency. Although the number of threads can be increased by modifying the configuration, the consumption of native resources cannot be effectively solved
Its defect is: the message queue itself does not have a suitable programmable mechanism, supports the corresponding plug-in processing mechanism for different message processing applications, and the on-demand flexible routing for different messages, which needs to be expanded on this basis

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 handling method
  • Message handling method
  • Message handling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, content, and advantages of the present invention clearer, the implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0028] The overall idea of ​​the present invention is: design a distributed calling framework, which is divided into client calling and server processing.

[0029] Such as figure 1 Shown, the steps of the present invention include:

[0030] Step S 1. The client writes the message to be processed asynchronously or offline into MSMQ (MicroSoft Message Queue, Microsoft Message Queue), and the Windows operating system automatically routes the message to the server according to the service address provided by the server.

[0031] In step S2, the server receives the message from the message queue, and then analyzes the message source parameter therein to generate a relationship name that can be extracted in an IOC (Inversion of Control, inversion o...

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 handling method which comprises the steps of: S1. using a client to route message needing asynchronous processing or off-line processing into a corresponding server terminal; S2. using the server terminal to receive the message, analyzing the message source parameters in the message, and generating a relation name which can be extracted from a control reversal (IOC) container; S3. extracting a message handler corresponding to the message from the IOC container by the relation name; and S4. handling the message in the respective message handler. The invention provides a universal frame used for shunting and asynchronous processing the message, and leads the server terminal to support that corresponding plug-in units are dynamically selected for handling aiming at different messages.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a message processing method in message distribution and performance optimization technology. Background technique [0002] In a large-scale website with a large number of visits and high concurrency, the thread consumption of the web server is very serious, and thread resources are very precious. How to improve thread utilization and request responsiveness is often the key point of website performance optimization. However, there are often some high-concurrency, high-time-consuming, and low-real-time operations in the system. The results of these operations do not need timely feedback for website users. and responsiveness have a severe impact, reducing the throughput of the service. In this way, how to distribute these messages and perform asynchronous processing becomes important. The asynchronous call framework provides a general model for handling such calls. [0003] Exi...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46H04L29/06H04L12/58
Inventor 陈俊彪
Owner ULTRAPOWER SOFTWARE