Ok got it. I was thinking that in a bidirecttional streaming RPC, the server can start sending out replies even before an END STREAM is received (from the DATA frame header). So it's like, (1) the server parses one grpc length prefixed message, (2) call user defined functions, (3) sends it [one grpc message] immediately in a DATA frame without waiting for other messages (and even before an END STREAM).
Thanks. That answered my question. On Tuesday, January 23, 2024 at 1:29:30 AM UTC+8 Michael Lumish wrote: No. In a stream, the contents of all of the DATA frames sent in one direction are collectively treated as a byte stream that contains length-delimited gRPC messages, independent of the DATA frame boundaries. In other words, any single DATA frame can contain only part of a message, or multiple messages, or a combination of those. On Sun, Jan 21, 2024 at 3:28 PM Harie Amjari <healer...@gmail.com> wrote: Hi!, I read the grpc spec from the github but one thing isn't clear for me: > The repeated sequence of *Length-Prefixed-Message* items is delivered in DATA frames Does this mean that in a streaming gRPC, a data frame must contain exactly one grpc message? Is this enforced? -- You received this message because you are subscribed to the Google Groups " grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/237bf62d-180b-4b99-9d73-a2382f163f2dn%40googlegroups.com <https://groups.google.com/d/msgid/grpc-io/237bf62d-180b-4b99-9d73-a2382f163f2dn%40googlegroups.com?utm_medium=email&utm_source=footer> . -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/3fc4d0f1-21c9-4e2d-961d-80bebe37cfb3n%40googlegroups.com.