fermads / amnesia

Memory sharing between machines and/or process for Node.js
MIT License
14 stars 2 forks source link

[Suggestion] Unix Socket for Linux Based Systems #2

Open ghost opened 8 years ago

ghost commented 8 years ago

For linux based systems? I know unix socket is unavailable for windows.. but I think unix socket would be ideal (better performance).

Would love to see if this would be possible, looks like somewhere in function server() { we can add the socket there.

Or, is the TCP overhead not an issue? Will it ever be a bottleneck?

fermads commented 8 years ago

Unix domain sockets are for inter-process communication only. TCP sockets allow communication between machines/processes over the network.

Amnesia works on both cases (inter-process and inter-machine) but the main use case is for inter-machine communications....but, yes, there is going to be some overhead by using TCP on the loopback instead of UDS for inter-process communications.