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…
In plain words
This is a Node.js pub/sub module that uses WebSockets to enable microservices to communicate through event messages. It is designed for developers building complex applications who want to segregate code into independent services that can be updated or restarted without disrupting other parts. The module allows multiple Node.js instances to work together without relying on built-in clustering, and has been tested with several messages per second over several weeks of operation.
written from the facts on this page · September 2026
From the sources
In the maker’s words, at launch
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!
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, December 2022
the whole month →
- OC
Life & fun · 2022 · obsidian.md
- PS
Commerce · 2022 · mprimi.github.io

Use generative AI to create future-facing videos
AI · 2022 · studio.d-id.com

- IW
Dev tools · 2022 · sqlfordevs.com