3 ms·
Despite being entirely different beasts from a design perspective, they solve essentially the same problem: bidirectional communication designed to minimize lat
by forgotusername 14y ago
Despite being entirely different beasts from a design perspective, they solve essentially the same problem: bidirectional communication designed to minimize latency over a single established TCP connection, with protocol-internal notions of channels and framing.
- tptacek 14y agoThat's only superficially accurate, working in the same way as the first graf of Spolsky's "Architecture Astronauts" post from several years back: http://www.joelonsoftware.com/articles/fog0000000018.html http://www.joelonsoftware.com/articles/fog0000000018.html In reality, SPDY and WebSockets have two very different goals: * SPDY is a transport optimized for the HTTP request/response service model, down to specific features to compress HTTP-style headers. * WebSockets is a transport optimized for tunneling bidirectional application-level protocols over an HTTP-style transport.
- forgotusername 14y agoI love the anecdote (and loathe working with that stereotype), but don't think it applies here. We're not exactly drawing a box labelled "DATA", one labelled "SERVER", and drawing a line between them: these protocols are significant, incompatible implementations that do almost the same thing internally, and interact equally as badly with the remainder of the stack externally. To say the similarity is only superficial seems inaccurate. It's a bit like redesigning a car from scratch just because you need snow chains for certain roads, and upholstery covers for certain passengers.
- batista 14y agoThis "architecture astronaut" phrase. I don't think it means what you think it means. The two descriptions you make below describe much more essentially than superficially or "astronautically", the same kind of thing, optimized for slightly different use cases (not even THAT different).
- tptacek 14y agoI didn't call anyone an architecture astronaut; I'm just citing the first paragraph of that post.