Amazon CloudFront : Lambda@Edge function alternative

0

I have one quick question?

  1. Is there any other function in AWS CloudFront that can be used to save routing rules (i.e., cache-control header) for consecutive media segments & is available at least one node of the network other than Lambda@Edge function if not is Lambda@Edge is the only function? I looked at CloudFront Functions but was unsure about those. Can you please confirm? Any reference would be very helpful.

Thank you so much for your quick response.

已提问 2 年前612 查看次数
2 回答
1

CloudFront functions are more limited than Lambda#Edge. You can find the differences here. Those are the only two options for running your code at the edge.

profile pictureAWS
专家
Uri
已回答 2 年前
  • Thanks Uri. Can you or also help answer following question please? In AWS CloudFront, at the origin server, the content is divided into media segments which are further distributed through edge locations. But there does not seem to be any details to indicate that the privacy protections envelopes/details were also injected from the content source along with the file segments. Since the origin server adds the privacy protection envelopes to the consecutive segments, can it be inferred that the origin server also injects the privacy protection envelope along with the consecutive file segments? Thank you so much for your quick and timely response.

0

To the list of differences between CloudFront Functions and Lambda@Edge I can add that looking at the latency and cost, you should go with CloudFront Functions as long as you don't have a reason to use Lambda@Edge.

Going back to your question about routing, I think it's a perfect case for CloudFront Functions and this is how AWS is doing it in their samples.

Headers can be added using Response Headers Policy, but it's not your case I suppose.

profile picture
MG
已回答 2 年前
  • Thanks MG. Can you also help answer following question please? In AWS CloudFront, at the origin server, the content is divided into media segments which are further distributed through edge locations. But there does not seem to be any details to indicate that the privacy protections envelopes/details were also injected from the content source along with the file segments. Since the origin server adds the privacy protection envelopes to the consecutive segments, can it be inferred that the origin server also injects the privacy protection envelope along with the consecutive file segments? Thank you so much for your quick and timely response.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则