Skip to content

Vikk-17/prod

Repository files navigation

Email Newsletter

Difference between unix socket and tcp socket

A UNIX socket, AKA Unix Domain Socket, is an inter-process communication mechanism that allows bidirectional data exchange between processes running on the same machine.

IP sockets (especially TCP/IP sockets) are a mechanism allowing communication between processes over the network. In some cases, you can use TCP/IP sockets to talk with processes running on the same computer (by using the loopback interface).

UNIX domain sockets know that they’re executing on the same system, so they can avoid some checks and operations (like routing); which makes them faster and lighter than IP sockets. So if you plan to communicate with processes on the same host, this is a better option than IP sockets.

Docs

References

About

Trying to debunk surface level mailchimp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published