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

Use background jobs wherever appropriate #5

Open
virajvchavan opened this issue Mar 17, 2020 · 0 comments
Open

Use background jobs wherever appropriate #5

virajvchavan opened this issue Mar 17, 2020 · 0 comments

Comments

@virajvchavan
Copy link
Owner

Possible use case:
When user logs in for the first time, currently all of his calendars with all the events are loaded all at once, and then only user is redirected to auth/:provider/callback.

If user has thousands of events, it may take a long time to load the events, and even lead to a timeout before redirecting to our website. It'll be better to start a background job and then return a success response immediately. Then just find a way to show the newly loaded events as they come. (websockets?)

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