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

#1673 in Asynchronous

Download history 1709/week @ 2024-07-25 1576/week @ 2024-08-01 2176/week @ 2024-08-08 2139/week @ 2024-08-15 1979/week @ 2024-08-22 1768/week @ 2024-08-29 1687/week @ 2024-09-05 1564/week @ 2024-09-12 1461/week @ 2024-09-19 1963/week @ 2024-09-26 2926/week @ 2024-10-03 1980/week @ 2024-10-10 2032/week @ 2024-10-17 1711/week @ 2024-10-24 2020/week @ 2024-10-31 1821/week @ 2024-11-07

8,090 downloads per month
Used in 27 crates (via noria)

MIT license

58KB
865 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

~5.5MB
~95K SLoC