开发者

Activity feed on NO-SQL storage

开发者 https://www.devze.com 2023-02-25 15:59 出处:网络
HI...i have been thinking about a notifications system...which send users an alert when data has arrived for some subscription their made or a friend has made some activity (facebook style).

HI...i have been thinking about a notifications system...which send users an alert when data has arrived for some subscription their made or a friend has made some activity (facebook style).

The thing is i would like to storage it using a no-sql database (mongodb, cassandra) bu开发者_JAVA技巧t i cant still figure out how to know when data has changed...should i handle that myself? or the no-sql databse?...like registering a callback??...or just making a query every n seconds?

Thanks in advance!


MongoDB has a tailable cursor that you might find useful for this use case.


You also may want to check out Redis pubsub queues. http://redis.io/topics/pubsub

0

精彩评论

暂无评论...
验证码 换一张
取 消