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

Add Jitter To Google Sync Timeouts #10

Open
AlecRosenbaum opened this issue Jun 25, 2020 · 0 comments
Open

Add Jitter To Google Sync Timeouts #10

AlecRosenbaum opened this issue Jun 25, 2020 · 0 comments

Comments

@AlecRosenbaum
Copy link
Contributor

https://github.com/closeio/nylas/blob/55a5e719a203adf2f20008cc772255a3f2a95e9f/inbox/events/remote_sync.py#L34

Most accounts don't get new calendar events every hour. If most calendars timeout and force a sync at the same time, this results in spikes of API usage/processing every period.

This can be smoothed out by injecting some jitter/randomness into the timeout window. Over time, the randomness will cause the timeout window to drift and we'll end up with a more uniform syncing load.

@jpmelos jpmelos transferred this issue from closeio/nylas Jul 9, 2020
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