Talking to Postgres Through Java 16 Unix-Domain Socket Channels
Reading a blog post about what’s coming up in JDK 16 recently,
I learned that one of the new features is support for Unix domain sockets (JEP 380).
Before Java 16, you’d have to resort to 3rd party libraries like jnr-unixsocket in order to use them.
If you haven’t heard about Unix domain sockets before,
they are "data communications [endpoints] for exchanging data between processes executing on the same host operating system".
Don’t be put off by the name btw.;
Unix domain sockets are also supported by macOS and even Windows since version 10.
Back
Read News