Back to Search Start Over

Stage based parallel programming model for high concurrency, stateful network services: internals and design principles

Authors :
Chen, Yan
Fan, Xinyuan
Yang, Wenjun
Chen, Kai
Xu, Guozhi
Source :
International Journal of High Performance Computing and Networking. Sept 28, 2005, Vol. 3 Issue 1, 33
Publication Year :
2005

Abstract

Byline: Yan Chen, Xinyuan Fan, Wenjun Yang, Kai Chen, Guozhi Xu Recent research has revealed that the conventional threaded programming model exhibits poor performance under high concurrency workloads. Moreover, with emerging stateful network services, where concurrent states can go to thousands, the traditional 'thread per request' solution is no longer feasible. To meet this challenge, people promote a new parallel programming model, stage-based programming, where the whole service logic is viewed as a set of stages, each driven by a limited number of threads and capable of communicating with others through message passing. In this paper, we show two main streams of stage design, Thread-Over-Stages and Thread-Per-Stage. Due to the advantages in Thread-Per-Stage, we promote this solution and reveal three key design principles for delivering a high performance stage-based design. They are: on a uniprocessor system, the number of stages should not be too large - for most fine grained network services, it should not be over ten; for stages with blocking calls, a good estimation of the number of threads for that stage can be gotten by (call arrival rate o blocking time); and to deliver temporary messages quickly, it is much better to locate this part of the services in a separate nonblocking stage. We implement a sample SIP proxy server to prove our arguments.

Details

Language :
English
ISSN :
17400562
Volume :
3
Issue :
1
Database :
Gale General OneFile
Journal :
International Journal of High Performance Computing and Networking
Publication Type :
Academic Journal
Accession number :
edsgcl.143300404