grpc-java icon indicating copy to clipboard operation
grpc-java copied to clipboard

Does gRPC-java supports http2-stream-priority?

Open silentAllay opened this issue 10 years ago • 4 comments

If yes, How to use it? Is there an example?

silentAllay avatar Oct 30 '16 21:10 silentAllay

No. Java will actually follow any priority today if the other side sends it, but provides no way to send it. That isn't a guarantee, we could swap to turning that off at any point. I know also that C core doesn't observe priority and I don't think Go does either. Multiple of us wouldn't be surprised to see it later, but it is still unclear how many users would use it and what their use cases are. We are pretty certain anything we expose wouldn't be as powerful as HTTP/2, because it would make a really poor API.

ejona86 avatar Oct 30 '16 23:10 ejona86

What is your use case?

ejona86 avatar Oct 30 '16 23:10 ejona86

I read the http2-spec about the StreamPriority mechanism, I think it will be pretty complicate to implement it. So I wondered how gRPC deal with it.

silentAllay avatar Nov 01 '16 06:11 silentAllay

It is complicate to implement, and there isn't yet a good way to expose it. Its also slightly more computationally expensive to implement so we leave it alone currently.

carl-mastrangelo avatar Nov 01 '16 20:11 carl-mastrangelo