镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add Jitter To Google Sync Timeouts #10

Open

Description

@AlecRosenbaum

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.

Activity

  1. transferred this issue fromcloseio/nylason Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions