实时活动提要 - 代码/平台实施?
我正在为我的网站上的实时活动源定义规格。我已经完成了数据模型的后端,但开放区域是实际的代码开发,我的开发团队在其中迷失了使提要工作的最佳方法。这纯粹是通过编写自定义代码来完成还是我们需要使用现有框架来使提要实时工作?向我提出的一些建议是为此使用反向 AJAX。有人提到让客户端每隔 x 秒轮询一次服务器,但我不喜欢这样做,因为如果没有更新,这是不需要的服务器流量。我还提到了像 light Streamer 这样的推送引擎,可以从服务器推送到浏览器。
那么最后:路在何方?是不是代码相关,纯粹推送SQL请求,使用框架,使用平台等。
我的平台是用PHP codeignitor编写的,DB是MySQL。
活动流将有很多活动。我正在开发的社交网络上有 42 个组件,每个组件都有大约 30 种可以流式传输的独特活动。
I am defining out specs for a live activity feed on my website. I have the backend of the data model done but the open area is the actual code development where my development team is lost on the best way to make the feeds work. Is this purely done by writing custom code or do we need to use existing frameworks to make the feeds work in real time? Some suggestions thrown to me were to use reverse AJAX for this. Some one mentioned having the client poll the server every x seconds but i dont like this because it is unwanted server traffic if there are no updates. I was also mentioned a push engine like light streamer to push from server to browser.
So in the end: What is the way to go? Is it code related, purely pushing SQL quires, using frameworks, using platforms, etc.
My platform is written in PHP codeignitor and DB is MySQL.
The activity stream will have lots of activities. There are 42 components on the social networking I am developing, each component has approx 30ish unique activities that can be streamed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 http://www.stream-hub.com/
Check out http://www.stream-hub.com/
我一直在使用 superfeedr.com 和 Rails,我可以告诉你它运行得非常好。以下是有关它的一些事实:
优点
缺点
总的来说,我会推荐 superfeedr 作为满足您需求的良好解决方案。
I have been using superfeedr.com with Rails and I can tell you it works really well. Here are a few facts about it:
Pros
Cons
Overall I would recommend superfeedr as a good solution for what you need.