6gm@ | Inventing the Service trait | Tokio - An asynchronous Rust runtime
https://tokio.rs/blog/2021-05-14-inventing-the-service-trait
Saved on 2023-07-29 [19567 edays] via tokio.rs
Modified 2023-08-08 [19577 edays]
programming rust tokio

Tower is a library of modular and reusable components for building robust networking clients and servers. At its core is the Service trait. A Service is an asynchronous function that takes a request and produces a response. However, some aspects of its design may not be immediately obvious. Rather than explaining the Service trait as it exists in Tower today, let's look at the motivation behind Service by imagining how you might invent it if you started from scratch.