libp2p / specs

Technical specifications for the libp2p networking stack
https://libp2p.io
1.56k stars 273 forks source link

connection/README: Recommend yamux over mplex #402

Closed mxinden closed 2 years ago

mxinden commented 2 years ago

The mplex multiplexer does not provide backpressure on a stream. Yamux does. Given that this is a fundamental feature of a stream multiplexer, this commit changes the spec to recommend yamux over mplex.

While yamux is not ideal, e.g. lacks backpressure on the connection level and the number of streams, it is superior in all cases to mplex.


I don't think we should recommend mplex over yamux any longer. Thoughts?

mxinden commented 2 years ago

@marten-seemann looks good to you?