Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC: Enable back json streaming for non-batch and non-websocket cases #4647

Merged
merged 3 commits into from
Jul 6, 2022

Conversation

AskAlexSharov
Copy link
Collaborator

Erigon has enalbed json streamin for some heavy endpoints (like trace_*). It's treadoff: greatly reduce amount of RAM (in some cases from 30GB to 30mb), but it produce invalid json format if error happened in the middle of streaming (because json is not streaming-friendly format)

We decided that value from this streaming is higher than handling "error happen in the middle" rare corner case. But added flag: --rpc.streaming.disable if users wish to pay for correctnesses or compatibility.

@AskAlexSharov AskAlexSharov changed the title RPC: Enable back json streaming for non-batch and non-websocket cases [wip] RPC: Enable back json streaming for non-batch and non-websocket cases Jul 6, 2022
@AskAlexSharov AskAlexSharov changed the title [wip] RPC: Enable back json streaming for non-batch and non-websocket cases RPC: Enable back json streaming for non-batch and non-websocket cases Jul 6, 2022
@AlexeyAkhunov AlexeyAkhunov merged commit d9cb87a into devel Jul 6, 2022
@AlexeyAkhunov AlexeyAkhunov deleted the enable_rpc_streaming branch July 6, 2022 10:44
@AskAlexSharov AskAlexSharov mentioned this pull request Aug 2, 2022
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