scql
scql copied to clipboard
scql的engine在通信时,用的什么协议,数据格式是什么?
Issue Type
Others
Have you searched for existing issues?
Yes
Link to Relevant Documentation
No response
Question Details
两个engine在通信的时候,走的是tcp协议嘛?数据格式是二进制嘛?
另外,engine执行mpc协议通信的时候,涉及到底层mpc的通信,都是通过engine的通信代码执行的吧?
通过抓包,看到了很多prpc协议的包。请问,应用层是用的prpc协议吗?
@friendsAI engine 服务在代码实现层面使用的是 brpc 框架,可以配置是 http 协议,还是 baidu_std,或者其他的。
如果是 http,底层还是 tcp 协议。MPC 协议的通信,是通过 engine 的 link service 进行通信的。
if (iter != options_.end()) {
options = iter->second;
} else {
SPDLOG_LOGGER_WARN(
logger, "not found options for role={}, default use http protocal",
static_cast
可以看下 https://github.com/secretflow/scql/blob/main/engine/exe/main.cc#L48 是怎么注册的