Font Size: a A A

Design And Mobile Internet Applications Of ACE-based High Concurrent Instant Messaging Server System

Posted on:2014-06-04Degree:MasterType:Thesis
Country:ChinaCandidate:X CengFull Text:PDF
GTID:2268330425976760Subject:Electronics and Communications Engineering
Abstract/Summary:
With the development of human society and mobile Internet technology, more attentionhas been paid to the instant communication technology, which narrows the distance betweenpeople and has a positive impact on people’s lives and work. Although the computer hardwareis developing at an alarming rate, people’s demand for instant communication also has asignificant growth. Therefore, it has become a key issue on how to build a highly availableand high concurrency instant messaging server.In this paper, based on the ACE (Adaptive Communication Environment) as the systemdevelopment platform, a lightweight and instant messaging server model is designed that canrun perfectly on hosts of general performance. The server model is characteristic of goodconcurrent performance, high system capacities, good system stabilities and it is widelyapplied in the mobile Internet video sharing system.The paper mainly proposes ACE, a network I/O multiplexing model and the ACE-basedsemi-synchronous/semi-asynchronous thread pool model solution, which takes the greatestadvantage of the use of hardware resources and improves the concurrent performance of oursystems. It tries to decouple the system architecture with the service logic business logic andimprove the reusability of our system. The adoption of the ACE middleware technology cannot only guarantee the performance and stability of the system, but also reduce the difficultiesof development and improve the efficiency of development, which turns out to be alightweight development. The system makes full use of the network I/O model of ACE, whichmakes the system capacity reach the limit number of Linux socket ports and achieve the targetof high capacity of a single server. In addition, the system also employs the fast cachingtechnology of Memcached and flexibly applies it to the heartbeat mechanism.Finally, some functional and performance tests have been taken for the instant messagingserver. And the results show that the server can fully use the system resources in a businesscontext to maintain good concurrency performance, a relatively high system capacity andgood system stabilities. All in all, the design of this system greatly improves the performanceof a single server’s application...
Keywords/Search Tags:ACE, Reactor, semi-synchronous/semi-asynchronous thread pool, Memcached
Related items