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

Allow to throttle the number of blocks read per second from a filesource #33

Open
fschoell opened this issue Aug 4, 2023 · 0 comments

Comments

@fschoell
Copy link

fschoell commented Aug 4, 2023

To be able to better control the usage on lower tiers it would be helpful to throttle the number of blocks per second that get fed into the Substream workers or send out from Firehose.

The dauth plugin could then control it from a trusted header like X-SF-THROTTLE-BLOCKS, which gets parsed in the firehose/substream app and then passed on as parameter or option to bstream when creating a new filesource.

Not sure where the best way would be to implement such a throttle, maybe we could just add a sleep here

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

1 participant