+
Skip to content

Add option for rate limiting the multi-streamed API calls #24

@Reidmcc

Description

@Reidmcc

Is your feature request related to a problem?
Rockfish doesn't trigger Horizon rate limiting on its own with a reasonable number of assets, but if you're also running something else that queries Horizon, like Kelp, the combined queries can trigger Horizon rate limiting and mess things up. Using a ton of assets might make Rockfish get rate-limited on its own.

Describe the solution you'd like
Add a config option like THREAD_SPACER_MILLISECONDS to let the user add a bit of time between the multi-threaded API calls so they don't all hit Horizon at the same time.

Describe alternatives you've considered
I thought about developing middleware to manage combined cross-app outgoing queries but that's a much bigger lift and probably over-thinking it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载