Go to file
Lucio Franco 9dfcf7e527 Add tower to the readme (#207) 2019-03-26 08:38:00 -07:00
ci Rename tower-util -> tower (#197) 2019-03-15 10:53:19 -07:00
tower Introduce the `ServiceBuilder` (#175) 2019-03-26 10:14:42 -04:00
tower-balance Initial introduction of tower-service-util (#193) 2019-03-14 11:27:36 -07:00
tower-buffer buffer: switch to TypedExecutor (#205) 2019-03-25 10:56:12 -07:00
tower-discover discover: polish crate (#194) 2019-03-14 13:11:53 -07:00
tower-filter Initial introduction of tower-service-util (#193) 2019-03-14 11:27:36 -07:00
tower-in-flight-limit Introduce the `ServiceBuilder` (#175) 2019-03-26 10:14:42 -04:00
tower-layer Introduce the `ServiceBuilder` (#175) 2019-03-26 10:14:42 -04:00
tower-load-shed Introduce tower-load-shed (#204) 2019-03-20 15:48:10 -07:00
tower-mock depend on tower-service from crates.io (#186) 2019-03-06 13:38:58 -08:00
tower-rate-limit rate-limit: Refresh layout (#189) 2019-03-08 22:44:48 -08:00
tower-reconnect Initial introduction of tower-service-util (#193) 2019-03-14 11:27:36 -07:00
tower-retry Introduce the `ServiceBuilder` (#175) 2019-03-26 10:14:42 -04:00
tower-service layer: Add `tower-layer` and the `Layer` trait (#163) 2019-02-27 15:28:42 -05:00
tower-service-util add poll_ready to MakeConnection (#202) 2019-03-19 18:18:07 -07:00
tower-timeout Introduce the `ServiceBuilder` (#175) 2019-03-26 10:14:42 -04:00
.gitignore Initial commit 2016-08-26 16:26:03 -07:00
Cargo.toml Introduce the `ServiceBuilder` (#175) 2019-03-26 10:14:42 -04:00
LICENSE Update the license for 2019 and tower contributors (#148) 2019-01-15 17:29:08 -05:00
README.md Add tower to the readme (#207) 2019-03-26 08:38:00 -07:00
azure-pipelines.yml Remove tower-watch (#200) 2019-03-19 18:18:59 -07:00

README.md

Tower

Tower is a library of modular and reusable components for building robust networking clients and servers.

Build Status Gitter

Overview

Tower aims to make it as easy as possible to build robust networking clients and servers. It is protocol agnostic, but is designed around a request / response pattern. If your protocol is entirely stream based, Tower may not be a good fit.

Project Layout

Tower consists of a number of components, each of which live in their own sub crates.

  • [tower]: The main user facing crate that provides batteries included tower services ([docs][t-docs]).

  • [tower-service]: The foundational traits upon which Tower is built ([docs][ts-docs]).

  • [tower-layer]: The foundational trait to compose services together ([docs][tl-docs]).

  • [tower-balance]: A load balancer. Load is balanced across a number of services ([docs][tb-docs]).

  • [tower-buffer]: A buffering middleware. If the inner service is not ready to handle the next request, tower-buffer stores the request in an internal queue ([docs][tbuf-docs]).

  • [tower-discover]: Service discovery abstraction ([docs][td-docs]).

  • [tower-filter]: Middleware that conditionally dispatch requests to the inner service based on a predicate ([docs][tf-docs]);

  • [tower-in-flight-limit]: Middleware limiting the number of requests that are in-flight for the inner service ([docs][tifl-docs]).

  • [tower-mock]: Testing utility for mocking a Service. This is useful for testing middleware implementations ([docs][tm-docs]);

  • [tower-rate-limit]: Middleware limiting the number of requests to the inner service over a period of time ([docs][trl-docs]).

  • [tower-reconnect]: Middleware that automatically reconnects the inner service when it becomes degraded ([docs][tre-docs]).

  • [tower-retry]: Middleware that retries requests based on a given Policy ([docs][tretry-docs]).

  • [tower-timeout]: Middleware that applies a timeout to requests ([docs][tt-docs]).

  • [tower-service-util]: Miscellaneous additional utilities for Tower ([docs][tu-docs]).

Status

Currently, only [tower-service], the foundational trait, has been released to crates.io. The rest of the library will be following shortly.

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. [tower]: tower [t-docs]: https://tower-rs.github.io/tower/doc/tower/index.html [tower-service]: tower-service [ts-docs]: https://docs.rs/tower-service/ [tower-layer]: tower-layer [tl-docs]: https://docs.rs/tower-layer/ [tower-balance]: tower-balance [tb-docs]: https://tower-rs.github.io/tower/doc/tower_balance/index.html [tower-buffer]: tower-buffer [tbuf-docs]: https://tower-rs.github.io/tower/doc/tower_buffer/index.html [tower-discover]: tower-discover [td-docs]: https://tower-rs.github.io/tower/doc/tower_discover/index.html [tower-filter]: tower-filter [tf-docs]: https://tower-rs.github.io/tower/doc/tower_filter/index.html [tower-in-flight-limit]: tower-in-flight-limit [tifl-docs]: https://tower-rs.github.io/tower/doc/tower_in_flight_limit/index.html [tower-mock]: tower-mock [tm-docs]: https://tower-rs.github.io/tower/doc/tower_mock/index.html [tower-rate-limit]: tower-rate-limit [trl-docs]: https://tower-rs.github.io/tower/doc/tower_rate_limit/index.html [tower-reconnect]: tower-reconnect [tre-docs]: https://tower-rs.github.io/tower/doc/tower_reconnect/index.html [tower-retry]: tower-retry [tretry-docs]: https://tower-rs.github.io/tower/doc/tower_retry/index.html [tower-timeout]: tower-timeout [tt-docs]: https://tower-rs.github.io/tower/doc/tower_timeout/index.html [tower-service-util]: tower-service-util [tu-docs]: https://tower-rs.github.io/tower/doc/tower_util/index.html