atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

support UNIX Domain socket as endpoint

Open jonassmedegaard opened this issue 3 years ago • 1 comments

When hosting via a frontend proxy sever, connecting to backend service is relatively slow to do over a TCP socket. It is faster to use a Unix domain socket (about 6 times faster according to some measures). Also, if frontend server does authentication, then that can be bypassed for processes running on same host. And it can be cumbersome to keep track of which service is occupying which TCP ports.

It seems actix-web supports listening on UNIX Domain socket since v1.0.8.

Please implement support for domain socket, e.g. with command-line option --path-uds and environment variable ATOMIC_PATH (as equivalent to existing --port and ATOMIC_PORT, with space to equivalently extend later to support other types of path-based socket like uwsgi).

jonassmedegaard avatar Mar 16 '22 11:03 jonassmedegaard

Makes sense and seems reasonable! I'm pretty sure this will be a small change. I'll look into it.

joepio avatar Mar 16 '22 16:03 joepio