Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
goodboy opened this issue Feb 9, 2020 · 2 comments
Open

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

goodboy opened this issue Feb 9, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed IPC and transport

Comments

@goodboy
Copy link
Owner

goodboy commented Feb 9, 2020

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
Copy link

ghost commented Feb 9, 2020

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 goodboy added enhancement New feature or request help wanted Extra attention is needed IPC and transport labels Aug 19, 2020
@goodboy goodboy changed the title TCP isn't the fastest IPC on a local host. TCP isn't the fastest IPC on a local host / Alt localhost IPC Jan 31, 2021
@goodboy
Copy link
Owner Author

goodboy commented Jan 31, 2021

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.

@goodboy goodboy changed the title TCP isn't the fastest IPC on a local host / Alt localhost IPC TCP isn't the fastest localhost IPC Jan 31, 2021
@goodboy goodboy changed the title TCP isn't the fastest localhost IPC Unix Domain Sockets: TCP isn't the fastest localhost IPC Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed IPC and transport
Projects
None yet
Development

No branches or pull requests

1 participant