rooch-network / rooch

VApp Container with Move Language
https://rooch.network
Apache License 2.0
128 stars 54 forks source link

[RPC] Introduce a rust RPC framework #10

Closed jolestar closed 1 year ago

jolestar commented 1 year ago

We need to choose a rust RPC framework and consider the following requirements.

  1. It can run a standalone server.
  2. It can easily be embedded into another system(MoveOS also is a library).
  3. Javascript SDK friendly, REST or JSON-RPC?

Dependency

11

lshoo commented 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 Features

pause125 commented 1 year ago

jsonrpsee is so new, is it stable enough?

lshoo commented 1 year ago

jsonrpsee is so new, is it stable enough?

jsonrpsee used in Subsbtrate, Sui. Or what better options are available

pause125 commented 1 year ago

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.

lshoo commented 1 year ago

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:

jolestar commented 1 year ago

11 #49 #60 finished