@lamp@kitty.haus then you also have people who don't unix (@_@)
Conversation
Notices
-
Izuru Yakumo (八雲 出流) (yakumo_izuru@misskey.m544.net)'s status on Sunday, 02-Jun-2024 19:13:51 JST Izuru Yakumo (八雲 出流) -
lamp (lamp@kitty.haus)'s status on Sunday, 02-Jun-2024 19:13:52 JST lamp #Unix sockets are vastly superior to using TCP/IP for localhost because it's specifically designed for inter-process communication while TCP/IP is a full blown networking stack designed to send data over a big network like the INTERNET.
Using localhost is like packaging letters in envelopes or payloads in boxes to give to your co-worker who's sitting next to you at the same fucking desk.
Why is everyone using localhost to connect their databases and stuff together? Nobody even thinks of Unix sockets.
Maybe it's because all the documentations and example configs use it because it's most likely to work. localhost:3306 will get you MySQL on any distro while the unix socket path is often different on different distros, which makes it a bit more complicated to set up. And maybe because the overhead is negligible enough to not care.
-