0

I was researching a bit on GRPC and Server Sent Events. I was wondering does it make sense to implement a "streaming request" via HTTP/2 over GRPC?

That is implement something like

service Chat {
  rpc send(stream ChatRequest) returns (stream ChatResponse) {}
}

instead of

service Chat {
  rpc send(ChatRequest) returns (ChatResponse) {}
}

I am suspecting the answer would be no because the connection is already established and HTTP/2 should reuse the same connection for multiple requests rather than keeping a logical connection open.

Is my hypothesis sound?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.