-
Notifications
You must be signed in to change notification settings - Fork 688
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
[DO NOT MERGE]: PoC rpc rate limit middleware #2208
Conversation
we have recently implemented rate limiting with Subway https://github.com/AcalaNetwork/subway |
Nice but I think it's worth to provide a custom ResponseFuture not box the futures as it will run for every rpc call and use more memory. When native async trait is thing in rust we could change the middleware in jsonrpsee to be easier to work with. //cc @PierreBesson may be worth to test out subway now :) The govenor crate looks neat. |
The CI pipeline was cancelled due to failure one of the required jobs. |
This PR adds the following:
--rpc-rate-limit (calls per min)