Comments (6)
The word transport in our code does not mean the transport in the internet protocol stack. It use grpc/brpc to transport our data, so it is on application layer. By using grpc/brpc service framework, we need not consider a lot about sending/receiving messages, and it simplifies work on definition of our own application layer protocol, I think this is the main advantage.
from yacl.
I want to ask one moe question.
(3) What is the main advantage to design such a transport protocol instead of using TCP directly?
Well, good question, this is more or less a practical thingy.
In thoery, one can always use socket directly. But in real world scenarios, due to complexity of network, using RPC is just a simpler and safer option with reasonable overhead for most cases.
from yacl.
@usafchn could you please have a look?
from yacl.
(1) Brpc is compatible whith grpc if set the appropriate configuration, refer to https://github.com/apache/brpc/blob/master/docs/en/http_derivatives.md#h2grpc
(2) I don't fully understand your question. ChannelBrpc is a class inherited from ChannelBase, and it has some parameters in its construstors propagated to ChannelBase except the options parameters.
from yacl.
Thanks. For the problem (2), I see that my copy of codes is not updated completely.
from yacl.
I want to ask one moe question.
(3) What is the main advantage to design such a transport protocol instead of using TCP directly?
from yacl.
Related Issues (20)
- Improve OT Store data structure in `yacl/crypto/primitives/ot_store.h`
- Feat: Add F2k VOLE support
- Feat: Allow saving/reading cuckoo hashing table to/from a csv file
- Problems in ferret_ote HOT 9
- A small problem in gadget HOT 5
- [Bug]: gcc13 编译时,会报一些数据类型未定义 HOT 5
- Problems in kkrt_ote HOT 3
- Problem in softspoken_ote HOT 5
- 在 YACL 中实现 Kyber OT 协议 HOT 2
- WSL-Ubuntu20.04编译Yacl(bazel build //... -c dbg)报错: HOT 2
- A problem in yacl/kernels/svole_kernel.cc HOT 1
- Problem in yacl/crypto/ossl-provider/helper.h HOT 2
- 建议:ContextDescProto的repeated PartyProto parties排序处理 HOT 1
- yacl/crypto/tpre/kdf的问题 HOT 2
- Windows x86_64 platform support HOT 2
- 编译问题 HOT 24
- 编译问题报错 ld.lld: error: undefined symbol: dlopen HOT 7
- [Question]: Pack before comparison HOT 1
- Problem in Sm4Drbg HOT 3
- 关于yacl编译后的安装问题。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yacl.