Si

Simple pub/sub using WebSockets in Node.js

Hacker News

Simple pub/sub using WebSockets in Node.js

I built this pubsub module because I wanted a simple solution that uses only node. Why did I want pubsub? I wanted to build a complex app but segregate it into microservices that work together through event messages. I also wanted to use this method instead of node's built-in clustering for multiple instances. I've been running it for a few weeks now with several messages per second bugfree. I plan to use this setup for future apps as it reduces complexity of the code and allows me to restart/update one part of the app without interrupting the other parts. I would love to receive feedback and suggestions on the code and features, and hope it can be useful to you also!

Share card

Actual performance

13points
6comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
69%69% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: apps, using, code · Missing: mac, agents, macos
61%61% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
49%49% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: apps · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
39%39% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

De
Demitter – Distributed Node.js event emitter (pub/sub)48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Demitter – Distributed Node.js event emitter (pub/sub)

Hacker News1
Ba
Basic CRUD using Node.js, MongoDB and AngularJS.46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Basic CRUD using Node.js, MongoDB and AngularJS.

Hacker News1
Si
Simple fixture loading for Elasticsearch on Node.js55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Simple fixture loading for Elasticsearch on Node.js

Hacker News1
Op
Open-sourced Turntable using Backbone & Node.js58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Open-sourced Turntable using Backbone & Node.js

Hacker News4
gR
gRPC and Kafka based microservices using Node.js62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

gRPC and Kafka based microservices using Node.js

Hacker News1
I
I Made a simple Node.js weather app using Koa31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I Made a simple Node.js weather app using Koa

Hacker News2
Fa
Fauda, configuration made simple for Node.js apps51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fauda, configuration made simple for Node.js apps

Hacker News1
Fa
Fast and Simple Node.js Installer (n.gc.gy)46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fast and Simple Node.js Installer (n.gc.gy)

Hacker News4
Vi
Vim2html for node.js43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Vim2html for node.js

Hacker News2
TD
TDD Given-When-Then for Node.js48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TDD Given-When-Then for Node.js

Hacker News1