Diarrhoea
Diarrhoea is a simple node.js library for making IPC/RPC calls over UDS.
Using UDS or Unix Domain Sockets is one of the most efficient approaches for inter-process communication. They behave almost like TCP Sockets, without the overheads and latency of the network layer.
Why diarrhoea (UK spelling of diarrhea)?
I was thinking of names that means fast, unfortunately I'm not very creative with names. Diarrhoea isn't always fun, but hopfully it helps to ease some discomfort.
Example
var Server = Server; var udsPath = './hello.sock';var server = ;server; server; var handler = { console; }; { client; // makes a rpc call to client client; client; client; ;}
var Client = Client;var udsPath = './hello.sock';var client = ;client; client;// possible to do reflections in es6 var handler = { console; }; client;client;client;
More examples under examples/