• Email:
  • Feeds

  • 基于分发机制的公众订阅平台设计


    如下图所示,一个基于分发机制的公众订阅平台,是指一个移动信息发布系统,可提供订阅功能的系统企业帐号可以给所有的订阅用户按照一定的条件(如地域或用户特征)群发消息,系统的主要关注点包括

    • 分发的throughput。由于群发的放大效应,如何让拥有大量订阅用户的企业帐号能及时投递消息。以及到客户端的移动push通道也存在throughput的问题。
    • 存储的性能,根据客户端的访问型态,如果考虑数据保存在云端,大多需要更新最近联系人、用户与企业订阅帐号之间的会话索引,以及每个会话的未读提醒数。由于客户端本地也可以保存部分数据,因此不同的实现型态可能云端存储及更新的数据有一定差异。
    • 分发及存储模型。分发指数据投递推拉方式的选取,由于筛选条件及通过移动网络主动push的可能性,推送方式可以更好满足业务型态。存储模型指如何选择合适的模型让上万订阅用户的推送能更及时快捷。

    (图中紫色为可能的瓶颈点)

    从图来看,实现并不复杂,但是当系统规模增大之后,如要达到投递即时性需要考验一些工程能力。
    紫色的三个框都可以用key/list来表达,redis的性能和功能可以匹配这样一个场景,这也是为什么近几年redis会如此流行,但离完美匹配类似场景还有一定距离。

    9 Comments  »

    1. pi1ot says:

      这个图基本不说明也不解决什么问题吧,只是一个问题的描述。

    2. test says:

      do it。

    3. strider says:

      不知道微信公众平台是怎么做的呢..

    4. 很高端啊~~~~~~

    5. 有风 says:

      略显简单了一些。

    6. The Dell product key was stuck to a instruction manual written in German. Like I said,ANSI B5.31, no mention of this on the packaging before I opened the case. But based on your last post,ANSI C78.1406-1983, I can now see that the way you would probably reconcile the two is to say,ANSI C78.1382-1996, essentially,ANSI Z535 SERIES, that you are perfectly entitled to act and communicate in a certain way despite it being an unacceptable way to behave (in your eyes) for a majority of the population.

    7. Angelia says:

      Today, I went to the beach with my children. I found a sea
      shell and gave it to my 4 year old daughter
      and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed.
      There was a hermit crab inside and it pinched her ear.
      She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

    8. Asking questions are genuinely fastidious thing if
      you are not understanding anything entirely, except this post presents fastidious understanding yet.

    9. UL 1517 says:

      The actors and the producers will disappear. So will the cricketers and the franchisee owners, in case IPL fails with the paying public. Hair loss people should unite issue a complaint to Seven on your Side. To do an investigation (how many complaints does WEN receive on this. The Bertuzzi case provides a good example of how challenging this dilemma can be. By participating in the hockey game,UL 493, Steve Moore implied that he consented to be touched in a variety of violent ways. But having ann

    RSS feed for comments on this post, TrackBack URI

    Leave a Comment