9 releases

0.3.0 Dec 19, 2019
0.3.0-alpha.1b Sep 14, 2019
0.3.0-alpha.2 Oct 1, 2019
0.1.2 Oct 11, 2019
0.0.0 Nov 16, 2017

#388 in Asynchronous

Download history 25980/week @ 2020-11-07 29831/week @ 2020-11-14 27854/week @ 2020-11-21 28382/week @ 2020-11-28 33170/week @ 2020-12-05 31967/week @ 2020-12-12 21211/week @ 2020-12-19 17262/week @ 2020-12-26 34762/week @ 2021-01-02 38620/week @ 2021-01-09 32696/week @ 2021-01-16 30592/week @ 2021-01-23 24356/week @ 2021-01-30 23325/week @ 2021-02-06 22493/week @ 2021-02-13 19849/week @ 2021-02-20

93,849 downloads per month
Used in 47 crates (via noria)

MIT license

44KB
586 lines

Tower Buffer

Buffer requests before dispatching to a Service.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tower by you, shall be licensed as MIT, without any additional terms or conditions.


lib.rs:

Buffer requests when the inner service is out of capacity.

Buffering works by spawning a new task that is dedicated to pulling requests out of the buffer and dispatching them to the inner service. By adding a buffer and a dedicated task, the Buffer layer in front of the service can be Clone even if the inner service is not.

Dependencies

~3MB
~53K SLoC