Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an option to connect to Redis via Unix Domain Sockets #52

Closed
taer opened this issue Mar 26, 2015 · 2 comments
Closed

Provide an option to connect to Redis via Unix Domain Sockets #52

taer opened this issue Mar 26, 2015 · 2 comments
Labels
type: feature A new feature
Milestone

Comments

@taer
Copy link
Contributor

taer commented Mar 26, 2015

Having an option to connect to a local Redis via UDS would be nice to have. It's allegedly faster.
From: http://redis.io/topics/benchmarks

Depending on the platform, unix domain sockets can achieve around 50% more throughput than the TCP/IP loopback (on Linux for instance)

Netty supports UDS in 4.0.26
https://twitter.com/normanmaurer/status/573090616000843777

Additional info from chat

mostly adding a new schemes to RedisURI, say redis-socket and redis-sentinel-socket or something like that then upgrading to latest netty, adding the socket resolution and maybe some bootstrap options.

@mp911de
Copy link
Collaborator

mp911de commented Apr 27, 2015

@taer I created a first draft of unix domain sockets. It works currently only on linux x86_64 since netty has only that support builtin. I guess, you could compile the native parts as needed.

@mp911de
Copy link
Collaborator

mp911de commented May 3, 2015

Merged into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants