Skip to content

Parallelize batches #7092

@LesnyRumcajs

Description

@LesnyRumcajs

Summary

According to JSON-RPC 2.0 spec

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.

However, we use jsonrpsee's defaults which don't apply any parallelism. So a batch of 100 eth calls (pretty common scenario) has to get through each call in the batch one by one. Most inefficient!

Completion Criteria

  • Parallelize batch requests. Worth adding a sane concurrency knob. This should be possible without forking jsonrpsee via overrides in the middleware.

Additional Links & Resources

Metadata

Metadata

Assignees

Labels

Type: TaskDiscrete task to implement

Type

No type
No fields configured for issues without a type.

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions