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

Add support for batch requests to JSON RPC server #4688

Merged
merged 5 commits into from
Nov 23, 2024

Conversation

RaoulSchaffranek
Copy link
Member

Simbolik and kontrol-node exchange many requests, and processing them one request at a time quickly becomes a performance bottleneck. By batching requests together we can avoid the bottleneck. The batching implementation here is part of the JSON RPC spec, see: https://www.jsonrpc.org/specification#batch

@rv-jenkins rv-jenkins changed the base branch from master to develop November 21, 2024 11:55
pyk/src/pyk/rpc/rpc.py Outdated Show resolved Hide resolved
pyk/src/pyk/rpc/rpc.py Outdated Show resolved Hide resolved
pyk/src/tests/unit/test_json_rpc.py Outdated Show resolved Hide resolved
pyk/src/pyk/rpc/rpc.py Outdated Show resolved Hide resolved
pyk/src/pyk/rpc/rpc.py Outdated Show resolved Hide resolved
@RaoulSchaffranek
Copy link
Member Author

Thanks for the review @tothtamas28! Sounds all reasonable to me and I addressed your comments in f8fa54f

pyk/src/pyk/rpc/rpc.py Outdated Show resolved Hide resolved
@RaoulSchaffranek RaoulSchaffranek merged commit 3d266bd into develop Nov 23, 2024
18 checks passed
@RaoulSchaffranek RaoulSchaffranek deleted the raoul/rpc-batch-requests branch November 23, 2024 02:50
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