Comment by calineczka
1 day ago
> message oriented
Very well said. I think there is enormous complexity in many layers because we don't have that building block easily available.
1 day ago
> message oriented
Very well said. I think there is enormous complexity in many layers because we don't have that building block easily available.
It's the main reason why I use websockets for a whole lot of things. I don't wanna build my own message chunking layer on top of TCP every time.
WebSocket is full of web-tech silliness; you'd be better off doing your own framing.
Well, it also has the advantage of providing pretty decent encryption for free through WSS.
But yeah, where that's unnecessary, it's probably just as easy to have a 4-byte length prefix, since TCP handles the checksum and retransmit and everything for you.
2 replies →