dcinTransfer
DeCentralizedInterNodeTransfer
Last build:
Whats is this?
You can use this module to send data between nodes. It has special "feautures" like decentralization and strong encryption.
Small disclaimer: This is my first npm module :)
Features
- MIT license
- uses only two external modules: socket.io and socket.io-client
- strong encryption
- decentralization AND direct communication
- fast prcessing time
Documentation
Simple usage / example
var dcint = ; // require dcint var node1 = dcint; var node2 = dcint; // instanciate the first and 2nd node node1; // set the same encryption key for bothnode2; // set the same encryption key for both node1; // initiate the nodenode2; node1; // attach to the 2nd node node2; // attach to the 1st node ;
Performance
A DCINT node can process around 725 messages per second (tested on a 3.5 Ghz core (i5-6600K)).
History:
- The first(Before rewrite) version of DCINT could process around 100 messages/second but dropped quickly to 0 or 1
- The second(Not optimized) and third(Optimized) version both performed at around 700 message/second but started dropping after 40 seconds. Both versions also used an imense amount of memory and CPU(maxed out the active core) after some time!
- The fourth and current version stays stable at 725 message/second average while using 30MB RAM and 4% CPU(4 threads) (After RAM optimization)
Installation
npm install dcint