tower

fn(Request) -> Future

  • 所有者: tower-rs/tower
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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).

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

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

  • tower-balance: A load balancer. Load is balanced across a number of
    services (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).

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

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

  • tower-limit: Middleware limiting the number of requests that are
    processed (docs).

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

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

  • tower-test: Testing utilies (docs).

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

  • tower-util: Miscellaneous additional utilities for Tower
    (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-rs/tower
主編程語言Rust
編程語言Rust (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2017-07-24 23:53:00
推送於2025-07-03 07:53:21
最后一次提交2025-07-03 09:52:53
發布數60
最新版本名稱tower-0.5.2 (發布於 )
第一版名稱tower-service-0.1.0 (發布於 )
用户参与
星數3.9k
關注者數55
派生數301
提交數596
已啟用問題?
問題數220
打開的問題數64
拉請求數520
打開的拉請求數17
關閉的拉請求數72
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?