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

Bundle events that happen close together in time into a single http request #44

Open
mlandauer opened this issue Oct 20, 2019 · 0 comments

Comments

@mlandauer
Copy link
Member

This is a performance optimisation only. If a scraper sends out multiple events in a short period of time it will generate many http requests to the clay server which in turn will generate many requests to the external callback url. It would be sensible to only send out the http requests at most at a certain interval. Say, for arguments sake, that interval is 0.1s. Then, any events that happen in a 0.1s interval we bundle together and send in a single http request.

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