如何通知大量关注者?
假设一个人有很多追随者。 此人发布了一个故事,应用程序应通知所有关注者。如果关注者数量不太大,我们可以在用户单击提交按钮时发送电子邮件。
但是,如果有些人有成千上万的关注者,你将如何实施通知系统呢?
Assume one person have a really many followers.
This person post a story and app should notify all followers. If number of followers not too big we can just send email when user clicked submit button.
But how will you implement notification system if some people will have thouthands of followers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与其向每个人发送电子邮件,不如寻找发布/订阅方法。
例如,如果您通过 RSS 源提供更新,人们可以订阅该源以接收更新。您只需在 RSS 提要中显示更新,任何正在“收听”该提要的人都会使用该更新。
http://www.whatisrss.com/
Rather than emailing everyone, look for a publish/subscribe method.
For example, if you made the updates available via an RSS feed, people could subscribe to the feed to receive updates. You just display the update in the RSS feed and it is consumed by anyone who is "listening" to that feed.
http://www.whatisrss.com/