Hi folks,

MesaTEE is supporting more and more services. In the current RPC design, we
need several handcrafted Rust struct for each service message. It is not
very scalable and will cause maintainability issues. We need a better RPC
framework.

Seems that protobuf-styled RPC is the best choice. We have the following
choices for the software stack
(1) rust-protobuf + grpc-rust + tokio
(2) prost + tonic (or alternatives) + tokio

(1) is more stable, but the Rust codes generated from proto files are too
much big, which finally leads to a super large TCB and bad for TEEs. (2)
benefits from prost for its tiny codebase but it's changing rapidly. I like
(2) better because it's better for TEE from the security/safety perspective.

Any ideas?

Best,
Yu

Reply via email to