Professional Documents
Culture Documents
AWS Lambda와 Amazon API Gateway로 만드는 Serverless Architecture 구성하기
AWS Lambda와 Amazon API Gateway로 만드는 Serverless Architecture 구성하기
윤석찬
AWS Korea 테크에반젤리스트
@channyun
클라우드 컴퓨팅 기술의 변화
10% 12%
App 1 App 2
6 5
15% 20% 4 2 3 1
App 3 App 4
Amazon EC2
Container Service
7% 9%
App 5 App 6
Dr. Werner Vogels, Amazon.com CTO
re:Invent 2015 Keynote
Amazon Simple Storage Service(S3)의 장점
EMAIL MESSAGING
ENCODING AMAZON
AMAZON S3 SEARCH AWS LAMBDA
DYNAMODB
AWS Lambda란?
서버 필요 없이 높은 확장성 및 함수 실행 시
코드만 배포 빠른 서비스 연동 100ms 단위 과금
AWS Lambda : 동작 원리
유연한 호출 경로 효과적인 권한 통제
• Event 기반 호출 옵션 (여러 • AWS IAM (Identity and
AWS 서비스들과 통합) Access Management) Role을
• REST API 호출 가능 (Amazon 사용한 실행 권한 설정
API Gateway와 연동) • AWS 이벤트 소스에 대한
자원 정책
AWS Lambda를 통한 서버없는 컴퓨팅 서비스
① 큰 이미지 업로드 ④ 압축 및 크기 변경
⑤ 저장
③ AWS Lambda
② Amazon S3 파일 업로드 코드 실행
Demo: AWS Lambda로 썸네일 만들기
마이크로서비스(Microservices)로의 진화
• 내부 서비스를 작게 분리하여
느슨하게 연결
• 작은 서비스간 인터랙션 결합
제거 (decoupling) 후, API로
통신
• 빠르고 민첩한 개발 및 클라우드
기반 확장 가능
4. API Gateway를 통한 손쉬운 REST 서비스 만들기
API Gateway
cache
AWS Lambda
Mobile functions
apps
API
Gateway
Internet Any other publicly
Websites Endpoints on accessible
Amazon EC2/AWS endpoint
Elastic Beanstalk
Services
Amazon
CloudWatch
monitoring
Amazon API Gateway 소개
버전 관리 및 출시 단계별 관리 가능
개발자를 위한 API 키 발급 및 관리 용이
AWS Lambda 활용
API Gateway 활용 이점
Swagger 표준 형식 지원
요청/응답 데이터 변형 가능
Demo: Amazon API Gateway로 API 피드 제공
AWS 기반 Serverless 빌딩 블럭
+α
Amazon API AWS Lambda AWS Services
Gateway
마이크로서비스를 서버 없는 확장성
위한 REST API 처리 높은 컴퓨팅 서비스
Demo: API Gateway와 Lambda 기반
간단한 모바일 백엔드
Serverless Frameworks의 출현
https://github.com/serverless/serverless https://github.com/claudiajs/claudia
결론
강연에 대한 설문조사
발표자료 / 녹화영상
http://bit.ly/awskr-webinar