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

#1660 in Asynchronous

Download history 2665/week @ 2024-03-17 2203/week @ 2024-03-24 2084/week @ 2024-03-31 2134/week @ 2024-04-07 2822/week @ 2024-04-14 2369/week @ 2024-04-21 2488/week @ 2024-04-28 2375/week @ 2024-05-05 2654/week @ 2024-05-12 2823/week @ 2024-05-19 3248/week @ 2024-05-26 3673/week @ 2024-06-02 2612/week @ 2024-06-09 2301/week @ 2024-06-16 1822/week @ 2024-06-23 491/week @ 2024-06-30

7,484 downloads per month
Used in 27 crates (via noria)

MIT license

57KB
859 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
~90K SLoC