While it's certainly true that UDP is unreliable even on localhost, unix datagram sockets arn't, they have flow control.
Re:Nginx 1.7.1 adds syslog support
by IgorPartola on Thursday May 29, 2014 @04:41AM
(#7815327)
I have never seen a reference to this. Can you link a source?
Re:Nginx 1.7.1 adds syslog support
by lobster_johnson on Friday May 30, 2014 @09:45PM
(#7824956)
AF_UNIX with SOCK_STREAM will behave like TCP, in that a "full" stream will block. See http://stackoverflow.com/questions/1478975/unix-domain-socke..., for example.
On the other hand if you use stream sockets, the producer will either block or be told that the consumer is not ready to read any more data (beauty of TCP). In either case, TCP produces enough overhead compared to UDP to slow down the actual useful part of your application, which is often not desirable.
Neither one of these is a good solution as either your consumer or your producer needs to keep their own very large buffers to accommodate spikes in traffic. Ideally, you do this anyways to ensure that you hold onto all the packets you received.
Having said that, I don't know exactly what rsyslog does so I cannot say if this would actually be a problem for it.