grpc-circuitbreaker:使用hystrix.js的gRPC断路器

时间:2021-04-30 03:17:46
【文件属性】:
文件名称:grpc-circuitbreaker:使用hystrix.js的gRPC断路器
文件大小:18KB
文件格式:ZIP
更新时间:2021-04-30 03:17:46
JavaScript gRPC断路器 使用为请求提供功能。 用法 const messages = require('your-protobuf-messages'); const rpcClient = require('your-grpc-client'); const { createRpcCommand, } = require('grpc-circuitbreaker'); // Let's say rpcClient.get(request, (err, res) ...) is your function // You need really need .bind()! const command = createRpcCommand(rpcClient.get.bind(rpcClient)); const request = new messages.YourMessage(); com
【文件预览】:
grpc-circuitbreaker-master
----.eslintrc(28B)
----index.js(765B)
----package.json(900B)
----LICENSE(1KB)
----package-lock.json(59KB)
----.gitignore(22B)
----README.md(1KB)

网友评论