sig-net / mpc

6 stars 0 forks source link

Optimize getting contract state and node state #38

Open volovyks opened 4 weeks ago

volovyks commented 4 weeks ago

Description

Ideally, such operations should be placed in a separate thread that is not blocking protocols. It has not been tested, but it can have a stronger effect when 1+ node is offline since requests are taking more time.

volovyks commented 4 weeks ago

We are not doing all /state calls in parallel. So we can optimize it significantly.

volovyks commented 2 weeks ago

Dashboard idea: once this is done, add metrics about elapsed time since the last contract and node state update. And the alerts on top of it. That will allow us to track RPC and other issues more easily.