V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  hustlzp  ›  全部回复第 63 页 / 共 86 页
回复总数  1711
1 ... 59  60  61  62  63  64  65  66  67  68 ... 86  
@aerolqr 原来如此...
@ultragtx 原来如此,还以为从Air开始,太小白了...
@flypiggy 受教...
2014-01-01 22:18:31 +08:00
回复了 yqyq1020 创建的主题 分享创造 2013年最后一天造的轮子,顺带求新年红包
手机敲代码...狂拽酷炫吊炸天!
2014-01-01 16:09:10 +08:00
回复了 mr7 创建的主题 程序员 2013年我们读过的好书(更新中)
铃木俊隆《禅者的初心》
山下英子《断舍离》
2014-01-01 16:07:58 +08:00
回复了 mr7 创建的主题 程序员 2013年我们读过的好书(更新中)
@hustlzp 啊,不好意思,我回的是你的《黑客与画家》...我觉得新版的封面太丑了,完全和第一版的没法比...
2014-01-01 10:43:13 +08:00
回复了 mr7 创建的主题 程序员 2013年我们读过的好书(更新中)
@aku 看一眼就要吐了
2014-01-01 10:42:22 +08:00
回复了 karthao 创建的主题 程序员 来说说你在新的一年技术上有什么打算?
angular.js
Android
2013-12-31 18:39:02 +08:00
回复了 arbipher 创建的主题 程序员 请教下权限设计(不知道是不是这个词)
@arbipher django的话应该很成熟了,github上搜一下。
2013-12-31 10:52:34 +08:00
回复了 arbipher 创建的主题 程序员 请教下权限设计(不知道是不是这个词)
Flask的话,Flask-Principal这个插件不错。

http://pythonhosted.org/Flask-Principal/
2013-12-31 10:50:37 +08:00
回复了 arbipher 创建的主题 程序员 请教下权限设计(不知道是不是这个词)
@wubo19842008 感谢分享,让我知道还有RBAC这个概念...
2013-12-29 17:01:12 +08:00
回复了 FRHong 创建的主题 问与答 2014 New Year Resolution
找到中意的工作
个人技能和个人项目要有大进展
找到真爱
2013-12-27 10:31:45 +08:00
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@dawncold 是的,赞同你的看法。我目前的设计就是只存储文本。
2013-12-26 23:11:44 +08:00
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@gfreezy
@alex321

目前是第一种情形,所以无需动用message queue。

后面要做“动态关注”的话,估计用户多了就得上消息队列。
2013-12-26 17:49:12 +08:00
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@alex321 恩,我在这方面经验太少,得找他们请教下~
2013-12-26 17:04:44 +08:00
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
过段时间会把notification的实践经验分享出来
2013-12-26 16:35:16 +08:00
回复了 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 16:11:17 +08:00
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@gfreezy 设计得不错,非常有参考价值,感谢分享!
2013-12-26 12:06:28 +08:00
回复了 hustlzp 创建的主题 程序员 如何设计 notification 表?
@zzNucker 3x,问问题之前需要做做功课嘛~
1 ... 59  60  61  62  63  64  65  66  67  68 ... 86  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1000 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 19:26 · PVG 03:26 · LAX 12:26 · JFK 15:26
Developed with CodeLauncher
♥ Do have faith in what you're doing.