UNIX domain sockets

A UNIX 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.

相关推荐
ajassi20001 小时前
开源 Linux 服务器与中间件(四)服务器--Tomcat
linux·服务器·开源
wangbing11253 小时前
迁移服务器
运维·服务器
细节控菜鸡3 小时前
【排查实录】Web 页面能打开,服务器能通接口,客户端却访问失败?原因全在这!
运维·服务器·前端
one year.3 小时前
Linux:库制作与原理
linux·运维·服务器
我命由我123454 小时前
PDFBox - PDFBox 加载 PDF 异常清单(数据为 null、数据为空、数据异常、文件为 null、文件不存在、文件异常)
java·服务器·后端·java-ee·pdf·intellij-idea·intellij idea
蓝色土耳其love4 小时前
centos 7.9 安装单机版k8s
linux·运维·服务器·kubernetes·centos
郝学胜-神的一滴5 小时前
使用Linux系统函数递归遍历指定目录
linux·运维·服务器·开发语言·c++·软件工程
pusue_the_sun5 小时前
操作系统:进程的短程调度
运维·服务器
软件技术员6 小时前
使用ACME自动签发SSL 证书
服务器·网络协议·ssl
Murphy_lx6 小时前
Linux系统--信号(4--信号捕捉、信号递达)陌生概念篇
linux·运维·服务器