Skip to content

Streaming support for JsonRpcServer#4877

Closed
RaoulSchaffranek wants to merge 2 commits into
developfrom
raoul/rpc-streaming-2
Closed

Streaming support for JsonRpcServer#4877
RaoulSchaffranek wants to merge 2 commits into
developfrom
raoul/rpc-streaming-2

Conversation

@RaoulSchaffranek
Copy link
Copy Markdown
Member

This PR extends the JsonRpcServer with support for streaming.
JsonRpcMethods can now return a stream of bytes (Iterator[bytes]) instead of a JSON-serializable value.
The method must ensure that the produced stream is already JSON-encoded, as no extra validation is performed.
This allows us to transfer large responses without buffering the entire response in memory.

This is needed by the kontrol-node, when transferring large execution traces.

@RaoulSchaffranek RaoulSchaffranek changed the base branch from master to develop November 4, 2025 17:41
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.

1 participant