Skip to content

server/json-rpc: Add JSON-RPC batch request support#6432

Merged
lutter merged 1 commit intomasterfrom
lutter/json-rpc-batch
Mar 12, 2026
Merged

server/json-rpc: Add JSON-RPC batch request support#6432
lutter merged 1 commit intomasterfrom
lutter/json-rpc-batch

Conversation

@lutter
Copy link
Collaborator

@lutter lutter commented Mar 10, 2026

The migration from jsonrpsee to axum in commit 58b0f25 lost batch request support (JSON arrays of requests). Restore it by parsing both single and batch formats, dispatching each request individually, and returning an array of responses for batches per the JSON-RPC 2.0 spec.

@lutter lutter requested a review from isum March 10, 2026 17:12
Copy link
Member

@isum isum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

The migration from jsonrpsee to axum in commit 58b0f25 lost batch request
support (JSON arrays of requests). Restore it by parsing both single and
batch formats, dispatching each request individually, and returning an
array of responses for batches per the JSON-RPC 2.0 spec.
@lutter lutter force-pushed the lutter/json-rpc-batch branch from 7f30a3e to f56c08f Compare March 12, 2026 17:41
@lutter lutter merged commit f56c08f into master Mar 12, 2026
6 checks passed
@lutter lutter deleted the lutter/json-rpc-batch branch March 12, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants