什么是彗星?为什么使用它以及如何进行处理 [英] What is Cometd ? Why it is used and how to work on that

查看:114
本文介绍了什么是彗星?为什么使用它以及如何进行处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是cometd的初学者,我很感兴趣,想了解cometd是什么,它的用途是什么,我用谷歌搜索了一下,找到了一些资源。在下面的链接
1. < a href = http://docs.cometd.org/reference/installation.html#d0e346> http://docs.cometd.org/reference/installation.html#d0e346 。

i'm just a beginner in cometd , and i'm interested and wanted to learn what cometd is and what for it is used i googled it out and found some resource.Under the following link 1.http://docs.cometd.org/reference/installation.html#d0e346.

我尝试了给定的演示,但无法从中获得预期的输出。任何人都可以发布一些资源url以便我学习吗?

I tried out with the given demo but i could not able to get the expected output from it. can anybody post some resource url's so that i can learn ?

推荐答案

免责声明:我是CometD项目负责人。

Disclaimer: I'm the CometD project leader.

CometD是一组用于编写通过Web执行消息传递的Web应用程序的库。

CometD is a set of library to write web applications that perform messaging over the web.

无论何时需要编写应用程序如果客户需要对服务器端事件做出反应,那么CometD是一个很好的选择。考虑聊天应用程序,在线游戏,监视控制台,协作工具,股票交易等。
有关更多信息,请参见前言

Whenever you need to write applications where clients need to react to server-side events, then CometD is a very good choice. Think chat applications, online games, monitoring consoles, collaboration tools, stock trading, etc. See more at the preface.

CometD提供了一个JavaScript客户端库,一个Java客户端库和一个Java服务器库。
这样,您就可以在浏览器中编写具有细粒度逻辑并在服务器上进行控制的应用程序。
服务器库是Java语言,利用了JVM的高可伸缩性以及JVM和Servlet规范提供的强大的异步I / O API。

CometD ships a JavaScript client library, a Java client library and a Java server library. This allows you to write applications in the browser with fine-grained logic and control on the server. The server library, being in Java, leverages the high scalability of the JVM and the powerful asynchronous I/O API that the JVM and the Servlet specification provide.

CometD与传输无关:您使用高级API编写应用程序,CometD会使用可用的最佳传输方式(WebSocket或HTTP)来通过网络传递消息,如果WebSocket不起作用,它还会提供透明的回退。

CometD is transport agnostic: you write your applications using high level APIs, and CometD takes care of delivering the messages over the wire using the best transport available: WebSocket or HTTP, also providing a transparent fallback in case WebSocket does not work.

CometD提供了一个名为 Oort 的群集解决方案,可以水平扩展您的Web应用程序。

CometD provides a clustering solution called Oort that allows you to scale horizontally your web applications.

CometD带有大量功能和扩展的文档以及教程和演示,您可以将其用作项目的起点。

CometD comes with a ton of features and an extended documentation along with tutorials and demos you can use as a starting point for your project.

加入CometD 即可开始对基于CometD的Web应用程序进行黑客攻击。

Join CometD to start hacking on your CometD-based web applications.

CometD教程当前是为CometD 2.x编写的,但目前正在移植到CometD 3.x(CometD的当前版本),因此需要一点时间耐心。
但是,您可以按照入门并部署演示

The CometD tutorials are currently written for CometD 2.x, but a port to CometD 3.x (the current version of CometD) is currently underway, so that requires a bit of patience. But you can start right away by following the primer and deploying the demos.

我希望您可以从上述参考资料开始使用CometD 。
在邮件列表上放置一封电子邮件,以获取您可能需要的任何帮助。

I hope you can get started with CometD with the above references. Drop an email on the mailing lists for any help you may need.

这篇关于什么是彗星?为什么使用它以及如何进行处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆