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개 답변
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠