3 ms·
> Is it so complicated to work with a duplex-stream? It's not that duplex-stream is complicated, it's just that request/response semantics are much more suited
by satyanash 7y ago
> Is it so complicated to work with a duplex-stream?
It's not that duplex-stream is complicated, it's just that request/response semantics are much more suited for most use cases. Where duplex streams make sense, we now have websockets. Even then, on top of that you'll end up implementing stateful request/response semantics because you need some structure unless you're literally dumping binary data into the socket.
- afiori 7y agoAnother difference is that the request/response pattern is much better suited for slow/unreliable connections and chaching.