ethereum / wiki

The Ethereum Wiki
https://www.ethereum.org
14.75k stars 2.57k forks source link

Why is this so: "Batch requests are mainly useful to ensure the serial processing of requests." #571

Closed mudgen closed 6 years ago

mudgen commented 6 years ago

The Wiki for the Javascript API (https://github.com/ethereum/wiki/wiki/JavaScript-API) says this under batch requests:

"Batch requests are mainly useful to ensure the serial processing of requests."

That statement is in direct contradiction to the JSON-RPC specification (http://www.jsonrpc.org/specification) which states this:

The Server MAY process a batch rpc call as a set of concurrent tasks, processing them in any order and with any width of parallelism.

So, why would a batch request ensure the serial processing of requests? Or is this not actually true?

Also, why is a batch request not faster than sending multiple requests? Isn't it faster to make one http connection/request than many?

mudgen commented 6 years ago

Why was this closed? There was no response or answer.

jamesray1 commented 6 years ago

See https://github.com/ethereum/wiki/wiki#issues-and-pull-requests.