[grpc-io] Re: Updating Subchannels in client Application layer?

2020-10-21 Thread li yabo
Thanks for the replies! the language I'm looking at right now is c#. I understand retry might not fully supported yet, while still hope I can understand the design correctly as the implementation will be there sooner or later which follows the design idea. Thanks for explanation of how subchann

[grpc-io] Re: Updating Subchannels in client Application layer?

2020-10-21 Thread li yabo
To ask my question in another word. If to build a "Thick client" load balancing with gRpc, the client is responsible to keep track of available servers. While when client detected available servers changed, how does it manages correspondi

[grpc-io] Updating Subchannels in client Application layer?

2020-10-19 Thread li yabo
While considering moving a http client/service call to using gRpc, I'm looking at load balancing solutions. We currently have each client manages a list of server names (for one service VIP) and connection pools. The server names changes from time to time, so each client has it's logic to maint

[grpc-io] Re: How request/response stream memory is managed in gRpc.Core?

2020-10-19 Thread li yabo
Thanks a lot! Jan I will look into that code 在2020年10月19日星期一 UTC+8 下午4:21:25 写道: > This is best answered by looking at the sources: > Deserialization: > https://github.com/grpc/grpc/blob/master/src/csharp/Grpc.Core/Internal/DefaultDeserializationContext.cs > Serialization: > https://github.com

[grpc-io] Re: (csharp) Alternative to rpcException?

2020-10-19 Thread li yabo
Thanks a lot for both suggestions. To implement Jan's idea, seems I need to poll the task object to detect if the ask has finished. Is my understanding right? Christopher's suggestion doesn't require polling, but I can think of another potential problem is, since the error doesn't reflect in th

[grpc-io] (csharp) Alternative to rpcException?

2020-10-10 Thread li yabo
I recently learned rpcException is recommended approach to handle failures: 1. server side can 1.1. throw rpcException with status and meta data filled in trailers or, 1.2 set status and trailers to ServerCallContext; 2. client will need to catch rpcException to act upon failure s

[grpc-io] How request/response stream memory is managed in gRpc.Core?

2020-10-08 Thread li yabo
Hi, got 2 questions need help regarding request/response stream memory management in gRpc.Core: 1. Is request/response stream buffer being pooled under the cover so that memory allocation is controlled even the requests volume and size are both large? if yes are there nobs that can be tuned

[grpc-io] am I reporting this "Client crashes in Retry" issue in right channel

2020-09-16 Thread li yabo
Hi, I'm new in this community. Recently I gave a try of grpc retry using csharp, ran into this "Client crashes in Retry" issue . I provided repro steps, all the log I can found, simplified unit test to repro this issue, and what I have investigated. W