Tuesday, January 12, 2021

What is Bayeux/CometD protocol


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.


CometD provides you APIs to implement these messaging patterns: publish/subscribe, peer-to-peer (via a server), and remote procedure call. This is achieved using a transport-independent protocol, the Bayeux protocol, that can be carried over HTTP or over WebSocket (or other transport protocols), so that your application is not bound to a specific transport technology.


CometD leverages WebSocket when it can (because it’s the most efficient web messaging protocol), and makes use of an Ajax push technology pattern known as Comet when using HTTP.


If you are new to CometD, you can follow this learning path:

  1. Read the installation section to download, install CometD and to try out its demos.
  2. Read the primer section to get your hands dirty with CometD with a step-by-step tutorial.
  3. Read the concepts section to understand the abstractions that CometD defines.
  4. Study the CometD demos that ship with the CometD distribution .
  5. Read the rest of this reference book for further details.



References:

https://docs.cometd.org/current4/reference/#_bayeux

No comments:

Post a Comment