doupin5408 2018-07-11 11:33
浏览 94

Go / C ++ gRPC客户端通道和存根生命周期

I have several Go and C++ services, that act as servers and clients, i.e. those are long-living services, that from time-to-time talk to other services.

I cannot find anywhere in gRPC docs whether the client channels and stubs should be long-lasting reusable objects or they should be created on every call. Or, maybe, I should create some kind of a channel/stub pool, where a pair of a channel and a stub exists, for example, for each thread and gets updated, refreshed on some interval or condition.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 TLS1.2协议通信解密
    • ¥40 图书信息管理系统程序编写
    • ¥20 Qcustomplot缩小曲线形状问题
    • ¥15 企业资源规划ERP沙盘模拟
    • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
    • ¥15 前端echarts坐标轴问题
    • ¥15 ad5933的I2C
    • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
    • ¥15 数学建模求思路及代码
    • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题