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 Answers
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 picture
EXPERT
Uri
answered a year ago
  • 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
answered a year ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions