Closed akolotov closed 6 years ago
One of the challenges of RPC will be the subscriptions. While not impossible, of course (there's polling), they will be somewhat saturating as we'll need to poll frequently. Considering that it most likely will have to go over HTTPS, there's also going to be a sligh cryptography-related penalty here as well. Need to check if keep-alive penalty can be avoided. There's another option to use websockets, but that might be not the best answer operations-wise. Again, as mentioned in the original issue, the delays might not be a big of an issue. But I thought it would be worth mentioning some downsides of using RPC.
@yrashk what about websockets?
addressed by @yrashk in #41 and #46
Currently parity-bridge assumes that full nodes of networks are configured on the same system where the bridge is run. Therefore it communicates to the nodes by using IPC. This cause several limitations:
The way to avoid these limitations is to introduce ability for the bridge to communicate to full nodes through RPC. It will increase responsiveness of the bridge slightly which should not cause big issues due to the current nature of transactions confirmation mechanism used in the blockchain (there is no strict guarantee of a transaction inclusion into the next block).
Changes required:
authority_keystore
must keep a path to the keystore file with the private key of the bridge authority. This parameter should not belong any node in in the configuration file.