# Amazon CloudFront Functions 공개

> Clean Markdown view of GeekNews topic #4201. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4201](https://news.hada.io/topic?id=4201)
- GeekNews Markdown: [https://news.hada.io/topic/4201.md](https://news.hada.io/topic/4201.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-05-06T10:37:45+09:00
- Updated: 2021-05-06T10:37:45+09:00
- Original source: [aws.amazon.com](https://aws.amazon.com/blogs/aws/introducing-cloudfront-functions-run-your-code-at-the-edge-with-low-latency-at-any-scale/)
- Points: 7
- Comments: 4

## Topic Body

- 218개의 CloudFront Edge에서 JS코드를 실행하는 경량 서버리스 스크립팅 플랫폼

- 풀 서버리스인 Lambda@Edge 보다 더 끝단에 있고, 기능은 간단한 HTTP Req/Res 용도로 짧은 생명주기를 가짐

ㅤ→ Lambda@Edge(L@E)는 VM기반, CloudFront Functions(CFF)는 프로세스 기반 Isolation

ㅤ→ L@E 와 CFF 둘다 같이 사용 가능

ㅤ→ CFF : 네트웍/파일 접근 안됨. 1ms이하의 실행시간. Req 바디 접근 불가. 프리티어 제공. 가격은 L@E의 1/6

- 사용 예

ㅤ→ 캐쉬키 관리 및 정규화

ㅤ→ URL Rewrite 및 Redirect

ㅤ→ HTTP Header 조작

ㅤ→ 접근 권한 관리

## Comments



### Comment 5095

- Author: xguru
- Created: 2021-05-06T10:37:51+09:00
- Points: 1

CloudFlare 의 Workers 와 딱 경쟁하는 구도 같네요.

- https://workers.cloudflare.com/

### Comment 5098

- Author: superwoou
- Created: 2021-05-06T11:36:33+09:00
- Points: 1
- Parent comment: 5095
- Depth: 1

workers는 lambda@edge 랑 경쟁 아닐까요? cf functions는 lambda@edge 보다 한층 더 가벼운(제약이 많은) 것 같더라구요

### Comment 5099

- Author: xguru
- Created: 2021-05-06T12:09:55+09:00
- Points: 2
- Parent comment: 5098
- Depth: 2

근데 Workers 는 정작 사용해보면 제약이 넘 많더라구요.

기능상 보면 Lambda@Edge >> CF Workers > CF Functions 정도인 거 같기는 합니다.

### Comment 5096

- Author: heycalmdown
- Created: 2021-05-06T10:44:16+09:00
- Points: 1
- Parent comment: 5095
- Depth: 1

workers보다는 제약조건이 더 많은 것 같아요. 유연한 api gateway 스크립트 정도?
