nodejs-pubsub VS NATS

Compare nodejs-pubsub vs NATS and see what are their differences.

nodejs-pubsub

Node.js client for Google Cloud Pub/Sub: Ingest event streams from anywhere, at any scale, for simple, reliable, real-time stream analytics. (by googleapis)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
nodejs-pubsub NATS
24 106
512 14,766
0.4% 1.1%
8.4 9.8
about 21 hours ago 5 days ago
TypeScript Go
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nodejs-pubsub

Posts with mentions or reviews of nodejs-pubsub. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-25.
  • Event-Driven Architecture 101
    3 projects | dev.to | 25 Sep 2023
    Secondly, Go is incredibly easy to learn and in my opinion, maintain. This means that if you're a growing company and expect to onboard new teams and team members, having Go as a basis for your systems should mean that new engineers can get up to speed quickly.  Below is a small sample application that can connect to Google PubSub, subscribe to a topic, send an event and then clean up. In total, its 82 lines of code including liberal line breaks. Even if you have never written or read a line of Go before, I hope you'll agree that it's quite clear and readable:
  • Kafka alternatives
    6 projects | /r/apachekafka | 22 May 2023
    Pub/Sub
  • Top 6 message queues for distributed architectures
    4 projects | dev.to | 18 May 2023
    Google Cloud Pub/Sub is a fully-managed, globally scalable and secure queue provided by Google Cloud for asynchronous processing messages. Cloud Pub/Sub has many of the same advantages and disadvantages as SQS due to also being cloud hosted. It has a free and paid tier.
  • Job Scheduling on Google Cloud Platform
    3 projects | dev.to | 13 Apr 2023
    Cloud Pub/Sub: A global messaging service for event-driven architectures
  • Messaging Patterns 101: A Comprehensive Guide for Software Developers
    4 projects | dev.to | 1 Mar 2023
    Google Cloud Pub/Sub (*https://cloud.google.com/pubsub*)
  • Effortlessly Scale Your Applications with FaaS: Learn How Functions as a Service Can Help You Grow and Thrive
    5 projects | dev.to | 3 Jan 2023
    Google Cloud Functions is a FaaS offering from Google Cloud Platform (GCP). It allows developers to run their code in response to events, such as changes in a database or the arrival of a message in a Pub/Sub topic. Like AWS Lambda, Google Cloud Functions can be used to build a variety of applications, including serverless websites, data processing pipelines, and real-time data streams.
  • Mixing GCloud and F#
    4 projects | dev.to | 16 Dec 2022
    that gets triggered when a Pub/Sub topic is fired (from the webhook function)
  • What is the best data storage solution for high-frequency (near real-time) updates
    1 project | /r/dataengineering | 10 Dec 2022
    Maybe Pub/Sub from GCP?
  • Kafka on GKE cluster security guidelines
    1 project | /r/googlecloud | 14 Nov 2022
    I'm curious - given your limited knowledge, is there a reason you're looking to self host this in your own cluster rather than using a managed service like https://cloud.google.com/find-a-partner/partner/confluent-inc?redirect= or just native Google PubSub https://cloud.google.com/pubsub/ ?
  • Moving to Google Cloud managed services, from a FinOps point of view
    2 projects | dev.to | 20 Sep 2022
    Pub/Sub, the GCP managed service for message queuing, has two levels of services on standard and one Lite. Standard is the high availability version of it and Lite could be a zonal or regional service with infrastructure managed by the client. Obviously, the model pricing will be very different with a x10 between Standard and zonal Lite. However, the model pricing is the same is based on throughput for message publishing, message storage costs and egress for message distribution. Here, we totally break the similarity with a VM model (except on storage). Everything is drived on volumetry and performance of inbound and outbound messages.

NATS

Posts with mentions or reviews of NATS. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-04.
  • Implementing OTel Trace Context Propagation Through Message Brokers with Go
    4 projects | dev.to | 4 Apr 2024
    Several message brokers, such as NATS and database queues, are not supported by OpenTelemetry (OTel) SDKs. This article will guide you on how to use context propagation explicitly with these message queues.
  • NATS: First Impressions
    1 project | news.ycombinator.com | 3 Apr 2024
    https://nats.io/ (Tracker removed)

    > Connective Technology for Adaptive Edge & Distributed Systems

    > An Introduction to NATS - The first screencast

    I guess I don't need to know what it is

  • Interview with Sebastian Holstein, Founder of Qaze
    1 project | dev.to | 21 Mar 2024
    During our interview, we referred to NATS quite a few times! If you want to learn more about it, Sebastian suggests this tutorial series.
  • Sequential and parallel execution of long-running shell commands
    7 projects | news.ycombinator.com | 20 Mar 2024
    Pueue dumps the state of the queue to the disk as JSON every time the state changes, so when you have a lot of queued jobs this results in considerable disk io. I actually changed it to compress the state file via zstd which helped quite a bit but then eventually just moved on to running NATS [1] locally.

    [1] https://nats.io/

  • Revolutionizing Real-Time Alerts with AI, NATs and Streamlit
    6 projects | dev.to | 18 Feb 2024
    Imagine you have an AI-powered personal alerting chat assistant that interacts using up-to-date data. Whether it's a big move in the stock market that affects your investments, any significant change on your shared SharePoint documents, or discounts on Amazon you were waiting for, the application is designed to keep you informed and alert you about any significant changes based on the criteria you set in advance using your natural language. In this post, we will learn how to build a full-stack event-driven weather alert chat application in Python using pretty cool tools: Streamlit, NATS, and OpenAI. The app can collect real-time weather information, understand your criteria for alerts using AI, and deliver these alerts to the user interface.
  • New scalable, fault-tolerant, and efficient open-source MQTT broker
    8 projects | news.ycombinator.com | 18 Dec 2023
    Why wasn't NATS[1] used ?

    Written in Go, single-binary deployment... there's a lot to love about NATS !

    [1]https://nats.io/

  • Scripting with NATS.io support
    1 project | /r/devops | 30 Oct 2023
    require nats.io
  • Introducing “Database Performance at Scale”: A Free, Open Source Book
    4 projects | news.ycombinator.com | 5 Oct 2023
    About cost, see [1]. Also, S3 prices have been increasing and there's been a bunch of alternative offers for object store from other companies. I think people in here (HN) comment often about increasing costs of AWS offerings.

    Distributed systems and consensus are inherently hard problem, but there are a lot of implementations that you can study (like Etcd that you mention, or NATS [2], which I've been playing with and looks super cool so far :-p) if you want to understand the internals, on top of many books and papers released.

    Again, I never said it was "easy" to build distributed systems, I just don't think there's any esoteric knowledge to what S3 provides.

    --

    1: https://en.wikipedia.org/wiki/Economies_of_scale

    2: https://nats.io/

  • NATS: Connective Technology for Adaptive Edge and Distributed Systems
    1 project | news.ycombinator.com | 21 Sep 2023
  • Is it an antipattern to use the response channel as identifier
    1 project | /r/NATS_io | 31 Jul 2023
    I am in a project were nats.io is used. Someone thought, it would be a great idea to link data in an event with data in a response using the response channel name.

What are some alternatives?

When comparing nodejs-pubsub and NATS you can also consider the following projects:

twitch - Interact with Twitch's API, chat and subscribe to events via PubSub and EventSub.

RabbitMQ - Open source RabbitMQ: core server and tier 1 (built-in) plugins

mitt - 🥊 Tiny 200 byte functional event emitter / pubsub.

celery - Distributed Task Queue (development branch)

svelte-persisted-store - A Svelte store that persists to localStorage

redpanda - Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!

ZeroMQ - ZeroMQ core engine in C++, implements ZMTP/3.1

MySQL - MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database.

Apache ActiveMQ - Mirror of Apache ActiveMQ

nodejs-storage - Node.js client for Google Cloud Storage: unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.

nsq - A realtime distributed messaging platform