microsoft / garnet

Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
https://microsoft.github.io/garnet/
MIT License
10.35k stars 522 forks source link

Unix Socket Listen Support #682

Open batonac opened 1 month ago

batonac commented 1 month ago

Feature request type

enhancement

Is your feature request related to a problem? Please describe

Some of us prefer to avoid the overhead of TCP/IP when connecting services on the same machine.

Describe the solution you'd like

Two more flags: unixsocket and unixsocketperm

GarnetServer --unixsocket /tmp/redis.sock --unixsocketperm 770

Describe alternatives you've considered

Use one of the many alternatives that support unix sockets 😄

Additional context

The flags above are identical to Redis FYI.

xiaofeng-zheng commented 6 days ago

Hi team, are you still considering this enhancement? I'd like to confirm it before I do any dev works. I'm seeing the current implementation assumes everywhere that there's only one TCP server listening for the connections so I'm not sure if it's a big change to support Unix socket.