libp2p / rust-libp2p

The Rust Implementation of the libp2p networking stack.
https://libp2p.io
MIT License
4.63k stars 961 forks source link

Backpressure between components #3078

Open mxinden opened 2 years ago

mxinden commented 2 years ago

What is backpressure

A slow consumer should slow down (i.e. backpressure) a fast producer.

Why do we need backpressure

See also coding guidelines - Bound everything.

Where do we enforce backpressure

Related resources

thomaseizinger commented 1 year ago

Relevant discussion happening here: https://github.com/libp2p/rust-libp2p/discussions/3411.

mxinden commented 1 year ago

Cross-referencing backpressure tracking issue for Kademlia here https://github.com/libp2p/rust-libp2p/issues/3710.

thomaseizinger commented 1 year ago

Cross-referencing a discussion around backpressure: https://github.com/libp2p/rust-libp2p/discussions/4585.