企业级消息推送平台的应用技术

 2021-12-17 09:12

论文总字数:19180字

摘 要

关键词:消息推送;XMPP协议;MQTT协议;时间片轮询算法

Applied Technology of Company Notification Push Platform

Abstract:With the coming of Internet era and the rapid development of mobile terminal, Many companies and users pay more attention to the importance of notification push. In electric power company, the company should push the water, electricity and coal bills to the users. In transportation industry, the transportation condition information should be pushed to the users. In the new media industry, the news even e-mails and advertisements should be pushed to the users. The importance of notification push mechanism has become increasingly emerging. We need to solve some problems of mobile terminal notification push mechanism and find some new thoughts for solving these problems.

This subject comes from the internal notification push project from Hangzhou Lang Xin Technology Ltd. According to the requirements of company’s project, I analyzed the Blackberry push mechanism, Apple push mechanism, Android push mechanism in the early stage. I also read and researched the MQTT and XMPP protocols and relevant articles. I made an Android push system which uses the time slice roll polling algorithm. This algorithm improves the Android push system and solves the power consumption and flow consumption problems under the persistent connection.

Key words: Notification Push; XMPP protocol; MQTT protocol; Time Slice Roll Polling Algorithm

目 录

摘要: I

关键词 I

Abstract II

Key words II

1、 绪论 1

1.1 背景 1

1.2 课题的研究意义 1

2、 主要相关技术 2

2.1 BlackBerry Push 2

2.2 Android的C2DM消息推送机制 3

2.3 苹果的APNS推送服务 4

3、 推送协议分析 8

3.1 XMPP协议基础 8

3.2 MOTT协议 9

3.3 小结 11

4、 移动终端消息推送平台设计与实现 12

4.1 系统概述 12

4.2 需求分析 12

4.2.1 移动应用注册 12

4.2.2 发送消息 12

4.2.3 平台管理 12

4.2.4 推送平台客户端 12

4.3 总体设计 13

4.4 连接方式 13

4.5 功能模块设计 15

4.5.1 接收服务器 15

4.5.2 发送服务器 15

4.5.3 推送客户端 16

4.6 消息推送机制得实现 16

4.6.1 功能实现 16

5、 展望与总结 19

致谢 20

参考文献 21

1、 绪论

1.1 背景

近几年来,在我们生活中接触了越来越多的消息推送,随着消息推送的火热,在移动终端的消息推送也迅速成为各大企业相关行业人士,计算机互联网从业人员,新闻媒体争相追捧的技术热点和利润焦点。除此之外,当今社会,处于信息爆炸的状态,每天我们接收的信息数以兆计,如何筛选信息也成为了很多人的难题。与此同时Apple watch的横空出世,也可能会全面改变消息推送的局面;让我们设想一下:比如下雨前的几个小时你抬手腕看时间,它会自动给你显示天气提醒你要变天。当你在开车时,只要你在拥堵路段附近,抬起手腕会自动显示拥堵的附近拥堵以及畅通的路段和该路段的限速。当你在家炒菜做饭做家务时候,电力公司推送消息告诉你应该交水电煤费用了。当你坐在自习室里,学校的教务系统告诉你,你应该还书和备考期末了,这是多么神奇和方便啊,通过这种方式,可以节约大量的人力物力还有各种资源。也避免了我们接受那么多让人耳晕目眩的信息。在中国,移动互联网业迅速蓬勃发展,但是还是缺少核心技术。

1.2 课题的研究意义

目前国内很多企业需要向用户推送消息,尤其是某些政府部门,比如电力公司和交通部门,为用户提供有用的信息会大大提高人们生活的质量,节省很多人工效率,有了直接向移动终端推送消息的机制,也就再也不用催费员挨家挨户来贴电费单子了,当你电费水费用光时,直接由电力公司推送账单和缴费通知到你的手机,这是多么方便的一件事啊。然目前很多企业并没有采用这种推送机制,原因就是推送机制还很不成熟,在推送服务器与移动终端连接的过程中,必须考虑到移动终端电池容量,网络流量费十分昂贵等方面,因此,由于长轮询和短轮询往往耗电量非常大,而长连接耗费流量又相当大,所以我们要想大力推广企业级移动消息推送技术,必须采用新的连接方式以解决推送服务器和移动终端连接过程中耗电量过大和耗费流量过多的问题,然后推广并大力发展,相信在不久的将来,我们都会享受到消息推送的福利的。

2、 主要相关技术

2.1 BlackBerry Push

在各类终端里,有很多以TCP/IP协议为标准的推送方式,最为大家所熟知的,那肯定是源自于加拿大的Research in Motion Ltd公司的手机邮件推送技术:这项意义非凡的技术,使用户可以根据对终端的设定,在终端接收新的mail。

下图显示blackberry的邮件推送的系统的总架构,在这几项里,包括推送的发起方,黑莓的基础架构,和blackberry的手持设备。

剩余内容已隐藏,请支付后下载全文,论文总字数:19180字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;