I am building a server application (targeting Unix-like systems) that will receive payloads from clients only on the same machine. Clients will send a request and get a response back with possibility of sending a subsequent request based on what server responded.
What's the best/recommended mechanism to do this? I have been playing around with Unix-domain sockets but I have seen projects that actually use a local web server to receive http requests.
If I am not mistaking,
stdin/command line arguments to achieve something similar.
In my case speed & latency are important so that's why I've been tinkering with sockets.
What's your preferred way of doing this in you Rust projects?