Code-First Unix Domain Socket Tutorial


Java's SocketChannel / ServerSocketChannel API provides blocking and multiplexed non-blocking access to sockets. Before Java 16, this was limited to TCP/IP sockets - with JEP 380 it is now also possible to access Unix domain sockets. They are addressed by filesystem path names and you can use them for inter-process communication on the same host. Unix domain sockets are supported on Unix based operating system (Linux, MacOS) and - despite their name - Windows 10 and Windows Server 2019. Here's a quick tutorial on how to use the API…

More at https://nipafx.dev/java-unix-domain-sockets/