Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Unix Domain Sockets

Mark Paluch edited this page Jun 30, 2015 · 1 revision

Unix Domain Sockets

spinach supports Unix Domain Sockets for connecting to Disque.

Connecting to Disque using DisqueURI

DisqueURI disqueUri = DisqueURI.Builder
                             .disqueSocket("/tmp/disque")
                             .withPassword("authentication")
                             .build();

DisqueClient client = new DisqueClient(disqueUri);

Connecting to Disque using String DisqueURI

DisqueURI disqueUri = DisqueURI.create("disque-socket:///tmp/disque");
DisqueClient client = new DisqueClient(disqueUri);

Unix Domain Sockets are inter-process communication channels on POSIX compliant systems. They allow to exchange data between processes on the same host operating system. When using Disque, which is usually a network service, Unix Domain Sockets are usable only if connecting locally to a single instance.

Unix Domain Socket connections are currently limited to Linux x86_64 systems with a minimum netty version of 4.0.26.Final. You can, however, port the native library to your system. The netty guys would appreciate. You can check here whether there is a new platform binary available.