tractor
tractor copied to clipboard
Unix Domain Sockets: TCP isn't the fastest localhost IPC
Was just double checking on this and found a SO answer with some benchmarks. It seems UDS are indeed more performant for local comms so support for this in the future will likely be desirable.
One handy thing to note is that if we end up having firstish class support for nng the we get this for free if using the IPC transport.
trio has a client-side API: https://trio.readthedocs.io/en/stable/reference-io.html#trio.open_unix_socket
UDS should be default for Unix system - it also should be high on the priorities list IMO. Additionally, I do think that it makes more sense to focus on getting tractor to work as efficiently as possible on Linux even if that means dropping windows support for the moment.
Another neat looking option is data_pipe which boasts some decent benchmarks.
Found it through this SO question. Check the comments for claims about meeting requirements of an LMAX style disruptor design.