• Email:
  • Feeds

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


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

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

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

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

    16 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

    10. UL 1437 says:

      how to create your own nikesIPT works by passing current through an inductor (usually an LC circuit to be specific with the appropriate sinewave input for the resonance of the circuit). The other end, attached to the device to be charged,UL 60950-23, has another LC circuit in it. The electromagnetic field from the charging station induces a current in the other inductor.. Meticulously take into account your budgeting requirements prior to buying an online hosting company to maximize your consump

    11. I have read so many posts concerning the blogger
      lovers however this post is really a good article, keep it
      up.

    12. the cancer risk of microwave popcorn a Pick up one loop and insert it through the end of another loop so you join the two loops together. Pull it tight enough to make the knot that forms small, but not so tight that the plastic breaks. If the loop is uneven, loosen the knot and adjust it.. When the twins were tiny,ANSI B93.54M, we used them for feeding. I would have a baby on each side. We propped them up a bit with a regular pillow. Anything you want that’s tiny and fun!After you’ve filled your

    13. UL 1569 says:

      Hanna thanks Mrs. G. For pulling her bestie (aka Alison) from the ground,UL 1439, and Mrs. This low price makes me tingle,UL 325, because these piggy cuts are perfect to make homemade sausage. Cut the meat and fat off the bone, put it in the freezer just until it becomes firm,UL 1998, then mince it (but not too fine) using a meat grinder. Aggressively season it to your liking (I like to add a little late harvest riesling, just because) and either stuff into sausage casing (also at Sobeys) using

    14. Where possible, reduce the impact of things other people say,ugg fox fur boots 5854, as these lingering messages are a form of control from the past. Doctors advise against intentionally sharing diseases, because duh,ANSI B71.3-2005, but some parents remain determined to make their children suffer. I didn’t expect a ranger for pace of play,ANSI B65.3-2001, and I didn’t get one. So it only more recently than 1975 that the taboo has broken down and people have started to accept that there are inte

    15. WOW just what I was looking for. Came here by searching
      for bumper scuff repair Leeds

    16. Catalina says:

      What’s up to all, how is all, I think every one is getting more
      from this web site, and your views are nice for new visitors.

    RSS feed for comments on this post, TrackBack URI

    Leave a Comment