简体   繁体   中英

gRPC with Node.js, retry mechanism?

I am building a gRPC client in Node.js. I want my failing calls to be executed a few more times before giving up. I cannot find anything about this in the documentation, although there seems to be something similar but for the Go package. Do you have any idea how to achieve this? If not possible with the grpc package, what is a possible solution?

The Node gRPC library currently does not have any built in retry mechanism. However, the recently added client interceptors API can be used to implement one. The client interceptors designn document includes an example for implementing retries using that API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM