Skip to content

Commit

Permalink
Mention tower-buffer output-queued service pattern in Steer
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayknarayan committed Mar 26, 2020
1 parent 8380483 commit 3299731
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tower-steer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ where
/// Note that `Steer` must wait for all services to be ready since it can't know ahead of time
/// which `Service` the next message will arrive for, and is unwilling to buffer items
/// indefinitely. This will cause head-of-line blocking unless paired with a `Service` that does
/// buffer items indefinitely, and thus always returns `Poll::Ready`.
/// buffer items indefinitely, and thus always returns `Poll::Ready`. For example, wrapping each
/// component service with a `tower-buffer` with a high enough limit (the maximum number of
/// concurrent requests) will prevent head-of-line blocking in `Steer`.
#[derive(Debug)]
pub struct Steer<S, F, Req> {
router: F,
Expand Down

0 comments on commit 3299731

Please sign in to comment.