Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

AWS SAM을 이용한 모놀리식 서버리스 어플리케이션 운영하기

1,105 views

Published on

AWS SAM과 Aws Serverless Express를 이용해서 기존 node js express로 작성된 모놀리식 어플리케이션을 서버리스로 마이그레이션 후 운영하는 방법을 공유

Published in: Technology
  • If you want to download or read this book, copy link or url below in the New tab ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

AWS SAM을 이용한 모놀리식 서버리스 어플리케이션 운영하기

  1. 1. AWS SAM을 이용한 모놀리식 서버리스 어플리케이션 운영하기 현창훈 Modu Co.
  2. 2. Serverless No Ops 너무 좋아보인다.
  3. 3. Api Gateway + Lambda
  4. 4. 확장성 고가용성 저렴한 비용 인프라 관리, 운영 부담이 적음 계속 서버가 실행 돼야 하면 부적합 Cold Start FaaS 제공사에 의존적 제한사항 ● Lambda : https://docs.aws.amazon.com/lambda/latest/dg/limits.html ● API Gateway : https://docs.aws.amazon.com/ko_kr/apigateway/latest/developerguide/limits.html
  5. 5. Serverless == MSA?
  6. 6. 하면 좋은것은 인정. 저도 하고싶어요 ㅠㅠ 그러나 부족한 인력 혼자 백엔드 개발 / 운영 하는 중… 혼자서 MSA로 분리해서 운영할 자신이 없음. 부족한 지식 어떻게 서비스를 분리해서 설계할지 감이 잘 안잡힘.
  7. 7. 그래도 서버리스는 하고싶다! 운영에 대한 부담이라도 줄이자.
  8. 8. Express로 만든 서버를 AWS Lambda에서 실행시킨다. 기존 Express 프로젝트를 그대로 사용 가능 로컬 실행과 다른점 1. Amazon Linux ○ CodeBuild ○ Docker-Lambda 2. Node 8.10 ○ Babel 3. API Gateway를 거친다. ○ Integration test 4. Lambda & API Gateway의 제약사항들 Aws Serverless Express ASE Express Lambda function Amazon API Gateway
  9. 9. Cloudformation & SAM
  10. 10. CloudFormation AWS 리소스를 JSON, YAML로 프로비저닝 리소스 별 예제 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-general.html 프로비저닝된 다양한 프로젝트들 https://github.com/awslabs
  11. 11. SAM(Serverless Application Model) 오픈소스 CloudFormation의 서버리스 스택들을 간단하게 만들 수 있음. AWS::Serverless::Function : Lambda AWS::Serverless::Api: API Gateway AWS::Serverless::SimpleTable: DynamoDB AWS의 다른 리소스들도 SAM에서 프로비저닝 가능함. AWS Lambda Amazon DynamoDB Amazon API Gateway AWS CloudFormation
  12. 12. API Gateway
  13. 13. Lambda & Role
  14. 14. CloudFormation CloudWatch Alarm CloudWatch Dashboard
  15. 15. Amazon API Gateway AWS Lambda Lambda Amazon RDS Amazon S3 Amazon Route 53 기존 모놀리식 구조에서 EC2, ELB만 Lambda로 대체된 인프라 Amazon Athena
  16. 16. EC2를 개발서버로 사용해서 브라우저에서 코딩 플랫폼에 종속적인 패키지도 배포 가능 IDE에서 SAM Deploy 지원 Lambda와 API Gateway에 Local test, Remote test 지원 탭 끄려고 Command + W를 자꾸 누름 IDE에서 Git을 위한 기능이 없음
  17. 17. CloudFormation과 함께라면 쉽게 만들수 있어요 VPC 먼저 만들고
  18. 18. CloudFormation과 함께라면 쉽게 만들수 있어요 Cloud9 만들면 끝!
  19. 19. CI / CD AWS CodeDeploy AWS CodeBuild AWS CodePipeline GitHub Code Build Code Deploy Manual Approval SNS Code Build Code Deploy Reject Approve CloudFormation으로 프로비저닝
  20. 20. SPA & Static website hosting references: https://docs.aws.amazon.com/ko_kr/AmazonS3/latest/dev/hosting-websites-on-s3-examples.html https://johnlouros.com/blog/using-CloudFront-to-serve-an-SPA-from-S3 Web Amazon S3 Amazon CloudFront Amazon Route 53

×