摘要
随着智能手机和平板电脑等移动多媒体终端的普及和4G的加速发展,移动互联网近年呈现了迅猛的发展态势。基于Android操作系统的各类APP应用如雨后春笋,影响着人们的生活习惯。面向移动端的推送服务通过分析用户喜好给用户推送其感兴趣的内容,能大大提升用户的活跃度和留存率,因此成为了APP应用不可或缺的重要组成部分。然而由于Android官方的消息推送机制C2DM(Cloud to Device Messaging)却有着覆盖率偏低的缺陷,APP开发者需要自己开发消息推送系统。本文通过研究开源消息推送和即时通信系统,分析比较常用的网络通信协议和网络IO框架,最终采用Java NIO网络框架Netty和开源数据序列化工具Protocol Buffers实现了轻量级的面向移动端的推送服务系统。
With the popularity of smart phones and the rapid development of 4G,Mobile Internet has experienced an explosive development in recent years.A variety of APPs based on Android have emerged,affecting people's hab-its.By pushing content to the user through analysis of the user's preferences,push services for mobile terminal greatly improved the customer retention,therefore become an important integral part of the APP.Since the Android's official message push mechanism C2DM(Cloud to Device Messaging)reached a low coverage,APP developers need to develop their own push messaging service.By studying the open source of message push and instant messaging systems and analyzing the more commonly used network communication protocols and network IO framework,the article has achieved a lightweight push service system for the mobile terminal by using Netty,the Java NIO framework and the open source data serialization tool,Protocol Buffers.
出处
《软件》
2015年第12期1-4,21,共5页
Software
基金
国家自然科学基金项目(编号:61401040
61372110)
国家科技支撑计划课题(编号:2014BAK12B00)