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 Google Cloud Pub/Sub

CometD vs Google Cloud Pub/Sub

OverviewComparisonAlternatives

Overview

CometD
CometD
Stacks22
Followers34
Votes0
Google Cloud Pub/Sub
Google Cloud Pub/Sub
Stacks550
Followers428
Votes13

CometD vs Google Cloud Pub/Sub: What are the differences?

Introduction

CometD and Google Cloud Pub/Sub are both messaging systems that allow applications to exchange data in real-time. However, there are several key differences between them that make them suited for different use cases.

  1. Scalability: CometD is a scalable messaging system that can handle a large number of concurrent connections, making it suitable for applications that require real-time communication with a large number of clients. On the other hand, Google Cloud Pub/Sub is designed for high throughput and can handle large volumes of messages, making it suitable for applications that need to process a high number of events.

  2. Protocol Support: CometD uses the Bayeux protocol, which is a lightweight HTTP-based protocol optimized for real-time communication over the web. This makes it ideal for applications that need to communicate with web browsers and mobile devices. In contrast, Google Cloud Pub/Sub supports multiple protocols, including HTTP, gRPC, and MQTT, making it more versatile and suitable for a wider range of clients and platforms.

  3. Message Delivery Guarantees: CometD provides at most once delivery guarantees, meaning that it does not ensure that every message is successfully delivered to the recipient. It relies on techniques such as heartbeats and client reconnects to handle communication disruptions. Google Cloud Pub/Sub, on the other hand, provides at least once delivery guarantees, ensuring that every message is delivered to the recipient at least once. It also provides features like acknowledgments and dead-letter topics to handle message delivery failures.

  4. Deployment Options: CometD can be run as a standalone server or embedded within a Java application, giving developers more control over the deployment and customization of the messaging system. Google Cloud Pub/Sub is a fully managed service, meaning that it is hosted and maintained by Google, reducing the operational overhead for developers.

  5. Integration with Existing Infrastructure: CometD can be integrated with existing Java-based infrastructure, such as servlet containers and application servers, making it easier to incorporate into existing applications. Google Cloud Pub/Sub integrates seamlessly with other Google Cloud services, such as Cloud Functions and Cloud Dataflow, enabling developers to build complex data pipelines and event-driven architectures.

  6. Pricing Model: CometD is an open-source project with no fees associated with its usage. However, developers are responsible for hosting and managing their own CometD infrastructure. Google Cloud Pub/Sub follows a pay-as-you-go pricing model, where users pay based on the number of messages exchanged and the storage used. This makes it a more scalable and cost-effective option for applications with varying message traffic patterns.

In summary, CometD is a scalable messaging system optimized for real-time communication over the web, while Google Cloud Pub/Sub is a versatile messaging service designed for high throughput and seamless integration with other Google Cloud services. The choice between the two depends on the specific requirements and constraints 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
Google Cloud Pub/Sub
Google Cloud Pub/Sub

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.

Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications. You can leverage Cloud Pub/Sub’s flexibility to decouple systems and components hosted on Google Cloud Platform or elsewhere on the Internet.

Javascript Client; Publish/Subscribe Messaging; Service Channels; Private Message Delivery; Lazy Messages; Message Batching; Listeners, Data Filters and Extensions; Security Policy
-
Statistics
Stacks
22
Stacks
550
Followers
34
Followers
428
Votes
0
Votes
13
Pros & Cons
No community feedback yet
Pros
  • 9
    Easy to set-up and start with
  • 2
    Efficient and practical for complex systems
  • 2
    A great choice for microservice architecture
Cons
  • 2
    Need integration with stackdriver for monitoring
Integrations
JavaScript
JavaScript
Node.js
Node.js
AngularJS
AngularJS
Dojo
Dojo
jQuery
jQuery
Google Cloud Functions
Google Cloud Functions
Cloud Functions for Firebase
Cloud Functions for Firebase

What are some alternatives to CometD, Google Cloud Pub/Sub?

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