4 ms·
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 Cloudfla
by benmanns 5y ago
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.
- catchmeifyoucan 5y agoGood 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.
- miyuru 5y agoAs 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.