grpc / grpc/grpc-rust

Is it possible to using gRPC over message broker?

Open
#1,390 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

Like [this](https://github.com/awakesecurity/grpc-mqtt).

This is useful if the client and server are behind different firewalls.

I have checked out Server::serve_with_incoming, it required , so it might work.

```rust
pub async fn serve_with_incoming(
self,
incoming: I,
) -> Result<(), super::Error>
where
I: Stream>,
IO: AsyncRead + AsyncWrite + Connected + Unpin + Send + 'static,
IO::ConnectInfo: Clone + Send + Sync + 'static,
IE: Into,
L: Layer,
L::Service: Service, Response = Response> + Clone + Send + 'static,
<>::Service as Service>>::Future: Send + 'static,
<>::Service as Service>>::Error: Into + Send,
ResBody: http_body::Body + Send + 'static,
ResBody::Error: Into,
{

```
But for the generated client-side it requests an *Endpoint*, which is linked directly to http2.
```rust
#[tokio::main]
async fn main() -> Result<(), Box> {
let mut client = EchoClient::connect("http://[::1]:50051").await.unwrap();

```

Is this possible?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.