StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Utilities
  3. Background Jobs
  4. Message Queue
  5. CometD vs Kafka

CometD vs Kafka

OverviewDecisionsComparisonAlternatives

Overview

Kafka
Kafka
Stacks24.2K
Followers22.3K
Votes607
GitHub Stars31.2K
Forks14.8K
CometD
CometD
Stacks22
Followers34
Votes0

CometD vs Kafka: What are the differences?

Key differences between CometD and Kafka

CometD and Kafka are two popular event streaming platforms, but they have some key differences. Here are the main differences:

  1. Communication model: CometD is based on the publish-subscribe model, where clients subscribe to specific channels and receive messages published to these channels. Kafka, on the other hand, follows the distributed log design pattern, where producers append events to logs and consumers read events from logs. This difference in communication model affects the way messages are handled and consumed.

  2. Reliability and durability: Kafka is designed for high reliability and durability. It guarantees that messages are persisted on disk and replicated across a cluster for fault tolerance. CometD, on the other hand, relies on the underlying transport mechanism for reliability, and may not provide the same level of durability as Kafka.

  3. Scalability: Kafka is highly scalable and can handle high-throughput workloads. It can distribute the load across multiple brokers and partition logs to achieve parallel processing. CometD, on the other hand, may have limitations in terms of scalability depending on the chosen transport mechanism.

  4. Message ordering: Kafka guarantees total order of messages within a partition, which is important for use cases that require strict ordering of events. CometD does not provide the same level of ordering guarantees, as it relies on the underlying transport mechanism for message delivery.

  5. Use cases: CometD is often used for real-time web applications and chat applications, where low-latency communication is important. Kafka, on the other hand, is commonly used for building scalable data pipelines, processing event streams, and building real-time streaming applications.

  6. Ecosystem and integration: Kafka has a rich ecosystem with various connectors and tools that make it easier to integrate with other systems and technologies. It has robust community support and is widely adopted. CometD, on the other hand, may have a more limited ecosystem and integration options.

In summary, CometD and Kafka differ in their communication model, reliability, scalability, message ordering guarantees, use cases, and ecosystem/integration options. Whether to choose one over the other depends on the specific requirements of your application.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on Kafka, CometD

viradiya
viradiya

Apr 12, 2020

Needs adviceonAngularJSAngularJSASP.NET CoreASP.NET CoreMSSQLMSSQL

We are going to develop a microservices-based application. It consists of AngularJS, ASP.NET Core, and MSSQL.

We have 3 types of microservices. Emailservice, Filemanagementservice, Filevalidationservice

I am a beginner in microservices. But I have read about RabbitMQ, but come to know that there are Redis and Kafka also in the market. So, I want to know which is best.

933k views933k
Comments
Ishfaq
Ishfaq

Feb 28, 2020

Needs advice

Our backend application is sending some external messages to a third party application at the end of each backend (CRUD) API call (from UI) and these external messages take too much extra time (message building, processing, then sent to the third party and log success/failure), UI application has no concern to these extra third party messages.

So currently we are sending these third party messages by creating a new child thread at end of each REST API call so UI application doesn't wait for these extra third party API calls.

I want to integrate Apache Kafka for these extra third party API calls, so I can also retry on failover third party API calls in a queue(currently third party messages are sending from multiple threads at the same time which uses too much processing and resources) and logging, etc.

Question 1: Is this a use case of a message broker?

Question 2: If it is then Kafka vs RabitMQ which is the better?

804k views804k
Comments
Roman
Roman

Senior Back-End Developer, Software Architect

Feb 12, 2019

ReviewonKafkaKafka

I use Kafka because it has almost infinite scaleability in terms of processing events (could be scaled to process hundreds of thousands of events), great monitoring (all sorts of metrics are exposed via JMX).

Downsides of using Kafka are:

  • you have to deal with Zookeeper
  • you have to implement advanced routing yourself (compared to RabbitMQ it has no advanced routing)
10.8k views10.8k
Comments

Detailed Comparison

Kafka
Kafka
CometD
CometD

Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.

It is a web server to push data to a browser, without the browser explicitly requesting it. It is an umbrella term, encompassing multiple techniques for achieving this interaction.

Written at LinkedIn in Scala;Used by LinkedIn to offload processing of all page and other views;Defaults to using persistence, uses OS disk cache for hot data (has higher throughput then any of the above having persistence enabled);Supports both on-line as off-line processing
Javascript Client; Publish/Subscribe Messaging; Service Channels; Private Message Delivery; Lazy Messages; Message Batching; Listeners, Data Filters and Extensions; Security Policy
Statistics
GitHub Stars
31.2K
GitHub Stars
-
GitHub Forks
14.8K
GitHub Forks
-
Stacks
24.2K
Stacks
22
Followers
22.3K
Followers
34
Votes
607
Votes
0
Pros & Cons
Pros
  • 126
    High-throughput
  • 119
    Distributed
  • 92
    Scalable
  • 86
    High-Performance
  • 66
    Durable
Cons
  • 32
    Non-Java clients are second-class citizens
  • 29
    Needs Zookeeper
  • 9
    Operational difficulties
  • 5
    Terrible Packaging
No community feedback yet
Integrations
No integrations available
JavaScript
JavaScript
Node.js
Node.js
AngularJS
AngularJS
Dojo
Dojo
jQuery
jQuery

What are some alternatives to Kafka, CometD?

NGINX

NGINX

nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018.

Firebase

Firebase

Firebase is a cloud service designed to power real-time, collaborative applications. Simply add the Firebase library to your application to gain access to a shared data structure; any changes you make to that data are automatically synchronized with the Firebase cloud and with other clients within milliseconds.

Apache HTTP Server

Apache HTTP Server

The Apache HTTP Server is a powerful and flexible HTTP/1.1 compliant web server. Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet.

Socket.IO

Socket.IO

It enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

RabbitMQ

RabbitMQ

RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.

Unicorn

Unicorn

Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. Slow clients should only be served by placing a reverse proxy capable of fully buffering both the the request and response in between Unicorn and slow clients.

Celery

Celery

Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.

PubNub

PubNub

PubNub makes it easy for you to add real-time capabilities to your apps, without worrying about the infrastructure. Build apps that allow your users to engage in real-time across mobile, browser, desktop and server.

Microsoft IIS

Microsoft IIS

Internet Information Services (IIS) for Windows Server is a flexible, secure and manageable Web server for hosting anything on the Web. From media streaming to web applications, IIS's scalable and open architecture is ready to handle the most demanding tasks.

Pusher

Pusher

Pusher is the category leader in delightful APIs for app developers building communication and collaboration features.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase