-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(api): remove jsonrpc backend #693
feat(api): remove jsonrpc backend #693
Conversation
…-subscriptions-using-jsonrpsee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks quite nice 👍
core/lib/zksync_core/src/api_server/web3/backend_jsonrpsee/batch_limiter_middleware.rs
Outdated
Show resolved
Hide resolved
core/lib/zksync_core/src/api_server/web3/backend_jsonrpsee/batch_limiter_middleware.rs
Outdated
Show resolved
Hide resolved
core/lib/zksync_core/src/api_server/web3/backend_jsonrpsee/batch_limiter_middleware.rs
Outdated
Show resolved
Hide resolved
core/lib/zksync_core/src/api_server/web3/backend_jsonrpsee/batch_limiter_middleware.rs
Outdated
Show resolved
Hide resolved
core/lib/zksync_core/src/api_server/web3/backend_jsonrpsee/batch_limiter_middleware.rs
Show resolved
Hide resolved
@montekki people start to hack around the code too (and will do that more with zkStack), so we should start to treat the API our code provides too; I'd propose it to be a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how well the new approach behave under load, but the code looks nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, well done.
## What ❔ Removes leftover files. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`. - [ ] Spellcheck has been run via `cargo spellcheck --cfg=./spellcheck/era.cfg --code 1`.
## What ❔ A small follow-up PR for #693 that introduces some metrics allowing to track the health of the new approach. Also, does minor refactoring for the API server builder so it's more typesafe. ## Why ❔ Observability and maintainability. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `cargo spellcheck --cfg=./spellcheck/era.cfg --code 1`.
🤖 I have created a release *beep* *boop* --- ## [18.10.0](core-v18.9.0...core-v18.10.0) (2023-12-25) ### Features * **api:** Add metrics for `jsonrpsee` subscriptions ([#733](#733)) ([39fd71c](39fd71c)) * **api:** remove jsonrpc backend ([#693](#693)) ([b3f0417](b3f0417)) * applied status snapshots dal ([#679](#679)) ([2e9f23b](2e9f23b)) * **en:** Make reorg detector work with pruned data ([#712](#712)) ([c4185d5](c4185d5)) * Remove data fetchers ([#694](#694)) ([f48d677](f48d677)) * Remove zks_getConfirmedTokens method ([#719](#719)) ([9298b1b](9298b1b)) ### Bug Fixes * added waiting for prometheus to finish ([#745](#745)) ([eed330d](eed330d)) * **EN:** temporary produce a warning on pubdata mismatch with L1 ([#758](#758)) ([0a7a4da](0a7a4da)) * **prover:** Add logging for prover + WVGs ([#723](#723)) ([d7ce14c](d7ce14c)) * remove leftovers after [#693](#693) ([#720](#720)) ([e93aa35](e93aa35)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
What ❔
The new release of
jsonrpsee
removes all known blockers for removingjsonrpc
backend.Checklist
zk fmt
andzk lint
.cargo spellcheck --cfg=./spellcheck/era.cfg --code 1
.