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.

相关推荐
陌路202 小时前
Linux 34TCP服务器多进程并发
linux·服务器·网络
爱喝矿泉水的猛男2 小时前
单周期Risc-V指令拆分与datapath绘制
运维·服务器·risc-v
科技块儿2 小时前
【IP】公有&私有IP地址?
服务器·网络协议·tcp/ip
灵神翁2 小时前
自建node云函数服务器
运维·服务器
TangDuoduo00053 小时前
【IO模型与并发服务器】
运维·服务器·网络·tcp/ip
FOREVER-Q3 小时前
Windows 下 Docker Desktop 快速入门与镜像管理
运维·服务器·windows·docker·容器
武子康3 小时前
Java-172 Neo4j 访问方式实战:嵌入式 vs 服务器(含 Java 示例与踩坑)
java·服务器·数据库·sql·spring·nosql·neo4j
CS_浮鱼5 小时前
【Linux】进程概念
linux·运维·服务器
青柚~6 小时前
【鲲鹏服务器麒麟系统arm架构部署docker】
服务器·arm开发·docker·架构
人工智能训练7 小时前
Ubuntu中如何进入root用户
linux·运维·服务器·人工智能·ubuntu·ai编程·root