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

Jitter doesn't work with long page cache expirations #12

Closed
KeithCu opened this issue Feb 6, 2020 · 1 comment
Closed

Jitter doesn't work with long page cache expirations #12

KeithCu opened this issue Feb 6, 2020 · 1 comment

Comments

@KeithCu
Copy link
Owner

KeithCu commented Feb 6, 2020

The jitter is a nice feature to spread out the requests slightly. That way when someone shows up, an hour after the server started, they will only have to fetch one request, as the other hourly requests will actually expire over the next 5 minutes.

However, it only works for short page cache lengths. Right now, with a page cache of 10 minutes, when that expires, the next user is often having to wait for multiple fetches. So either shorten the page cache to around 1 minute, or take out the jitter.

@KeithCu
Copy link
Owner Author

KeithCu commented Feb 10, 2020

Changed the page cache to 5 minutes, and jitter to 15 minutes. That should hopefully split up the new requests between 3 separate pages. This of course assume people are showing up at least every 5 minutes.

@KeithCu KeithCu closed this as completed Feb 10, 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