goodboy / tractor

A distributed, structured concurrent runtime for Python (and friends)
GNU Affero General Public License v3.0
262 stars 12 forks source link

Unix Domain Sockets: TCP isn't the fastest localhost IPC #109

Open goodboy opened 4 years ago

goodboy commented 4 years ago

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

ghost commented 4 years ago

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.

goodboy commented 3 years ago

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.