The invention discloses a real-time message pushing method and system, which includes: pushing message setting, including: setting the content, pushing time and receiving terminal of the pushing message; putting the set pushing message into message pushing queue; grouping the receiving terminal to obtain more than one receiving terminal group; and the grouping method includes: integrating the receiving terminal according to the receiving terminal. The message push system groups the receiving terminals; adds the receiving terminal group to the task distribution system Gearman; when the push time arrives, the pre-created Gearman Worker process receives the receiving terminal group corresponding to the Gearman Worker process from the task distribution system Gearman and pushes the message content to the corresponding receiving terminal group. The technical scheme provided by the invention can use a unified message push interface to send messages in batches, thus improving the quality and efficiency of message sending.
【技术实现步骤摘要】
一种实时消息推送方法及系统
本专利技术涉及通信
,尤其涉及一种实时消息推送方法及系统。
技术介绍
随着移动互联网的发展,目前大部分移动终端都支持实时消息推送功能,例如,新闻客户端的热点新闻推荐、即时聊天工具的消息提醒、电商产品的促销、企业应用的通知及各种审批流程的提醒等。这种基于网络的实时消息推送功能由于其成本低廉、即时性强、易于大规模发送等优点得到了广泛的应用,并在各移动终端APP的运营中占据着重要位置。然而,由于不同厂商的移动终端在出厂时集成了不同的消息推送系统,导致消息发送方的消息推送接口不统一,即消息在发送之前,需要适配不同的厂商,根据不同厂商的移动终端上所集成的消息推送系统而采用不同的接口进行推送。显然,这种方式操作复杂、容易出错、发送效率低。
技术实现思路
本专利技术旨在提供一种实时消息推送方法及系统,能够采用统一的消息推送接口对消息进行批量发送,提高了消息发送质量和效率。为达到上述目的,本专利技术采用的技术方案如下:一种实时消息推送方法,包括:推送消息设置,包括:设置推送消息的内容、推送时间和接收终端;将设置好的推送消息置入消息推送队列;对所述接收 ...
【技术保护点】
1.一种实时消息推送方法,其特征在于,包括:推送消息设置,包括:设置推送消息的内容、推送时间和接收终端;将设置好的推送消息置入消息推送队列;对所述接收终端进行分组,获取一个以上接收终端组;所述分组的方式包括:按照所述接收终端所集成的消息推送系统对所述接收终端进行分组;将所述接收终端组添加到任务分发系统Gearman;当到达所述推送时间时,预先创建的GearmanWorker进程从所述任务分发系统Gearman中领取与所述GearmanWorker进程对应的接收终端组,向所述对应的接收终端组推送消息内容。
【技术特征摘要】
1.一种实时消息推送方法,其特征在于,包括:推送消息设置,包括:设置推送消息的内容、推送时间和接收终端;将设置好的推送消息置入消息推送队列;对所述接收终端进行分组,获取一个以上接收终端组;所述分组的方式包括:按照所述接收终端所集成的消息推送系统对所述接收终端进行分组;将所述接收终端组添加到任务分发系统Gearman;当到达所述推送时间时,预先创建的GearmanWorker进程从所述任务分发系统Gearman中领取与所述GearmanWorker进程对应的接收终端组,向所述对应的接收终端组推送消息内容。2.根据权利要求1所述的实时消息推送方法,其特征在于,还包括:统计消息推送结果;所述消息推送结果包括:成功接收所述消息内容的接收终端的数量,所述消息内容被点击的数量。3.根据权利要求2所述的实时消息推送方法,其特征在于,还包括:根据所述成功接收所述消息内容的接收终端的数量和所述消息内容被点击的数量,计算消息内容点击率。4.根据权利要求3所述的实时消息推送方法,其特征在于,还包括:查询所述消息推送结果和所述消息内容点击率。5.根据权利要求1所述的实时消息推送方法,其特征在于,所述分组的方式还包括:按照所述接收终端所使用的语言对所述接收终端进行分组。6.一种实时消息推送系统,其特征在于,包括:推送消息管理模块,用于...
【专利技术属性】
技术研发人员:古忠志,徐滢,
申请(专利权)人:成都品果科技有限公司,
类型:发明
国别省市:四川,51
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。