| |
| ▲ | eqvinox 8 months ago | parent | next [-] | | Ok, now it sounds like you're blaming unix sockets for someone's shitty code... No idea what "TI Envelope" is, and a Google search doesn't come up with usable results (oh the irony...) - if it's a logging/metric thing, those are hard to get to perform well regardless of socket type. We ended up using batching with mmap'd buffers for crash analysis. (I.e. the mmap part only comes in if the process terminates abnormally, so we can recover batched unwritten bits.) | | |
| ▲ | jeffbee 8 months ago | parent [-] | | > Ok, now it sounds like you're blaming unix sockets for someone's shitty code... No, I am just saying that the unix socket is not Brawndo (or maybe it is?), it does not necessarily have what IPCs crave. Sprinkling it into your architecture may or may not be relevant to the efficiency and performance of the result. | | |
| ▲ | eqvinox 8 months ago | parent [-] | | Sorry, what's brawndo? (Searching only gives me movie results?) We started out discussing AF_UNIX vs. AF_INET6. If you can conceptually use something faster than sockets that's great, but if you're down to a socket, unix domain will generally beat inet domain... | | |
| ▲ | sgtnoodle 8 months ago | parent | next [-] | | You can do some pretty crazy stuff with pipes, if you want to do better than unix sockets. | | |
| ▲ | zbentley 7 months ago | parent [-] | | Sure, but setting up a piped session with a pre-existing sidecar daemon can be complicated. You either end up using named pipes (badly behaved clients can mess up other clients’ connections, one side has to do weird filesystem polling/watching for its accept(2) equivalent), or unnamed pipes via a Unix socket with fdpass (which needs careful handling to not mess up, and you’re using a Unix socket anyway, so why not use it for data instead?). |
| |
| ▲ | exe34 8 months ago | parent | prev [-] | | it's what plants crave! it's got electrolytes. |
|
|
| |
| ▲ | yetanotherdood 8 months ago | parent | prev [-] | | I'm a xoogler so I don't have access. Do you have a TL;DR that you can share here (for non-Googlers)? |
|