Phala-Network / phala-blockchain

The Phala Network Blockchain, pRuntime and the bridge.
https://phala.network
Apache License 2.0
333 stars 149 forks source link

Substrate RPC performance issue in mining pool scenario #270

Open krhougs opened 3 years ago

krhougs commented 3 years ago

There is a scenario that one mining pool have thousands workers running pHost at a time, which rely on the RPC phala.getStorageChanges.

While current implement scans the KVDB on every request, the performance on synching blocks with pHost is unbearable.

Users may migrate to prb to avoid this but it's difficult to make changes on users' existing system, performance enhancement should be applied.

h4x3rotab commented 3 years ago

I prefer external cache than build it into the chain node