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

Coalesce requests to handle load spikes #10

Open
aaron42net opened this issue Mar 9, 2016 · 1 comment
Open

Coalesce requests to handle load spikes #10

aaron42net opened this issue Mar 9, 2016 · 1 comment

Comments

@aaron42net
Copy link
Member

Load spikes will often be for a few hot pages. Don't keep more than one copy of the same original image in RAM at once, and don't have more than one image thread working on generating the same thumbnail.

Use something like https://github.com/golang/groupcache/tree/master/singleflight to coalesce duplicate requests.

@aaron42net
Copy link
Member Author

Now that we're passing through more request headers to support conditional GETs, can requests with different If-None-Match headers be coalesced?

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