Django:如何构建异步关注的活动源
我正在尝试在 Django 应用程序中基于异步好友关系构建活动源/新闻墙。我发现之前的SO帖子 ,但似乎太简单了。有一个很好的 Quora 对此问题的回答来自 Facebook News Feed 的创建者 Ari Steinberg。
不幸的是,我仍处于规划阶段,没有为这个问题编写任何代码。棘手的部分似乎是如何快速更新提要,而无需致电您关注的每个人,对他们的活动进行排序,然后呈现您想要显示的数量。让用户登录并快速查看他们关注的用户的最新帖子是我主要关心的问题。
有人在 Django 中尝试过这个吗?有什么建议吗?很抱歉这不是非常深入,但提前感谢您的想法。
I am trying to build an activity feed/news wall in a Django app based on an asynchronous friend relationship. I found this previous SO post, but it seems too simple. There is a good Quora answer to this problem from Ari Steinberg, who made the Facebook News Feed.
Unfortunately, I am still in the planning stages and do not have any code written for this problem. The tricky part seems to be how to update a feed quickly without calling every person you follow, sorting their activities, and then rendering the amount you want to display. Letting the user login, and quickly see the most recent posts from the users they follow is my main concern.
Has anyone tried this in Django? Have any advice? I am sorry this isn't incredibly in-depth but thanks in advance for your thoughts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论