NodeJS: Handling write errors on BiDi streams

36 views
Skip to first unread message

ba...@learningmotors.com

unread,
Jul 20, 2017, 5:54:57 PM7/20/17
to grpc.io
Hi,

I'm using the NodeJS grpc client to talk to a go based grpc server. When using a bidirectional stream, is there any automatic retries for write errors? If I look at the output of write (https://grpc.io/grpc/node/grpc-ClientDuplexStream.html), I can see when a write fails. Is it up to the consumer of the grpc client to re-try write failures? And, if so, also the consumer of the client's responsibility to maintain order within the stream?

Thanks,
Baron

Michael Lumish

unread,
Jul 20, 2017, 6:01:32 PM7/20/17
to ba...@learningmotors.com, grpc.io
As that documentation says, if a write fails due to a serialization error, the call is cancelled. If the write fails for some other reason, that means that the call has already ended in some way. Either way, you should not continue writing after a write failure.

--
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 post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/ce313dfc-57a2-477a-bf84-6c489a0f7005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages