massa icon indicating copy to clipboard operation
massa copied to clipboard

Support mono threaded client in Massa SDK

Open aoudiamoncef opened this issue 2 years ago • 3 comments

Actually(testnet17), massa-sdk we use json http-clientwhich is built on top of hyper which relies heavily on tokio.

We should have the choice to have a single threaded http client.

cc @BatiGencho

aoudiamoncef avatar Jan 02 '23 11:01 aoudiamoncef

@aoudiamoncef I suggest you have a look at tungstenite-rs and see what it uses under the hood as it is a good lib for ws that we could make use of. It is single threaded and works well with various game clients etc.

BatiGencho avatar Jan 02 '23 13:01 BatiGencho

tungstenite-rs

They recommand to use tokio-tyngstenite in their documentation.

aoudiamoncef avatar Jan 05 '23 15:01 aoudiamoncef

@AurelienFT

With adoption of gRPC, we already have a complete gRPC rust client generated out of the box. It could be easily used in massa-client directly.

IMHO massa-sdk ... will be removed

aoudiamoncef avatar Apr 12 '23 16:04 aoudiamoncef