-
Notifications
You must be signed in to change notification settings - Fork 533
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
Give options to fallback to a alternative distribution with s3 bucket as the origin to get rid of the 6M limitaion #322
Comments
This is a duplicate of #35 which started in 2018. Wonder why the original is closed, while this duplicate is open? IMHO a 6 MB image size limit is not just a detail needing "enhancement", but major architectural flaw and actual bug. |
Hello. 😄 So, how about we provide a function to retry by requesting a parameter? |
I agree with @klausbadelt. Competitive technologies like cloudinary are easy to integrate, and do not have this limitation. |
Hey team — adding a +1 to this thread. Overall, this solution has been fantastic and really easy to integrate, but not being able to send large images back to the client is limiting the potential use cases. Right now my customers are frequently uploading 3-8mb images (e.g. a screenshot of a 30" monitor), and not being able to return that or fall back to the original bucket source image is a blocker. Any advice or workarounds for falling back to the original bucket origin would be awesome to have here. |
@brianlovin My solution would be to run a light compression on the browser side on a file that is 6 MB or larger before sending it to your S3 bucket. Because that would ensure it still gets piped through SIH and accessed via Cloudfront delivery easily. It is a workaround for now until Amazon fixes the 6MB Lambda limit. |
Makes sense, thanks for the idea. In my case, it's important I preserve the original asset for the user to download again in the future at its original size/resolution, so this might not work for my case at the moment. |
Still facing the same issue with Image greater than 5MB, |
We are researching methods to resolve the 6mb issue and will update this once we have a resolution. |
Hi @fisenkodv |
Just remember even if you get by the 6MB Lambda payload limit, there is still the 10MB gateway payload limit. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Can we please fix this issue? we are really looking forward to have a workaround, This issue is almost 1 and half year old now. It's causing blockers for us |
Even with the image resizing, some images are too big as response for the lambda payload limit. Would changing the lambda payload invocation from request/response to streaming be an option? In particular, I was thinking of updating the handler function to stream responses by wrapping it with the streamifyResponse() decorator. |
Hi all, any update on this one? |
1 similar comment
Hi all, any update on this one? |
Hi @hoantran-it, @crowforkotlin and @ensean, While we don't currently have plans to implement this feature, we are working on providing a deployment parameter which will cause SIH to use an alternative infrastructure backed by S3 Object Lambda rather than API Gateway. This would remove the 6MB response size limit, restricting us solely to what can be processed by the Lambda within 30 seconds. We hope to release this feature in the next major release. Thank you for your interest in SIH, |
Thank you for the update! We are looking for that! 🙏 @simonkrol For other people, who's encountering this issue. This is a workaround I suggest:
Hope it helps! |
Is your feature request related to a problem? Please describe.
Lambda's 6M payload limitation causing 413 error
Describe the feature you'd like
Give the user an option to fallback to an alternative distribution when image is too large, the alternative distribution use s3 as origin
Additional context
Maybe we can use LE bound to origin response, and redirect to the original image when api gw returns 413 error?
The text was updated successfully, but these errors were encountered: