Server designing method based on semi-synchronization, semi-synchronization and pipe filter mode

A semi-synchronous, semi-asynchronous, pipeline filter technology, applied in the direction of program synchronization, multi-programming device, resource allocation, etc., can solve the problem that business logic and network logic are not separated, reduce business processing logic modules, and increase system errors. and other problems, to achieve good scalability and concurrency, relieve server pressure, and improve operational capabilities.

Inactive Publication Date: 2014-12-17
HUAQIAO UNIVERSITY
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, this server model has the following disadvantages: a. Business logic and network logic are not separated, and the two will affect each other, which will also increase the probability of system errors; b. When a large number of network connection requests arrive at the same time, Will create the same number of threads as the number of network connection requests, which will take up a lot of system resources, and in the worst case may cause system paralysis; c, there is coupling between business logic and network logic, once the business logic changes, the system Large changes are required, which will increase the difficulty of system maintenance; d. If all threads are created in the same process, when any one of the threads fails, the entire application will crash; e. Frequent communication, which consumes a lot of system resources and leads to poor system performance
In this model, the number of threads in the thread pool is fixed, and a thread can provide services for different network connections at different times. Excessive load, but its disadvantage is: when the number of concurrent network connection requests is greater than the number of threads in the thread pool, it will not be able to process all network connection requests at the same time, which will cause some network connection requests to be blocked for a certain period of time
But this kind of network server also has the following disadvantages: a. When the business logic is more complicated (such as dealing with more complicated network application protocols), the thread pool strategy of the semi-synchronous layer is not flexible enough; b. The concurrency level is relatively single; c. Cannot dynamically increase and decrease business processing logic modules

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
  • Server designing method based on semi-synchronization, semi-synchronization and pipe filter mode
  • Server designing method based on semi-synchronization, semi-synchronization and pipe filter mode
  • Server designing method based on semi-synchronization, semi-synchronization and pipe filter mode

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0053] Such as Figure 7 As shown, the black solid circle in the figure represents the network port; the hollow circle represents the node; the dotted ellipse represents the thread pool; the rectangular box containing multiple small rectangles represents the message queue. The network server uses a separate thread to monitor the network port, and each data processing module has an independent thread pool and message queue to process network information and buffer processing results, realizing decoupling between thread pools. The number of threads in each thread pool can be specified according to the specific situation. After the design is completed, the running process of the web server is as follows:

[0054] (1) The client initiates a network connection request to the network server, and sends data to the server after the network connection is established;

[0055] (2) network server listens to the thread of designated port, just establishes network connection after receivi...

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 provides a server designing method based on semi-synchronization, semi-synchronization and a pipe filter mode. The method includes the steps of firstly, allowing a semi-synchronization layer to comprise a plurality of data processing modules; secondly, applying the pipe filer mode to the data processing modules of the semi-synchronization layer; thirdly, sequentially linking the data processing modules through a link table; fourthly, applying a binary exponential backoff policy to the application layer of a client. By the method, a whole server system has the advantages that system concurrency is increased greatly, and good system expansibility is achieved; the data processing modules can be dynamically added or deleted, and efficient and flexible data processing is achieved; server pressure can be effectively relieved by the binary exponential backoff policy, and server operation capability is increased at the same time.

Description

technical field [0001] The invention relates to a server design method, in particular to a server design method based on semi-synchronous, semi-asynchronous and pipe filter modes. Background technique [0002] With the continuous development of information technology, emerging computers, mobile phones and various media terminals are also emerging, which also makes it a challenge for these different terminals to communicate and cooperate with each other. As the core component of the distributed application, the network server's design will directly affect the performance of the entire distributed application. Although some relatively mature design patterns have been applied to the network server and have improved the performance of the server to a certain extent, such as the semi-synchronous and semi-asynchronous mode, etc., the currently used network server still has one or another. problem, the structure and disadvantages of these web servers are as follows: [0003] (1) ...

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): H04L29/08G06F9/52G06F9/50
Inventor 王成赖雄鸣谢维波缑锦郑黎晓李静官威
Owner HUAQIAO UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products