SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
김현수
솔루션즈 아키텍트 / Amazon Web Services
서버리스 웹 애플리케이션
구축 방법
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
본 강연에서는
• 서버리스 서비스가 가진 이점을 이해
• 직접 서버리스 서비스로 애플리케이션을 구축하는 방법
• 쉽게 서버리스 서비스 앱을 구축하는 방법
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
목차
• 서버리스 등장 배경 및 소개
• 서버리스 웹 애플리케이션 개발
• 서버리스 웹 애플리케이션 개발 – 데모 시연
• 서버리스 애플리케이션 리포지토리
• 요약 정리
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 등장 배경 및 소개
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
어느 개발자의 일상
웹 애플리케이션을 적은 예산으로 빠르게 개발해 주세요.
이후에는 확장 가능하고 관리와 운영은 쉬우면 좋겠어요.
혼자 가능 하시겠어요? 문제 없습니다!
서버리스로 개발하면 됩니다
매니저 개발자
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버에 대한 고민 없이
애플리케이션을 구축 및 작동
서버리스란?
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
컴퓨팅의 진화 과정
데이터센터에서의
물리 서버
데이터센터에서의
가상 서버
클라우드에서의
가상 서버
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
컴퓨팅의 진화 과정
데이터센터에서의
물리 서버
데이터센터에서의
가상 서버
클라우드에서의
가상 서버• 활용률 증가
• 프로비저닝 속도 증가
• 높아진 가동 시간
• 재해 복구
• 하드웨어 독립성
• 자본 비용 à 운용 비용
• 높은 확장성
• 탄력적인 리소스
• 빠른 속도와 민첩성
• 유지 보수 비용 감소
• 고가용성과 내결함성
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버가 가진 한계점
데이터센터에서의
가상 서버
클라우드에서의
가상 서버
여전히..
• 가상 서버 관리
• 용량 및 활용률 관리
• 워크로드 사이징
• 고가용성과 내결함성 관리
• 간헐적인 작업 시 비쌈
• 자본 비용 à 운용 비용
• 높은 확장성
• 탄력적인 리소스
• 빠른 속도와 민첩성
• 유지 보수 비용 감소
• 고가용성과 내결함성
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스의 이점
서버 관리 불필요 유연한 확장성
유휴 용량 없음
$
고가용성
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 서비스 포트폴리오
Amazon API Gateway
API Proxy
Amazon SNS
Amazon SQS
메시징
AWS Lambda
컴퓨팅
Amazon S3
스토리지
모니터링과 디버깅
AWS X-Ray
오케스트레이션
AWS Step Functions
Amazon Kinesis
분석
Amazon Athena
Amazon DynamoDB
데이터베이스
Amazon Aurora
Serverless (coming soon)
인공지능 서비스
Amazon Polly
Amazon Rekognition
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 서비스 포트폴리오
Amazon API Gateway
API Proxy
Amazon SNS
메시징
AWS Lambda
컴퓨팅
Amazon S3
스토리지
모니터링과 디버깅오케스트레이션
분석
Amazon DynamoDB
데이터베이스
인공지능 서비스
Amazon Polly
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Lambda를 사용하는 고객들
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 웹 애플리케이션 개발
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 웹 애플리케이션 소개 웹 페이지 구축1
텍스트를 음성으로 요청2
변환된 음성을 재생3
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Amazon S3
Client
서버리스 웹 애플리케이션 아키텍처 (1/4)
S3를 이용하여 정적 웹 호스팅을
제공한다.
S3로 정적 웹 호스팅
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Amazon
DynamoDB
(News)
Amazon SNS
(NewNews)
Client
Amazon API Gateway
(POST)
AWS Lambda
(PostNews)
서버리스 웹 애플리케이션 아키텍처 (2/4)
텍스트를 DB에 등록하고, 비동기
처리를 위해 SNS에 등록한다.
텍스트 등록 요청
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Amazon
DynamoDB
(News)
Amazon PollyAmazon SNS
(NewNews)
MP3 File
Amazon S3
AWS Lambda
(ConvertAudio)
서버리스 웹 애플리케이션 아키텍처 (3/4)
등록된 텍스트를 Amazon Polly로
MP3를 생성하여 저장한다.
텍스트를 음성으로 변환
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Amazon
DynamoDB
(News)
AWS Lambda
(GetNews)
Amazon API Gateway
(GET)
서버리스 웹 애플리케이션 아키텍처 (4/4)
Polly로 변환한 음성 MP3를
포함한 컨텐츠 정보를 수집
컨텐츠 수집
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 웹 애플리케이션 개발
데모 시연
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
구축 과정 – DynamoDB, S3, SNS 리소스 생성 (1/4)
Amazon
DynamoDB
(News)
AWS Lambda
(GetNews)
Amazon S3
Amazon Polly
Amazon API Gateway
(GET)
Amazon SNS
(NewNews)
MP3 FileClient
Amazon S3
Amazon API Gateway
(POST)
AWS Lambda
(PostNews)
AWS Lambda
(ConvertAudio)
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
구축 과정 – IAM 및 Lambda 생성 및 테스트 (2/4)
Amazon
DynamoDB
(News)
AWS Lambda
(GetNews)
Amazon S3
Amazon Polly
Amazon API Gateway
(GET)
Amazon SNS
(NewNews)
MP3 FileClient
Amazon S3
Amazon API Gateway
(POST)
AWS Lambda
(PostNews)
AWS Lambda
(ConvertAudio)
정책
역할
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
구축 과정 – API Gateway 설정 및 테스트 (3/4)
Amazon
DynamoDB
(News)
AWS Lambda
(GetNews)
Amazon S3
Amazon Polly
Amazon API Gateway
(GET)
Amazon SNS
(NewNews)
MP3 FileClient
Amazon S3
Amazon API Gateway
(POST)
AWS Lambda
(PostNews)
AWS Lambda
(ConvertAudio)
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
구축 과정 – 정적 웹 호스팅 설정 및 시연 (4/4)
Amazon
DynamoDB
(News)
AWS Lambda
(GetNews)
Amazon S3
Amazon Polly
Amazon API Gateway
(GET)
Amazon SNS
(NewNews)
MP3 FileClient
Amazon S3
Amazon API Gateway
(POST)
AWS Lambda
(PostNews)
AWS Lambda
(ConvertAudio)
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Amazon
DynamoDB
AWS
Lambda
Amazon
S3
Amazon
Polly
Amazon
API Gateway
Amazon SNS
MP3 FileClient
Amazon
S3
Amazon
API Gateway
AWS
Lambda
AWS
Lambda
AWS
Lambda
Amazon
API GatewayAmazon
Echo
Alexa Skill
Chosun Flash Briefing
고객 사례: 조선일보
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 애플리케이션 리포지토리
서버리스 애플리케이션을 쉽게 검색, 구축, 배포 및 게시
NEW!
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 애플리케이션 리포지토리와의 만남
& 개발자, 회사, 파트너도 제공
Serverless Application Model코드만
템플릿 제공
권한 설정 및 구성의 어려움
업데이트 문제
Github 리포지토리 링크 지원소스 코드 리포지토리 링크 없음
앱을 쉽게 설치
버저닝 및 최신 업데이트 제공1
2
AWS Lambda
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 “설문” 웹 애플리케이션 배포
선택1
검색2
선택3
스택 이름4
배포5
AWS Lambda
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 “설문” 웹 애플리케이션 배포 확인
URL 선택2스택 선택1
AWS Lambda AWS
CloudFormation
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 “설문” 웹 애플리케이션 수정
설문 파일2
파일.함수1 AWS Lambda
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 “설문” 웹 애플리케이션 수정 및 확인
수정 확인2
설문 내용 변경1
DynamoDB 확인3
Amazon
DynamoDB
AWS Lambda
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
“severless-survey” SAM 템플릿 구조
{
"AWSTemplateFormatVersion":"2010-09-09",
"Outputs": {
"SurveyURL":{
"Description":"Link to your Serverless Survey",
"Value":{"Fn::Sub":"https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/newsurvey"}
}
},
"Resources":{
"SurveyRole":{
"Type":"AWS::IAM::Role",
"Properties":{
"ManagedPolicyArns":["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole”],
"AssumeRolePolicyDocument":{
"Version":"2012-10-17",
"Statement":[{
"Action":["sts:AssumeRole"],
"Effect":"Allow",
"Principal":{
"Service":["lambda.amazonaws.com"]
}
}]
}
}
},
"ServerlessRestApiProdStage":{
"Type":"AWS::ApiGateway::Stage",
…
최종 배포 Survey URL1
리소스 정의2
Role 정의3
서비스 정의4
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서버리스 애플리케이션 리포지토리에 게시
…
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
요약 정리
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
요약 정리
전통적인 방법
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
요약 정리
서버리스 방법
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
요약 정리
직접 서버리스 웹 애플리케이션 구축
서버리스 애플리케이션 리포지토리에서 찾아서 배포
SAM을 이용한 나만의 리포지토리 생성
전통적인 방법 서버리스 방법
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
관련 참고 자료
• Amazon Web Service 서버리스 관련 블로그
• https://aws.amazon.com/ko/blogs/korea/category/serverless/
• https://aws.amazon.com/ko/blogs/aws/category/compute/aws-lambda/
• 첫 번째 서버리스 웹 애플리케이션 구축 자습서
• https://aws.amazon.com/ko/serverless/build-a-web-app/
• Amazon Polly를 통한 음성 읽기 서버리스 앱 개발하기
• https://aws.amazon.com/ko/blogs/korea/build-your-own-text-to-speech-applications-with-amazon-polly/
• 서버리스 애플리케이션 리포지토리에 게시
• https://aws.amazon.com/ko/serverless/serverlessrepo/publishing/
© 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
AWS Summit 모바일 앱과 QR코드를
통해 강연 평가 및 설문 조사에 참여해
주시기 바랍니다.
내년 Summit을 만들 여러분의 소중한
의견 부탁 드립니다.
#AWSSummit 해시태그로 소셜 미디어에 여러분의 행사
소감을 올려주세요.
발표 자료 및 녹화 동영상은 AWS Korea 공식 소셜 채널로
공유될 예정입니다.
여러분의 피드백을 기다립니다!
감사합니다

More Related Content

PDF
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
PDF
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
PDF
AWS 기반 클라우드 아키텍처 모범사례 - 삼성전자 개발자 포털/개발자 워크스페이스 - 정영준 솔루션즈 아키텍트, AWS / 유현성 수석,...
PDF
판교 개발자 데이 – Aws가 제안하는 서버리스 아키텍처 – 김필중
PDF
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...
PDF
AWS Black Belt Online Seminar 2017 Amazon ElastiCache
PDF
AWS Summit Seoul 2023 |투자를 모두에게, 토스증권의 MTS 구축 사례
PDF
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반 클라우드 아키텍처 모범사례 - 삼성전자 개발자 포털/개발자 워크스페이스 - 정영준 솔루션즈 아키텍트, AWS / 유현성 수석,...
판교 개발자 데이 – Aws가 제안하는 서버리스 아키텍처 – 김필중
20180704(20190520 Renewed) AWS Black Belt Online Seminar Amazon Elastic File ...
AWS Black Belt Online Seminar 2017 Amazon ElastiCache
AWS Summit Seoul 2023 |투자를 모두에게, 토스증권의 MTS 구축 사례
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017

What's hot (20)

PDF
AWS 클라우드 비용 최적화를 위한 TIP - 임성은 AWS 매니저
PDF
민첩하고 비용효율적인 Data Lake 구축 - 문종민 솔루션즈 아키텍트, AWS
PDF
AWS DMS를 통한 오라클 DB 마이그레이션 방법 - AWS Summit Seoul 2017
PDF
Amazon VPC와 ELB/Direct Connect/VPN 알아보기 - 김세준, AWS 솔루션즈 아키텍트
PPTX
9월 웨비나 - AWS에서의 네트워크 보안 (이경수 솔루션즈 아키텍트)
PDF
AWS CLOUD 2017 - AWS Shield를 통한 DDoS 대비 복원성 강한 AWS 보안 아키텍처 구성 (임기성 솔루션즈 아키텍트)
PDF
Amazon EKS로 간단한 웹 애플리케이션 구축하기 - 김주영 (AWS) :: AWS Community Day Online 2021
PDF
데이터 분석가를 위한 신규 분석 서비스 - 김기영, AWS 분석 솔루션즈 아키텍트 / 변규현, 당근마켓 소프트웨어 엔지니어 :: AWS r...
PDF
Amazon RDS Proxy 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
PDF
Amazon Personalize 개인화 추천 모델 만들기::김태수, 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나
PDF
비용 관점에서 AWS 클라우드 아키텍처 디자인하기::류한진::AWS Summit Seoul 2018
PDF
[AWS Builders] AWS 네트워크 서비스 소개 및 사용 방법 - 김기현, AWS 솔루션즈 아키텍트
PDF
AWS Lambda 내부 동작 방식 및 활용 방법 자세히 살펴 보기 - 김일호 솔루션즈 아키텍트 매니저, AWS :: AWS Summit ...
PDF
IAM 정책을 잘 알아야 AWS 보안도 쉬워진다. 이것은 꼭 알고 가자! - 신은수 솔루션즈 아키텍트, AWS :: AWS Summit S...
PDF
금융 X 하이브리드 클라우드 플랫폼 - 한화생명 디지털 트랜스포메이션 전략 - 김나영 AWS 금융부문 사업개발 담당 / 박인규 AWS 금융...
PDF
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
PDF
진화하는 CloudFront 의 이해와 글로벌 서비스 활용 - 안수일 시니어 솔루션즈 아키텍트, GS NEOTEK :: AWS Summit...
PDF
[AWS Builders] AWS상의 보안 위협 탐지 및 대응
PDF
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
PDF
[2017 AWS Startup Day] AWS 비용 최대 90% 절감하기: 스팟 인스턴스 Deep-Dive
AWS 클라우드 비용 최적화를 위한 TIP - 임성은 AWS 매니저
민첩하고 비용효율적인 Data Lake 구축 - 문종민 솔루션즈 아키텍트, AWS
AWS DMS를 통한 오라클 DB 마이그레이션 방법 - AWS Summit Seoul 2017
Amazon VPC와 ELB/Direct Connect/VPN 알아보기 - 김세준, AWS 솔루션즈 아키텍트
9월 웨비나 - AWS에서의 네트워크 보안 (이경수 솔루션즈 아키텍트)
AWS CLOUD 2017 - AWS Shield를 통한 DDoS 대비 복원성 강한 AWS 보안 아키텍처 구성 (임기성 솔루션즈 아키텍트)
Amazon EKS로 간단한 웹 애플리케이션 구축하기 - 김주영 (AWS) :: AWS Community Day Online 2021
데이터 분석가를 위한 신규 분석 서비스 - 김기영, AWS 분석 솔루션즈 아키텍트 / 변규현, 당근마켓 소프트웨어 엔지니어 :: AWS r...
Amazon RDS Proxy 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
Amazon Personalize 개인화 추천 모델 만들기::김태수, 솔루션즈 아키텍트, AWS::AWS AIML 스페셜 웨비나
비용 관점에서 AWS 클라우드 아키텍처 디자인하기::류한진::AWS Summit Seoul 2018
[AWS Builders] AWS 네트워크 서비스 소개 및 사용 방법 - 김기현, AWS 솔루션즈 아키텍트
AWS Lambda 내부 동작 방식 및 활용 방법 자세히 살펴 보기 - 김일호 솔루션즈 아키텍트 매니저, AWS :: AWS Summit ...
IAM 정책을 잘 알아야 AWS 보안도 쉬워진다. 이것은 꼭 알고 가자! - 신은수 솔루션즈 아키텍트, AWS :: AWS Summit S...
금융 X 하이브리드 클라우드 플랫폼 - 한화생명 디지털 트랜스포메이션 전략 - 김나영 AWS 금융부문 사업개발 담당 / 박인규 AWS 금융...
AWS Control Tower를 통한 클라우드 보안 및 거버넌스 설계 - 김학민 :: AWS 클라우드 마이그레이션 온라인
진화하는 CloudFront 의 이해와 글로벌 서비스 활용 - 안수일 시니어 솔루션즈 아키텍트, GS NEOTEK :: AWS Summit...
[AWS Builders] AWS상의 보안 위협 탐지 및 대응
KB국민은행은 시작했다 -  쉽고 빠른 클라우드 거버넌스 적용 전략 - 강병억 AWS 솔루션즈 아키텍트 / 장강홍 클라우드플랫폼단 차장, ...
[2017 AWS Startup Day] AWS 비용 최대 90% 절감하기: 스팟 인스턴스 Deep-Dive
Ad

Similar to 서버리스 웹 애플리케이션 구축 방법론::김현수:: AWS Summit Seoul 2018 (20)

PDF
프론트엔드 개발자가 혼자 AWS 기반 웹애플리케이션 만들기::박찬민::AWS Summit Seoul 2018
PDF
[AWS Builders] AWS 서버리스 서비스를 활용한 웹 애플리케이션 구축 및 배포 방법 - 정창호, AWS 솔루션즈 아키텍트
PPTX
Serverless Architecture - 김현민
PDF
서버리스 앱 배포 자동화 (김필중, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
PDF
AWS 서버리스 신규 서비스 총정리 - 트랙2, Community Day 2018 re:Invent 특집
PDF
[애플리케이션 현대화 및 개발] 클라우드를 통한 현대적 애플리케이션 디자인 및 구축 패턴 - 윤석찬, AWS 수석 테크 에반젤리스트
PDF
서버리스 아키텍처 패턴 및 로그 처리를 위한 파이프라인 구축기 - 황윤상 솔루션즈 아키텍트, AWS / Matthew Han, SendBi...
PPTX
Aws serverless services
PDF
AWS CLOUD 2018- 보다 강력한 Serverless, AWS Lambda 기능 확장(안효빈 솔루션즈 아키텍트)
PDF
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017
PPTX
AWS Amplify를 통한 서버리스 애플리케이션 개발 - 백재현:: AWS 현대적 애플리케이션 개발
PDF
[AWS Builders 온라인 시리즈] 쉽게 확장 가능한 서버리스 웹 어플리케이션 만들기 - 황윤상, AWS 솔루션즈 아키텍트
PPTX
Aws lambda 와 함께 서버리스 서비스 만들기
PDF
[2017 AWS Startup Day] 서버리스 마이크로서비스로 일당백 개발조직 만들기
PDF
찾아가는 AWS 세미나(구로,가산,판교) - AWS에서 작은 서비스 구현하기 (김필중 솔루션즈 아키텍트)
PDF
Serverless websocket 톺아보기
PDF
[애플리케이션 현대화 및 개발] 파트너 세션 | 모던 인프라스트럭쳐 아키텍쳐 - 서호석 이사, 영우디지탈
PDF
고급 서버리스 앱 개발 자세히 살펴보기::김필중:: AWS Summit Seoul 2018
PDF
AWS re:Invent 특집(1) – 파이선(Python) 개발자를 위한 AWS 활용 방법 (윤석찬)
PPTX
Vingle tech talk #1
프론트엔드 개발자가 혼자 AWS 기반 웹애플리케이션 만들기::박찬민::AWS Summit Seoul 2018
[AWS Builders] AWS 서버리스 서비스를 활용한 웹 애플리케이션 구축 및 배포 방법 - 정창호, AWS 솔루션즈 아키텍트
Serverless Architecture - 김현민
서버리스 앱 배포 자동화 (김필중, AWS 솔루션즈 아키텍트) :: AWS DevDay2018
AWS 서버리스 신규 서비스 총정리 - 트랙2, Community Day 2018 re:Invent 특집
[애플리케이션 현대화 및 개발] 클라우드를 통한 현대적 애플리케이션 디자인 및 구축 패턴 - 윤석찬, AWS 수석 테크 에반젤리스트
서버리스 아키텍처 패턴 및 로그 처리를 위한 파이프라인 구축기 - 황윤상 솔루션즈 아키텍트, AWS / Matthew Han, SendBi...
Aws serverless services
AWS CLOUD 2018- 보다 강력한 Serverless, AWS Lambda 기능 확장(안효빈 솔루션즈 아키텍트)
서버리스 애플리케이션 구축 패턴 및 구축 사례 - AWS Summit Seoul 2017
AWS Amplify를 통한 서버리스 애플리케이션 개발 - 백재현:: AWS 현대적 애플리케이션 개발
[AWS Builders 온라인 시리즈] 쉽게 확장 가능한 서버리스 웹 어플리케이션 만들기 - 황윤상, AWS 솔루션즈 아키텍트
Aws lambda 와 함께 서버리스 서비스 만들기
[2017 AWS Startup Day] 서버리스 마이크로서비스로 일당백 개발조직 만들기
찾아가는 AWS 세미나(구로,가산,판교) - AWS에서 작은 서비스 구현하기 (김필중 솔루션즈 아키텍트)
Serverless websocket 톺아보기
[애플리케이션 현대화 및 개발] 파트너 세션 | 모던 인프라스트럭쳐 아키텍쳐 - 서호석 이사, 영우디지탈
고급 서버리스 앱 개발 자세히 살펴보기::김필중:: AWS Summit Seoul 2018
AWS re:Invent 특집(1) – 파이선(Python) 개발자를 위한 AWS 활용 방법 (윤석찬)
Vingle tech talk #1
Ad

More from Amazon Web Services Korea (20)

PDF
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
PDF
[D3T1S06] Neptune Analytics with Vector Similarity Search
PDF
[D3T1S03] Amazon DynamoDB design puzzlers
PDF
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
PDF
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
PDF
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
PDF
[D3T1S02] Aurora Limitless Database Introduction
PDF
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
PDF
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 2
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 1
PDF
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
PDF
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
PDF
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
PDF
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
PDF
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
PDF
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
PDF
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
PDF
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
PDF
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
[D3T1S06] Neptune Analytics with Vector Similarity Search
[D3T1S03] Amazon DynamoDB design puzzlers
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
[D3T1S02] Aurora Limitless Database Introduction
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
AWS Modern Infra with Storage Roadshow 2023 - Day 2
AWS Modern Infra with Storage Roadshow 2023 - Day 1
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...

서버리스 웹 애플리케이션 구축 방법론::김현수:: AWS Summit Seoul 2018

  • 1. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 김현수 솔루션즈 아키텍트 / Amazon Web Services 서버리스 웹 애플리케이션 구축 방법
  • 2. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 본 강연에서는 • 서버리스 서비스가 가진 이점을 이해 • 직접 서버리스 서비스로 애플리케이션을 구축하는 방법 • 쉽게 서버리스 서비스 앱을 구축하는 방법
  • 3. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 목차 • 서버리스 등장 배경 및 소개 • 서버리스 웹 애플리케이션 개발 • 서버리스 웹 애플리케이션 개발 – 데모 시연 • 서버리스 애플리케이션 리포지토리 • 요약 정리
  • 4. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 등장 배경 및 소개
  • 5. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 어느 개발자의 일상 웹 애플리케이션을 적은 예산으로 빠르게 개발해 주세요. 이후에는 확장 가능하고 관리와 운영은 쉬우면 좋겠어요. 혼자 가능 하시겠어요? 문제 없습니다! 서버리스로 개발하면 됩니다 매니저 개발자
  • 6. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버에 대한 고민 없이 애플리케이션을 구축 및 작동 서버리스란?
  • 7. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 컴퓨팅의 진화 과정 데이터센터에서의 물리 서버 데이터센터에서의 가상 서버 클라우드에서의 가상 서버
  • 8. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 컴퓨팅의 진화 과정 데이터센터에서의 물리 서버 데이터센터에서의 가상 서버 클라우드에서의 가상 서버• 활용률 증가 • 프로비저닝 속도 증가 • 높아진 가동 시간 • 재해 복구 • 하드웨어 독립성 • 자본 비용 à 운용 비용 • 높은 확장성 • 탄력적인 리소스 • 빠른 속도와 민첩성 • 유지 보수 비용 감소 • 고가용성과 내결함성
  • 9. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버가 가진 한계점 데이터센터에서의 가상 서버 클라우드에서의 가상 서버 여전히.. • 가상 서버 관리 • 용량 및 활용률 관리 • 워크로드 사이징 • 고가용성과 내결함성 관리 • 간헐적인 작업 시 비쌈 • 자본 비용 à 운용 비용 • 높은 확장성 • 탄력적인 리소스 • 빠른 속도와 민첩성 • 유지 보수 비용 감소 • 고가용성과 내결함성
  • 10. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스의 이점 서버 관리 불필요 유연한 확장성 유휴 용량 없음 $ 고가용성
  • 11. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 서비스 포트폴리오 Amazon API Gateway API Proxy Amazon SNS Amazon SQS 메시징 AWS Lambda 컴퓨팅 Amazon S3 스토리지 모니터링과 디버깅 AWS X-Ray 오케스트레이션 AWS Step Functions Amazon Kinesis 분석 Amazon Athena Amazon DynamoDB 데이터베이스 Amazon Aurora Serverless (coming soon) 인공지능 서비스 Amazon Polly Amazon Rekognition
  • 12. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 서비스 포트폴리오 Amazon API Gateway API Proxy Amazon SNS 메시징 AWS Lambda 컴퓨팅 Amazon S3 스토리지 모니터링과 디버깅오케스트레이션 분석 Amazon DynamoDB 데이터베이스 인공지능 서비스 Amazon Polly
  • 13. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. Lambda를 사용하는 고객들
  • 14. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 웹 애플리케이션 개발
  • 15. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 웹 애플리케이션 소개 웹 페이지 구축1 텍스트를 음성으로 요청2 변환된 음성을 재생3
  • 16. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. Amazon S3 Client 서버리스 웹 애플리케이션 아키텍처 (1/4) S3를 이용하여 정적 웹 호스팅을 제공한다. S3로 정적 웹 호스팅
  • 17. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. Amazon DynamoDB (News) Amazon SNS (NewNews) Client Amazon API Gateway (POST) AWS Lambda (PostNews) 서버리스 웹 애플리케이션 아키텍처 (2/4) 텍스트를 DB에 등록하고, 비동기 처리를 위해 SNS에 등록한다. 텍스트 등록 요청
  • 18. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. Amazon DynamoDB (News) Amazon PollyAmazon SNS (NewNews) MP3 File Amazon S3 AWS Lambda (ConvertAudio) 서버리스 웹 애플리케이션 아키텍처 (3/4) 등록된 텍스트를 Amazon Polly로 MP3를 생성하여 저장한다. 텍스트를 음성으로 변환
  • 19. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. Amazon DynamoDB (News) AWS Lambda (GetNews) Amazon API Gateway (GET) 서버리스 웹 애플리케이션 아키텍처 (4/4) Polly로 변환한 음성 MP3를 포함한 컨텐츠 정보를 수집 컨텐츠 수집
  • 20. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 웹 애플리케이션 개발 데모 시연
  • 21. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 구축 과정 – DynamoDB, S3, SNS 리소스 생성 (1/4) Amazon DynamoDB (News) AWS Lambda (GetNews) Amazon S3 Amazon Polly Amazon API Gateway (GET) Amazon SNS (NewNews) MP3 FileClient Amazon S3 Amazon API Gateway (POST) AWS Lambda (PostNews) AWS Lambda (ConvertAudio)
  • 22. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 구축 과정 – IAM 및 Lambda 생성 및 테스트 (2/4) Amazon DynamoDB (News) AWS Lambda (GetNews) Amazon S3 Amazon Polly Amazon API Gateway (GET) Amazon SNS (NewNews) MP3 FileClient Amazon S3 Amazon API Gateway (POST) AWS Lambda (PostNews) AWS Lambda (ConvertAudio) 정책 역할
  • 23. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 구축 과정 – API Gateway 설정 및 테스트 (3/4) Amazon DynamoDB (News) AWS Lambda (GetNews) Amazon S3 Amazon Polly Amazon API Gateway (GET) Amazon SNS (NewNews) MP3 FileClient Amazon S3 Amazon API Gateway (POST) AWS Lambda (PostNews) AWS Lambda (ConvertAudio)
  • 24. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 구축 과정 – 정적 웹 호스팅 설정 및 시연 (4/4) Amazon DynamoDB (News) AWS Lambda (GetNews) Amazon S3 Amazon Polly Amazon API Gateway (GET) Amazon SNS (NewNews) MP3 FileClient Amazon S3 Amazon API Gateway (POST) AWS Lambda (PostNews) AWS Lambda (ConvertAudio)
  • 25. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. Amazon DynamoDB AWS Lambda Amazon S3 Amazon Polly Amazon API Gateway Amazon SNS MP3 FileClient Amazon S3 Amazon API Gateway AWS Lambda AWS Lambda AWS Lambda Amazon API GatewayAmazon Echo Alexa Skill Chosun Flash Briefing 고객 사례: 조선일보
  • 26. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 애플리케이션 리포지토리 서버리스 애플리케이션을 쉽게 검색, 구축, 배포 및 게시 NEW!
  • 27. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 애플리케이션 리포지토리와의 만남 & 개발자, 회사, 파트너도 제공 Serverless Application Model코드만 템플릿 제공 권한 설정 및 구성의 어려움 업데이트 문제 Github 리포지토리 링크 지원소스 코드 리포지토리 링크 없음 앱을 쉽게 설치 버저닝 및 최신 업데이트 제공1 2 AWS Lambda
  • 28. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 “설문” 웹 애플리케이션 배포 선택1 검색2 선택3 스택 이름4 배포5 AWS Lambda
  • 29. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 “설문” 웹 애플리케이션 배포 확인 URL 선택2스택 선택1 AWS Lambda AWS CloudFormation
  • 30. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 “설문” 웹 애플리케이션 수정 설문 파일2 파일.함수1 AWS Lambda
  • 31. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 “설문” 웹 애플리케이션 수정 및 확인 수정 확인2 설문 내용 변경1 DynamoDB 확인3 Amazon DynamoDB AWS Lambda
  • 32. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. “severless-survey” SAM 템플릿 구조 { "AWSTemplateFormatVersion":"2010-09-09", "Outputs": { "SurveyURL":{ "Description":"Link to your Serverless Survey", "Value":{"Fn::Sub":"https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/newsurvey"} } }, "Resources":{ "SurveyRole":{ "Type":"AWS::IAM::Role", "Properties":{ "ManagedPolicyArns":["arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole”], "AssumeRolePolicyDocument":{ "Version":"2012-10-17", "Statement":[{ "Action":["sts:AssumeRole"], "Effect":"Allow", "Principal":{ "Service":["lambda.amazonaws.com"] } }] } } }, "ServerlessRestApiProdStage":{ "Type":"AWS::ApiGateway::Stage", … 최종 배포 Survey URL1 리소스 정의2 Role 정의3 서비스 정의4
  • 33. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 서버리스 애플리케이션 리포지토리에 게시 …
  • 34. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 요약 정리
  • 35. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 요약 정리 전통적인 방법
  • 36. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 요약 정리 서버리스 방법
  • 37. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 요약 정리 직접 서버리스 웹 애플리케이션 구축 서버리스 애플리케이션 리포지토리에서 찾아서 배포 SAM을 이용한 나만의 리포지토리 생성 전통적인 방법 서버리스 방법
  • 38. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. 관련 참고 자료 • Amazon Web Service 서버리스 관련 블로그 • https://aws.amazon.com/ko/blogs/korea/category/serverless/ • https://aws.amazon.com/ko/blogs/aws/category/compute/aws-lambda/ • 첫 번째 서버리스 웹 애플리케이션 구축 자습서 • https://aws.amazon.com/ko/serverless/build-a-web-app/ • Amazon Polly를 통한 음성 읽기 서버리스 앱 개발하기 • https://aws.amazon.com/ko/blogs/korea/build-your-own-text-to-speech-applications-with-amazon-polly/ • 서버리스 애플리케이션 리포지토리에 게시 • https://aws.amazon.com/ko/serverless/serverlessrepo/publishing/
  • 39. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved. AWS Summit 모바일 앱과 QR코드를 통해 강연 평가 및 설문 조사에 참여해 주시기 바랍니다. 내년 Summit을 만들 여러분의 소중한 의견 부탁 드립니다. #AWSSummit 해시태그로 소셜 미디어에 여러분의 행사 소감을 올려주세요. 발표 자료 및 녹화 동영상은 AWS Korea 공식 소셜 채널로 공유될 예정입니다. 여러분의 피드백을 기다립니다!