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

Use range returns for APIs whenever appropriate #2530

Open
Geod24 opened this issue Sep 29, 2021 · 0 comments
Open

Use range returns for APIs whenever appropriate #2530

Geod24 opened this issue Sep 29, 2021 · 0 comments
Assignees

Comments

@Geod24
Copy link
Collaborator

Geod24 commented Sep 29, 2021

Some APIs can return a lot of data, which means we usually end up limiting them to a certain value (e.g. getBlocksFrom).
We should ensure/check the following:

  • Whether we can use a range or stream (Add support for InputStreamProxy REST return type vibe-d/vibe.d#2602).
    For this to work, we need support in the RPC generator as well.
  • Regardless of 1), the client should have a retry logic to properly handle when it doesn't get complete informations for what was requested;
  • Regardless of 1), there should be a mechanism in place to limit abuse (abuse can be long poll, frequent large poll, random access to create arbitrary delays on the node, etc...).
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

No branches or pull requests

3 participants
@Geod24 @hewison-chris and others