Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Cometd ? Why it is used and how to work on that

Tags:

cometd

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.

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 ?

like image 838
Dunston Avatar asked Dec 05 '14 14:12

Dunston


People also ask

What is CometD in Salesforce?

CometD is a scalable HTTP-based event routing bus that uses an AJAX push technology pattern known as Comet. It implements the Bayeux protocol. Long polling, also called Comet programming, allows emulation of an information push from a server to a client.

What is CometD Java server?

CometD is a scalable web event routing bus that allows you to write low-latency, server-side, event-driven web applications. Typical examples of such applications are stock trading applications, web chat applications, online games, and monitoring consoles.

What is CometD library?

CometD defines a transport-agnostic protocol called Bayeux, and provides libraries in Java and JavaScript that implement this protocol. Applications can use the CometD libraries to write transport-independent applications, and CometD will take care of the transport details.


1 Answers

Disclaimer: I'm the CometD project leader.

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

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 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 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 provides a clustering solution called Oort that allows you to scale horizontally your web applications.

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.

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

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.

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.

like image 191
sbordet Avatar answered Oct 17 '22 20:10

sbordet