SocketCluster VS NATS

Compare SocketCluster vs NATS and see what are their differences.

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
SocketCluster NATS
9 106
6,112 14,816
0.0% 1.1%
6.8 9.8
about 1 month ago about 14 hours ago
JavaScript Go
MIT License 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.

SocketCluster

Posts with mentions or reviews of SocketCluster. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-12.
  • The Sound of Software
    1 project | news.ycombinator.com | 27 Apr 2024
    Recently, I added an AI-generated soundtrack to my open source project's home page https://socketcluster.io/

    It seems unconventional at first but I distinctly remember about a decade ago when Adobe Flash was still broadly supported, many Flash websites had soundtracks. I think the reason why regular HTML websites didn't have them was because it was difficult to implement and internet was much slower so they had to be streamed in a special way.

  • Is it a good practice to store web sockets connections on redis?
    1 project | /r/node | 24 Jun 2023
    If redis doesn't satisfy your requirements or you're unable to make it work using adaptor, SocketCluster is a great package for this https://socketcluster.io/
  • Why messaging is much better than REST for inter-microservice communications
    9 projects | news.ycombinator.com | 12 Feb 2023
    Interesting how this feature set is pretty much exactly the same as offered by SocketCluster https://socketcluster.io/
  • On the Unhappiness of Software Developers
    1 project | news.ycombinator.com | 3 Sep 2022
    This resonates with me 100%. Every bit of unhappiness I've felt in my career so far has been caused by a bad manager. The main issue for me has been the final point you mentioned about "Imposed artificial limitations" - I cannot tell you the number of times that I've been forced to use an inefficient tool or do something in a sub-optimal or downright incorrect way (knowing that it would have to be re-written later) by a bad manager... In some companies, it was a daily occurrence; that's why I never stayed at a single company for longer than 2 years. It's almost impossible to find a company that lets me implement things correctly.

    Thankfully, nobody could constrain me in my open source work. I (with the help of community members) built:

    - SocketCluster (https://socketcluster.io/): A distributed pub/sub framework.

    - Capitalisk (https://capitalisk.com/): A lightweight quantum-resistant blockchain which is less than 5K lines of code.

    - LDEX (https://ldex.trading/): A deterministic decentralized exchange (DEX) which can work with many different blockchain protocols. It's less than 4K lines of code in total and only has 3 small third-party dependencies (including sub-dependencies).

  • Looking for real-time message solution recommendations
    2 projects | /r/softwarearchitecture | 5 Jun 2022
    The two best lightweight solutions I have worked with are SocketCluster and NATS. SocketCluster is used to build out a custom backend that scales very well. NATS would be used as a central pub/sub system. If you need queueing, you'll need to add additional services like Redis.
  • How to define RPC server with SocketCluster.
    1 project | /r/node | 28 Mar 2022
    In the homepage for SocketCluster it is mentioned that it is a Highly scalable pub/sub and RPC framework optimized for async/await. However in the documentation I have not found anything related to RPC. Am I interpreting anything wrong here?
  • Top WebSocket libraries for Node.js in 2022
    12 projects | dev.to | 7 Jan 2022
    At the time of writing, SocketCluster has almost 6k stars on GitHub and 7k downloads on npm weekly,
  • SocketCluster. The most underrated framework. Part 1: Intoduction
    6 projects | dev.to | 30 Mar 2021
    SocketCluster is a framework which allows you to use the WebSocket protocol the transmit between its backend API and client library. The client can be used both on a backend (E.g. a Raspberry pi) or frontend application.

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 SocketCluster and NATS you can also consider the following projects:

Socket.io - Realtime application framework (Node.JS server)

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

deepstream.io - deepstream.io server

celery - Distributed Task Queue (development branch)

Primus - :zap: Primus, the creator god of the transformers & an abstraction layer for real-time to prevent module lock-in.

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

SockJS - WebSocket emulation - Node.js server

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

Faye - Simple pub/sub messaging for the web

Apache ActiveMQ - Mirror of Apache ActiveMQ

Straw - Realtime processing framework for Node.js

nsq - A realtime distributed messaging platform