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

Size or time in seconds for trigger callback #136

Open
reneincer opened this issue Mar 5, 2021 · 1 comment
Open

Size or time in seconds for trigger callback #136

reneincer opened this issue Mar 5, 2021 · 1 comment

Comments

@reneincer
Copy link

Hi there,

I love this library, but for small data sync, I need to wait a lot of for the 1 MB max size config. I know I can change this for doing callback faster, but It will be great if we can set the max time that aggregator can wait to do the callback. For example, 10 seconds, If the buffer only have 300KB, and the last callback was like 10 seconds before, do the callback.

Whatever it comes first,

What do you think?

@IanMeyers
Copy link
Contributor

Yep like the idea. I’d suggest a record counter as well as time.

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

2 participants