服务器端 Comet 实现的好语言
我还没有深入研究彗星编程,但它让我感兴趣并且我想尝试一下。我想知道哪些语言适合在服务器端实现 comet,并且有良好、稳定的库或框架来实现这一点。对于客户端,我将使用 javascript,或者如果某种特定语言具有良好的框架(无论该框架使用什么)。
I haven't delved much into comet programming, but it interests me and I want to try it out. I want to know which languages are good for implementing comet on the server side, and have good, stable libraries or frameworks for doing so. For the client I'll either be using javascript, or if a particular language has a good framework whatever that framework uses.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我是一个渐进学习的人,所以当学习新技术时,我更喜欢使用我已经知道的语言(反之亦然,尝试用新语言做一些熟悉的事情),但是,嘿,有时我们需要一个大爆炸......
你不会说出你已经知道什么语言和编程模型。 Comet 的本质分为三个部分:
逆向工作这些:
客户端您可能是基于浏览器的,因此使用 JavaScript。
在服务器端,如果您可以使用库来处理交付,那么您将节省大量工作。有很多选择,我使用 Java 工作,应用程序服务器供应商提供了合适的库。我看到有一个 PHP 库 所以我的猜测是可能的服务器中有合适的库边语言。
因此,请重点关注您打算提供的数据,以及这里存在哪些限制。就我而言,我正在提供实时的旧行业数据,这些数据可通过一些 Java 库获得,因此它将是 Java。我相信我可以用 Java 进行编程,并且我相信我可以用该语言构建强大的解决方案。
摘要:确定您对服务器端语言的限制和偏好,并检查是否存在合适的 Comet 库。
快乐学习。
I'm an incremental learning sort of a person, so when learing a new technique I prefer to work in a langauge I already know (and vice-versa, try and do something familiar in a new language), but, hey, sometimes we need a big bang ...
You don't say what langauges and programming models you already know. The essence of Comet is in three parts:
Working backwards through those:
Client-side you probably are browser-based and so use JavaScript.
Server-side you would save a whole load of work if you can use a library to handle the delivery. There's plenty of options, I work in Java and the App Server vendor provides suitable libraries. I see that there's a PHP library so my guess is that suitable libraries are avaialble in may server-side langauges.
So focus on the data that you intend to deliver, what constraints are there here. In my case I'm delivering real-time old industry data which is available via some Java libraries, so it's going to be Java. I'm confident I can program in Java and I'm confident that I can build robust solutions in that language.
Summary: decide on your constraints and preferences for a server-side language, and check that suitable Comet libraries exist.
Happy learning.