基于RPC的集中式消息推送平台

 2022-06-23 08:06

论文总字数:26324字

摘 要

淘票票是中国电影最大的宣发营销平台和泛娱乐平台之一,为了提供更好的用户体验,完备的消息推送能力是不可缺少的,更是至关重要的。本文研究的集中式消息推送平台为消息推送业务提供系统化的支撑,具有以下意义:

  1. 将分散到各个上游业务域的消息推送服务收敛到一个系统,便于统一监控和维护
  2. 提供可配置、可伸缩、高可用的消息推送服务
  3. 对消息推送业务需求的变更作出快速响应,提高开发效率

本文结合消息推送的业务背景,应用RPC、分布式缓存、消息队列、定时任务调度等基础设施中间件,搭建了一个集中式消息推送平台。该平台实现消息即时推送和延时推送、服务可配置等功能需求,同时满足高并发、低延时等性能需求,并接入高效的运维机制,以实现对业务变更和故障等的快速响应。本文具体工作如下:

  1. 基于RPC,以微服务的方式实现对消息推送服务的系统化支撑,实现可配置、可伸缩、高可用的消息推送服务
  2. 通过对计算资源的合理调度和对中间件的合理运用,满足高并发、低延时的性能要求
  3. 接入监控报警机制,对故障做出快速响应,提高系统的可用性
  4. 通过调用链追踪和配置管理中心实现对系统的高效运维

关键词:消息,分布式,RPC,面向服务

Abstract

The Taobao Film is one of the largest online-to-offline announcement marketing platform and the largest Pan-entertainment platform. In order to provide customers with a better user experience, improve the ability to interact with users, a comprehensive message push service is indispensable and even more crucial. The centralized message push platform provides systematic support for the message push service and has the following significance:

1) Converge the message push service distributed to each upstream service domain to a system to facilitate unified monitoring and maintenance

2) Provide configurable, scalable, and highly available message push services

3)Respond quickly to changes in message push business requirements and improve development efficiency

This article combines the business background of message pushing, using infrastructure middleware such as RPC, distributed cache, message queue, and scheduled task scheduling to build a centralized message push platform. The platform implements functional requirements such as message push, delay push, and service configurability. It also meets performance requirements such as high concurrency and low latency, and accesses an efficient operation and maintenance mechanism to quickly respond to service changes and failures. . The specific work of this article is as follows:

1) Based on RPC, system supports for message push services is implemented in the form of microservices to implement configurable, scalable, and highly available message push services

2) Through reasonable scheduling of computing resources and rational use of middleware, high concurrency and low latency performance requirements are met

3) Access monitoring alarm mechanism to respond quickly to faults and improve system availability

4) Implement efficient operation and maintenance of the system through call chain tracing and configuration management center

KEY WORDS: Message, Distribution, RPC, Service-oriented

目录

摘要 I

Abstract II

第一章 绪论 1

1.1 选题背景及研究意义 1

1.2 研究思路与研究方法 1

第二章 理论及技术基础 3

2.1 概述 3

2.2 软件体系结构 3

2.3 通信方式 4

2.4 缓存 5

2.5 本章小结 5

第三章 业务场景概述及需求分析 7

3.1 业务背景 7

3.1.1 核心价值 7

3.1.2 业务定位 7

3.2 功能性需求分析 7

3.2.1 即时推送与延时推送 7

3.2.2 消息类型与业务场景两个维度的扩展性 7

3.2.3 渠道定制与发送策略 8

3.2.4 服务可配置化 8

3.3 非功能性需求分析 9

第四章 系统设计与实现 10

4.1 总体架构 10

4.2 代码结构 11

4.2.1 面向对象 11

4.2.2 控制反转与依赖注入 12

4.2.3 AOP(面向切面编程) 12

4.3 技术实现 13

4.3.1 RPC 13

4.3.2 数据库设计 14

4.3.3 分布式缓存 15

4.3.4 分布式锁 15

4.3.5 并发控制 16

4.3.6 定时消息队列与任务定时调度系统 16

4.3.7 消息流水状态机设计 17

4.3.8 服务可配置化-渠道定制与发送策略配置 17

4.4 系统运维 18

4.4.1 集群持久化配置与线上配置实时管理 18

4.4.2 调用链跟踪 19

4.4.3 监控与告警 20

第五章 系统分析与测试 22

5.1 实验场景介绍 22

5.2 实验性能评估指标 22

5.3 实验设计及结果分析 23

第六章 总结与展望 24

6.1 工作总结 24

6.2 工作展望 24

致谢 26

参考文献 27

绪论

选题背景及研究意义

淘票票由阿里影业推出,是国内最大的泛娱乐产业营销平台之一。

淘票票业务于2014年底上线,业务范畴除电影外,还扩展至演出、体育等泛娱乐业,定位由线上电影售票平台转变为具有线上线下双向宣发能力的泛娱乐产业营销平台。未来,淘票票将面向泛娱乐行业开放线上售票、双向、精准营销、用户互动等能力,围绕票务拓展更多的应用场景,帮助合作伙伴开展线上线下结合的整合营销,为用户提供更便捷的服务。

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

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

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