You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If multiple nodes (of whatever language) are running on a single machine, it would be nice if they could discover each other via mdns, and then communicate directly via IPC, instead of TPC. In theory, there should be less moving parts, and it should be faster (and avoid routers entirely when appropriate)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It looks like we support IPC, but I haven't seen that we're using it for anything. I've never seen it in the wild.
js-libp2p/packages/transport-tcp/src/utils.ts
Lines 14 to 22 in 28c1b90
Is there a reason for that?
Is an IPC transport spec needed?
If multiple nodes (of whatever language) are running on a single machine, it would be nice if they could discover each other via mdns, and then communicate directly via IPC, instead of TPC. In theory, there should be less moving parts, and it should be faster (and avoid routers entirely when appropriate)
Some stats for nodejs socket performance here: https://60devs.com/performance-of-inter-process-communications-in-nodejs.html (I updated the code to ESM at https://github.com/SgtPooki/node-ipc-test)
This could also make for an interesting "clustering" story between multiple implementations running on the same machine.
Beta Was this translation helpful? Give feedback.
All reactions