V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  hustlzp  ›  全部回复第 64 页 / 共 86 页
回复总数  1716
1 ... 60  61  62  63  64  65  66  67  68  69 ... 86  
2013 年 12 月 26 日
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@alex321 恩,我在这方面经验太少,得找他们请教下~
2013 年 12 月 26 日
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
过段时间会把notification的实践经验分享出来
2013 年 12 月 26 日
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@alex321

系统中维护一个公用的消息任务队列?有消息产生就往队列里塞,队列的worker负责处理并分发到各user?是这个意思吗?

在stackoverflow上看到的一个回复:

http://stackoverflow.com/questions/1315991/design-pattern-notification-system

"Create a system queue, each message added to this queue has a list of "consumers" and the content. The main message pump processes each message and sends the message to all consumers.

Lets say 2 people befriend each other. You add a message to the main system queue that A is friends with B and consumers are both A and B. When your message "pump" (processor) sees this message it adds it to the queue of A and the queue of B. So now user A and user B have a new message that they are friends. In turn each user has a message processor, so when it sees a message called "I am friends with [someone]" it processes this as add a new entry to the "wall" visible to friends of A that "A is friends with B", etc.

This is overly simplistic but hopefully shows how message queues can be used for this (very similar system is used as the windows UI framework) so there is already an existing example and there are plenty of synchonized message queue patterns you can use."
2013 年 12 月 26 日
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@gfreezy 设计得不错,非常有参考价值,感谢分享!
2013 年 12 月 26 日
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@zzNucker 3x,问问题之前需要做做功课嘛~
2013 年 12 月 25 日
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@dagger 不错!
2013 年 12 月 24 日
回复了 hustlzp 创建的主题 程序员 春节之前,大家有 todo-list 么?
@zhujinliang 萌妹子折腾程序的不多哦,加油!
我最近也在换wordpress,换到FarBox啦~
DO速度不错
2013 年 12 月 22 日
回复了 anjunecha 创建的主题 问与答 Farbox的服务突然不能使用了
@FarBox 求开通付费渠道...
2013 年 12 月 20 日
回复了 hustlzp 创建的主题 VPS [求教] 打算入手Linode,没有信用卡,办什么卡比较好?
@21grams 这样啊...
2013 年 12 月 20 日
回复了 hustlzp 创建的主题 VPS [求教] 打算入手Linode,没有信用卡,办什么卡比较好?
@wzzyj8 感谢,真心详细!财付通目前还没有恢复。
我让我爸妈去招行办张卡了。
2013 年 12 月 20 日
回复了 hustlzp 创建的主题 VPS [求教] 打算入手Linode,没有信用卡,办什么卡比较好?
@caonan
@zjgsamuel
@21grams 看来大家都觉得招行不错哈!
2013 年 12 月 20 日
回复了 hustlzp 创建的主题 VPS [求教] 打算入手Linode,没有信用卡,办什么卡比较好?
@ericFork 感谢大哥,我让我爸妈去招行办张卡了。
2013 年 12 月 20 日
回复了 hustlzp 创建的主题 VPS [求教] 打算入手Linode,没有信用卡,办什么卡比较好?
@Kvm 原来如此...
2013 年 12 月 20 日
回复了 hustlzp 创建的主题 VPS [求教] 打算入手Linode,没有信用卡,办什么卡比较好?
@xdeng
@wzxjohn 财付通现在暂停了虚拟卡的申请,说什么第一批国际账号完了,有了再开通。
2013 年 12 月 19 日
回复了 zyAndroid 创建的主题 问与答 冬天来了,敲代码的时候腰上凉飕飕的,怎么办?
地黄丸。
Werkzeug Flask Tornado
2013 年 12 月 18 日
回复了 chisj 创建的主题 问与答 为什么微软不停止开发IE
今天刚升级IE11,挺不错的。
2013 年 12 月 16 日
回复了 bshu 创建的主题 分享创造 用nodejs新做的项目,娱乐问答类
@bshu 同求分享,我的也经常僵死。。。
1 ... 60  61  62  63  64  65  66  67  68  69 ... 86  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   940 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 19:54 · PVG 03:54 · LAX 12:54 · JFK 15:54
♥ Do have faith in what you're doing.