bytedance / monoio

Rust async runtime based on io-uring.
Apache License 2.0
3.99k stars 225 forks source link

gRPC example with Tonic #55

Open jon-chuang opened 2 years ago

jon-chuang commented 2 years ago

Would like to see gRPC example by implementing traits from Tonic.

Happy to PR something in if successful.

jon-chuang commented 2 years ago

Resources:

  1. https://twitter.com/brewaddict/status/1367341178362863619 (uring-poll, gRPC greeter benches)
  2. https://github.com/smol-rs/async-compat
jon-chuang commented 2 years ago

Sadly, monoio-compat does not work with h2 as detailed in https://github.com/bytedance/monoio/tree/master/monoio-compat

gRPC based on Tonic depends on h2. This is sad.

ihciah commented 2 years ago

We are working on http framework in async style now. http1 will be supported first.

Why the compat way is not enough? I wrote part of my opinion here.