英文:
While doing gRPC client-side streaming, how server will behave when it does not receive all of requests
问题
我想知道的是客户端要进行数据流传输的情况。在这个过程中,它会发送三个请求。假设服务器只会收到其中的两个。
在目前的情况下,服务器会如何反应?我猜服务器不会通知客户端关于已完成的请求(它知道预期请求数量),一旦已定义的截止时间到达,该过程将被终止。我的假设是否正确?
我正在进行 gRPC 的 Java 实现。
英文:
I'm wondering about the scenario that the client is going to do data streaming. During that process, it will send three requests. Let's assume that the server will receive only two.
How in current situation server will react? I guess that server will never notify the client about the finished request (it knows the number of requests that are expected) and the process will get terminated as long as the deadline has been defined. Do my assumptions are valid?
I'm working on the Java implementation of gRPC.
答案1
得分: 1
这是正确的。如果服务器正在等待第三个请求,而它从未收到,那么通话将在截止日期之前终止。
英文:
That's correct. If the server is waiting for the 3rd request which it never receives, the call will be terminated by the deadline.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论