Font Size: a A A

The Research And Application Of Asynchronous Push Technology Based On COMET Model

Posted on:2015-02-25Degree:MasterType:Thesis
Country:ChinaCandidate:L L LiuFull Text:PDF
GTID:2428330488499825Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of smart mobile devices,smart phones,tablet PCs have become an indispensable part of people's lives.Mobile Internet and mobile applications not only bring convenience to our lives but also bring new challenges to the server push technology.Server push technology need to ensure the real-time information,while also taking into account the instability of the mobile network,low CPU processing capability of mobile devices,limited memory and other issues.Hence the mobile platform need a simple,real-time,high-concurrency push technology.In this paper,the server push technology of android platform has been studied on the basis of the transmission protocol and server push mode has been improved to achieve a high performance push model,the paper specifically work as follows:(1)extending of the light weight/subscribe protocol MQTT(Message Queue Telemetry Transport Protocol),the client sends a message PINGREQ each heartbeat cycle to the server.In this paper,reserved bits PINGREQ message redefined in order for the type of client hardware devices to distinguish.(2)Comet model by maintaining a long way http connections to achieve the initiative to push server technology between the server and client,because it is too much to maintain the server connection,making the thread utilization on the server side is not high,and with the poor server performance.Currently,the mainstream use NIO technology to solve the problem of low server performance of the Comet models.But NIO technology is synchronous I/O model,there is room for the data read and write stage being improved,so this paper based on the new platform features Java SE7 proposed design of a new asynchronous I/O model,the model only isolated incidents responsible for asynchronous I/O read and write operations to be registered,and the real I/O read and write operations are done by the underlying operating system.This article will provide a Java API package is AsynchronousAccept,AsynchronousTransmission,AsynchronousGroupManagement,AsynchronousHandler four models used to call the comet realize the asynchronous push model comet mode.(3)papers will be expanded lightweight MQTT protocol and asynchronous push model Comet mode to the Android platform based on the use of steel trading applications.This push and test validated the model by having a lower rate of resource consumption at high concurrency state,higher stability and better real-time.
Keywords/Search Tags:Comet, NIO framework, Asynchronous I/O, Push technology
PDF Full Text Request
Related items