Skip to content

Support to connect to Redis via unix domain sockets? #54

New issue

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

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

Already on GitHub? # to your account

Open
Fijxu opened this issue Apr 13, 2025 · 2 comments
Open

Support to connect to Redis via unix domain sockets? #54

Fijxu opened this issue Apr 13, 2025 · 2 comments

Comments

@Fijxu
Copy link

Fijxu commented Apr 13, 2025

It is possible to add support for Unix Domain sockets to connect to a Redis compatible DB? You should probably already know that UDS always has better performance than TCP.

The https://github.com/stefanwille/crystal-redis lib seemed to support it: https://github.com/stefanwille/crystal-redis/blob/5fc089cc4f73f08eb42170cb82e30205369a18ad/src/redis.cr#L85

@Fijxu Fijxu changed the title Support to connecto to Redis via unix domain sockets? Support to connect to Redis via unix domain sockets? Apr 13, 2025
@jgaskins
Copy link
Owner

There's been a PR open for it for a few years, actually. #4

I kept meaning to get back to it and try it out, but it's been so long since I've worked with Unix domain sockets (15-20 years?) that I'm out of my depth there. I simply never run things in a way that guarantees they'll coexist on a single box anymore. It seems like it should just work, but I don't know how to verify that.

@Fijxu
Copy link
Author

Fijxu commented Apr 13, 2025

That PR should work fine, I'll try it myself later. Thanks

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants