No of Json-Rpc connections to node

+2 votes
Hi Team,

Is there a limit of no of json-rpc connections which I can open to node simultaneously? Lets say I hit the node in 1000 parallel requests creating/transferring asset, will it create an issue?

Thanks.
asked Jun 22, 2017 by amanc

1 Answer

0 votes

There's an rpcthreads runtime parameter (default value 4) that limits the number of simultaneous JSON-RPC requests that can be processed. If you try sending more requests than that in parallel, the node itself won't suffer - you'll just find the client is waiting for the connections to become available. In practice because of MultiChain's internal architecture you're unlikely to see much value in sending more than 2 JSON-RPC requests simultaneously.

answered Jun 22, 2017 by MultiChain
Ok Thanks. Lets say I send 100 requests at the same time, so they will be processed in batches of 2 internally, will the rest 98 wait or can they timeout if they have to wait for long?
That would depend on the API client side and is not MultiChain's decision.
...