witnet-rust
witnet-rust copied to clipboard
Put JsonRpcServer into its own Arbiter
Context
Flooding JsonRpcServer
with dummy messages makes the entire System
unresponsive as it runs on a single system thread which is shared by every actor in our app.
We need to isolate JsonRpcServer
into its own Arbiter
so that it can run on a separate thread and not block the rest of our actors.
If this works well, it will be useful as a PoC for a more general strategy for actor arbitration and safe isolation of different parts of our apps, which is important for #72.
This issue is still relevant as it is an attack vector for those nodes with public Json RPC server.