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. Application & Data
  3. Platform as a Service
  4. Web Servers
  5. CometD vs SignalR

CometD vs SignalR

OverviewComparisonAlternatives

Overview

CometD
CometD
Stacks22
Followers34
Votes0
SignalR
SignalR
Stacks656
Followers1.2K
Votes146
GitHub Stars9.3K
Forks2.3K

CometD vs SignalR: What are the differences?

Introduction

In this article, we will discuss the key differences between CometD and SignalR. Both CometD and SignalR are popular web application frameworks used for real-time communication between the client and server. However, they have some distinct features and capabilities that set them apart. Let's explore the differences in detail.

  1. Architecture: CometD is based on the publish-subscribe pattern, where messages are broadcasted to multiple subscribers. It follows a decentralized model and is suited for more complex and distributed systems. On the other hand, SignalR uses a client-server architecture, where clients establish a connection with the server and communicate directly. It is well-suited for simpler and small-scale applications.

  2. Transport Protocols: CometD supports a wide range of transport protocols such as WebSocket, long-polling, and streaming. It provides fallback mechanisms to choose the best transport protocol based on browser capabilities. In contrast, SignalR primarily relies on WebSocket for real-time communication. It has built-in support for fallback protocols like Server-Sent Events (SSE) and long-polling for browsers that do not support WebSocket.

  3. Platform Compatibility: CometD is a Java-based framework and can be used with Java-based servers. It has client libraries available for various languages including Java, JavaScript, and Objective-C. SignalR, on the other hand, is a Microsoft technology and primarily used with .NET and ASP.NET. It has client libraries available for .NET languages like C# and JavaScript.

  4. Server Scalability: CometD is highly scalable and can be used in a clustered environment. It supports distributed server setups and handles failover and load balancing effectively. SignalR also provides scalability options but is more suited for smaller-scale deployments. It may require additional configurations and setup for clustering and load balancing.

  5. Bi-directional Communication: Both CometD and SignalR support bi-directional communication between the client and server. However, SignalR provides more fine-grained control over data transmission, allowing clients to invoke methods on the server and receive responses. CometD focuses more on pub-sub messaging and may not provide the same level of flexibility for server-side invocations.

  6. Community and Ecosystem: SignalR has a larger community and ecosystem compared to CometD. It has extensive documentation, official tutorials, and third-party libraries available for various use cases. CometD, while less popular, still has an active community and provides robust support for its users.

In summary, CometD and SignalR differ in their architectural approaches, transport protocols, platform compatibility, server scalability, communication capabilities, and community ecosystems. Each framework has its strengths and weaknesses, and the choice between them depends on the specific requirements of the 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

Detailed Comparison

CometD
CometD
SignalR
SignalR

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.

SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers. SignalR includes APIs for connection management (for instance, connect and disconnect events), grouping connections, and authorization.

Javascript Client; Publish/Subscribe Messaging; Service Channels; Private Message Delivery; Lazy Messages; Message Batching; Listeners, Data Filters and Extensions; Security Policy
-
Statistics
GitHub Stars
-
GitHub Stars
9.3K
GitHub Forks
-
GitHub Forks
2.3K
Stacks
22
Stacks
656
Followers
34
Followers
1.2K
Votes
0
Votes
146
Pros & Cons
No community feedback yet
Pros
  • 32
    Supports .NET server
  • 25
    Real-time
  • 18
    Free
  • 16
    Fallback to SSE, forever frame, long polling
  • 15
    WebSockets
Cons
  • 2
    Requires jQuery
  • 2
    Expertise hard to get
  • 1
    Big differences between ASP.NET and Core versions
  • 1
    Weak iOS and Android support
Integrations
JavaScript
JavaScript
Node.js
Node.js
AngularJS
AngularJS
Dojo
Dojo
jQuery
jQuery
.NET
.NET

What are some alternatives to CometD, SignalR?

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.

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.

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.

Apache Tomcat

Apache Tomcat

Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Passenger

Passenger

Phusion Passenger is a web server and application server, designed to be fast, robust and lightweight. It takes a lot of complexity out of deploying web apps, adds powerful enterprise-grade features that are useful in production, and makes administration much easier and less complex.

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