Closed jolestar closed 1 year ago
In rust language, RPC has more star in github are jsonrpc and jsonrpsee, and jsonrpsee is the successor of the former, and they are both produced by ParityTech:
jsonrpsee is so new, is it stable enough?
jsonrpsee is so new, is it stable enough?
jsonrpsee used in Subsbtrate, Sui. Or what better options are available
jsonrpsee is so new, is it stable enough?
jsonrpsee used in Subsbtrate, Sui. Or what better options are available
If jsonsee is stable enough, it's offcause a good choice. I 'm not familiar with RPC Frameworks.
Add another option: tarpc, 25k stars in github, the Distributed tracing
feature is useful:
tarpc differentiates itself from other RPC frameworks by defining the schema in code,
rather than in a separate language such as .proto. This means there's no separate compilation
process, and no context switching between different languages.
Some other features of tarpc:
Stream<Item = Request> + Sink<Response>
can be
used as a transport to connect the client and server.Send + 'static
optional: if the transport doesn't require it, neither does tarpc!serde1
Cargo feature will make service requests and
responses Serialize + Deserialize
. It's entirely optional, though: in-memory transports can
be used, as well, so the price of serialization doesn't have to be paid when it's not needed.
We need to choose a rust RPC framework and consider the following requirements.
Dependency
11