Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scql的engine在通信时,用的什么协议,数据格式是什么? #332

Open
friendsAI opened this issue Aug 21, 2024 · 5 comments
Open
Assignees

Comments

@friendsAI
Copy link

Issue Type

Others

Have you searched for existing issues?

Yes

Link to Relevant Documentation

No response

Question Details

两个engine在通信的时候,走的是tcp协议嘛?数据格式是二进制嘛?
@friendsAI
Copy link
Author

另外,engine执行mpc协议通信的时候,涉及到底层mpc的通信,都是通过engine的通信代码执行的吧?

@friendsAI
Copy link
Author

通过抓包,看到了很多prpc协议的包。请问,应用层是用的prpc协议吗?

@tongke6
Copy link
Collaborator

tongke6 commented Aug 22, 2024

@friendsAI engine 服务在代码实现层面使用的是 brpc 框架,可以配置是 http 协议,还是 baidu_std,或者其他的。

如果是 http,底层还是 tcp 协议。MPC 协议的通信,是通过 engine 的 link service 进行通信的。

@tongke6 tongke6 self-assigned this Aug 22, 2024
@friendsAI
Copy link
Author

if (iter != options_.end()) {
options = iter->second;
} else {
SPDLOG_LOGGER_WARN(
logger, "not found options for role={}, default use http protocal",
static_cast(role));
options.brpc_options.protocol = "http:proto";
}
是在这段代码配置brpc 使用http协议嘛? 那什么情况会进入if分支呢?

@tongke6
Copy link
Collaborator

tongke6 commented Aug 30, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants