bosagora / agora

POC Node implementation for CoinNet
https://bosagora.io
MIT License
37 stars 23 forks source link

RPC: Revamp to implement a LocalRest-like request handling #3253

Closed omerfirmak closed 2 years ago

omerfirmak commented 2 years ago

Currently, we support only a single request in-flight per connection. LocalRest does this differently and can handle multiple requests thru a single connection. LocalRest's approach is more robust in certain edge cases where a request to node A from node B triggers a new request to node B.

omerfirmak commented 2 years ago

We can even move to UDP for better scalability, any opinions? @bosagora/core

hewison-chris commented 2 years ago

We can even move to UDP for better scalability, any opinions? @bosagora/core

As we have retries at the application level I suppose the fact that UDP is not as reliable as TCP should not be an issue.