TCP sockets vs Unix domain sockets
9 April 2023 (Updated 9 April 2023)
TCP sockets | Unix domain sockets | |
Scope | Used for communication between processes running on different machines. | Used for communication between processes running on the same machine. |
Addressing | Combination of IP address and port number. | File system path. |
Performance | Use the TCP/IP protocol so slower and susceptible to congestion/latency. | Doesn’t require the overhead of the TCP/IP protocol so much faster. |
Tagged:
Networking
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment