Skip to content

Background discussion: three layers of framing #1

@wenbozhu

Description

@wenbozhu
  1. Multiplexing-level framing introduced by the "transport layer", i.e. http/2 etc
  2. Message level framing, i.e. the delivery semantics
  3. WS introduced fragmentation to support length-prefixed framing of Review of WiSH #2, for large messages whose sizes are unknown when messages are being generated in the runtime
    Review of WiSH #2 is always needed.

Mixing #1 and #2 will cause HOL blocking (at the stream level).

Not sure about how much value #3 adds in real world. However, even we can limit the max message size (e.g. to 1MB), there is still an optimization opportunity involved to allow data to be flushed to the network in real-time. Q: has there been any API (in JS or other languages) that supports "streamed message" over WS?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions