PostgreSQL UNIX domain sockets vs TCP sockets

前端 未结 5 771
野性不改
野性不改 2020-12-07 11:19

I wonder if the UNIX domain socket connections with postgresql are faster then tcp connections from localhost in high concurrency rate and if it does, by how much?

5条回答
  •  有刺的猬
    2020-12-07 11:57

    afaik, unix domain socket (UDS) work like system pipes and it send ONLY data, not send checksum and other additional info, not use three-way handshake as TCP sockets...

    ps: maybe UDS will be more faster

提交回复
热议问题