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
Stop rate-limiting asset-signed-url requests #2786
Conversation
@jschaul i have created a ticket for the FE side of things if you would like to attach https://wearezeta.atlassian.net/browse/SQSERVICES-1763 |
Have the downsides/risks of this been considered? If so, can you please write them here or link it? |
I updated the description to include links to the two related issues.
The only risk I can see here is a bigger amount of requests going to cargohold for getting an asset link, or deleting an asset, and a bigger amount of requests going to AWS for this. As none of these requests involve streaming of actual asset payloads (that's only |
…hat many conversations have many assets that should be downloaded. We may wish to be more lenient on asset download (well, getting signed URLs to download assets) requests.
41b9ff1
to
eb5a4eb
Compare
Sounds good, I don't see any other threats, just wanted to make sure we leave some context here in case we need to look into this in future. |
… too (#3138) Fix a rate-limit exemption whereby authenticated endpoints did not get the unlimited_requests_endpoint, if set, applied. This is a concern for the webapp and calls to /assets, which can happen in larger numbers on initial loading. A previous change in [this PR](#2786) had no effect. This PR also increases default rate limits, to compensate for [new ingress controller chart](#3140 default topologyAwareRouting.
After not using the wire client for some time, it can easily happen that many conversations have many assets that should be downloaded. We may wish to be more lenient on asset download (well, getting signed URLs to download assets) requests. See https://wearezeta.atlassian.net/browse/SQCORE-1372 and https://wearezeta.atlassian.net/browse/SQSERVICES-1763
Checklist
changelog.d