Re:Why does gRPC insist on trailers?
by phoboslab on Monday August 08, 2022 @06:22AM
(#32383941)
Pardon my ignorance: Are messages sent through this guaranteed to arrive in order?
[ Parent
| on HN ]
Yes. SSEs are just an infinite-length HTTP body formatted in a particular way. And like all HTTP bodies, they are guaranteed to arrive in the same order the bytes were sent.
Re:Why does gRPC insist on trailers?
by yencabulator on Monday August 08, 2022 @06:49PM
(#32392102)
Server-to-client, yes. The moment you write a little chat app that sends every line you type as separate POSTs -- which can be reordered -- you get to keep both pieces.
I wish browsers would support streaming request bodies in the fetch API. That would obsolete WebSockets practically immediately.