此处了解服务器推送。
我想将数据从我的网络应用程序实时推送到客户端。
我正在将 TCP 套接字视为选项之一。
对于 HTTP,我在此处找到了各种适用于 Java、PHP、Python 等的框架。
但我不知道这些是否支持 Push。
- 您会选择什么选项和框架
建议实施服务器推送?
- 您主张使用哪种语言来实现相同的功能?为什么?
Read about Server push here.
I want to push data to client from my web application in real time.
I was looking at TCP sockets as one of the options.
For HTTP I found a variety of frameworks for Java, PHP, Python and others over here.
However I don't know whether any of these support Push.
- What options and frameworks would you
suggest for implementing Server push?
- What language would you advocate for implementing the same and why?
发布评论
评论(8)
我现在正在使用Orbited,非常棒!
如果您正在进行聊天或订阅类型的工作,请使用
stompservice
和 Orbited。如果您正在进行一对一客户端映射,请使用 TCPSocket。
如果您愿意,我可以给您一些代码示例。
I'm using Orbited right now, it's great!
If you are doing chat or subscription type stuff use
stompservice
and orbited.If you are doing 1 to 1 client mapping use
TCPSocket
.I can give you some code examples if you want.
Orbited 怎么样,它非常好,并且被 回声波
How about Orbited, it's very good and being used by Echowaves
Comet 就是您想要的协议。 Comet 实现最好的方法是一个更难的选择。
如果您对 Java(或者,我猜是 Jython)或 .NET(IronPython 是可能的)感到满意,我怀疑(没有已经广泛尝试过它们!-)stream hub 一定是主要竞争者。这是典型的“免费增值”产品——您可以获得免费(“就像免费啤酒一样”;-)版本,或者您可以尝试昂贵的网络版,或者更贵的企业版;功能比较位于此处(例如,免费版:无 https、并发数不超过 10 个)用户,没有.NET)。
Comet is the protocol you want. What Comet implementation is best, is a harder call.
If you're OK with Java (or, I guess, Jython), or .NET (where IronPython's a possibility), I suspect (not having extensively tried them all!-) that stream hub must be a major contender. It'a typical "freemium" product -- you can get a free ("as in free beer";-) version, or you can try the pricey Web Edition, or the even-pricier Enterprise Edition; feature comparison is here (e.g., free edition: no https, no more than 10 concurrent users, no .NET).
好的,我在项目中使用 ASP.NET 和 PokeIn comet ajax 库。另外,我在JAVA下尝试了Atmosphere..我最后的选择是PokeIn..因为,只有服务器推送支持并不能解决问题。您将需要某种客户端到服务器的对象序列化和对象生命周期管理。 PokeIn 满足了我的所有这些需求。
Ok, I'm using ASP.NET with PokeIn comet ajax library on my project. Also, I tried Atmosphere under JAVA.. My last choice was PokeIn.. Because, only server push support is not solving the problems. You will need some kind of client to server object serialization and object life time management. PokeIn covered all these needs for me.
Ajax 推送引擎怎么样?
What about Ajax Push Engine?
我个人有偏见,但我喜欢WebSync,用于 IIS/.NET。它与 IIS 集成,因此不需要其他服务器软件,只需将 dll 添加到您的项目中即可。
I'm personally biased, but I like WebSync, for IIS/.NET. It integrates with IIS, so no other server software necessary, just a dll to add to your project.
我相信 xmpp 实现是许多大公司正在使用的一种实现,但常见的是也使用 comet 服务器。
Python 中有很多实现,你可以用 google 搜索一下。
I believe xmpp implementation is one which is being use by a lot of big companies but the common thing is to use a comet server as well.
a lot of implementation in python for thoses you can google around.
您是否尝试过StreamHub 推送服务器?
Have you tried StreamHub Push Server?