News for hackers. Stuff that matters.
Re:Figmage: I don't mess with images (2020) by benmanns on Saturday August 07, 2021 @11:41PM (#28104039)
Can you serve images directly from S3 static website hosting? You’ll avoid any cold start (and Lambda costs) that way. You could also put CloudFront or Cloudflare in front for caching after the first request.
Re:Figmage: I don't mess with images (2020) by catchmeifyoucan on Saturday August 07, 2021 @11:47PM (#28104051)
Good suggestion. I definitely could! I haven’t had a bunch of demand to really optimize that right now. It would also save any time spent for the lambda function executing.
Re:Figmage: I don't mess with images (2020) by miyuru on Sunday August 08, 2021 @04:36AM (#28105134)
As someone who has operated an image hosting service, few more suggestions.

1. Use proper cloudfront caching. I see that all images are hitting the origin every time. Its adding more latency to the request.

2. Set proper cache headers.

3. Fix www.figmage.com. Don't put https in DNS. LOL

4. Enable IPv6 in cloudfront.