Cloudjs
A NodeJS module, that provides network distributed events and network distributing "live" objects
Install / Use
/learn @digitalwm/CloudjsREADME
About.
It is Node JS module that will provide network distributed events. It uses UDP broadcast for sending it's useful data.
Changelog
<br/> v 0.0.3 - Added linux signal interception. When closed with signal SIGINT, SIGHUP and SIGQUIT the module distributes all its pool objects to all the remaining nodes in equal portions.<br/> v 0.0.4 - Added encryption to events sent on the network. This can be switched on and off. Uses DES encryption method.<br/> v 0.0.8 - Manage to fix the package.json with a proper forma. Added also special events that once emited they wait for a reply by providing a callback and a timeout. When the timeout is reached the callback is removed from the watch list. This events are non-blocking.<br/> v 0.0.9 - All user generated events, are calling the assigned call back with two parameters (data and the ID of the event emiter instance) v 0.0.10 - Emiting a new event "rawdata", which is emited every time a event message is received. It contains the whole message object. NOTE: take care on how are you using this v 0.0.11 - Added "inject" function, which enables you to send in the cloud raw data. NOTE: this should be use rarely or never :) <br/> # FeaturesThis module is build upon Node JS and provides for the user the following features
- A network distributed event system. Similar to node JS standard event system
- A process pool, where objects can be added and ran at a periodic interval a predefined functions.
- An auto-balancing system, that migrate objects in the process pool, from one running instance to another, based on the load of each instance.
How to use it?
npm install cloudjs
Configuration & Examples?
For this check the example.js file
Explenations?
More and an updated documentation and explanations can be found at http://dan.harabagiu.net/cloudjs.
Enjoy it, and drop me a line if you like it
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

