Slide 1

Slide 1 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Keisuke Nishitani (@Keisuke69) Manager, Senior Solutions Architect Amazon Web Services Japan K.K.

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Not Event-driven APIコール 処理追加

Slide 6

Slide 6 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event-driven サブスクライブ

Slide 7

Slide 7 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 201501 201502 201503 201504 201505 201506 201507 201508 201509 201510 201511 201512 201601 201602 201603 201604 201605 201606 201607 201608 201609 201610 201611 201612 201701 201702 201703 201704 201705 201706 201707 201708 201709 201710 201711 201712 201801 201802 201803 201804 201805 201806 201807 201808 201809 201810 201811 201812 201901 201902 201903 201904 201905 201906 201907 201908 201909 Customer Loves Serverless

Slide 8

Slide 8 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 国内のお客様(抜粋)

Slide 9

Slide 9 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 10

Slide 10 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda release history Lambda Preview Announcement Lambda GA 1.5 GB RAM Amazon API Gateway Launch Amazon DynamoDB Stream Support 300s Execution Duration Python 2.7 Support Java Support Alexa Integration Function Versioning Scheduled CloudWatch Events Support Amazon SWF Support Amazon VPC Support API Gateway Proxy Environment Variables AWS SAM Lambda@Edge Announcement Node 4.2 Support AWS CodeCommit Support C# .Net Support AWS GreenGrass Lambda Support SAM Enhancements Python 3.6 1000 Concurrency Limit PCI Certification AWS SAM Local (now AWS CLI) SOC Certification Per Function Concurrency Controls Node.js 6.10 Tagging AWS X-Ray 3 GB RAM Support HIPAA Eligible Traffic Shifting/Weighted Aliases AWS Serverless Application Repository Announcement .Net Core v2.0 AWS CLI relaunch FedRAMP Certification AWS CLI—Lambda Local, Log tailing PowerShell Support 15-Minute Execution Duration Go Support Node.js v8 Amazon SQS Support .Net 2.1 Support AWS CLI Go Debugging Console AppView 99.95% SLA *As of Dec 2019, does not include region launches 2015 2016 2017 2018 2019 VPC Improvement CloudWatch Logs Insights integration Amazon Linux 2018.03 Node.js 10 Ruby Layers Custom runtimes ALB triggers Kinesis HTTP/2 stream consumers Python 3.7 Stream batch settings Create app in Console RDS Proxy Provisioned Concurrency Node.js 12, Java 11, and Python 3.8 Customize retry behavior Des:na:ons for Async Invoka:on

Slide 11

Slide 11 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. かつてのAnti-Pattern

Slide 12

Slide 12 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda と RDBMS Amazon RDS Amazon Aurora Lambda function

Slide 13

Slide 13 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda と RDBMS Amazon RDS Amazon Aurora Lambda function

Slide 14

Slide 14 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Photo on Visualhunt.com

Slide 15

Slide 15 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 16

Slide 16 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Amazon RDS Proxy with AWS Lambda Amazon RDS Amazon Aurora Lambda function

Slide 17

Slide 17 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Amazon RDS Proxy with AWS Lambda Amazon RDS Amazon Aurora Lambda function Amazon RDS Proxy

Slide 18

Slide 18 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. RDSのコネクションプールマネージャ 東京を含む5リージョンで利用可能 (Public Preview) Lambdaからも利⽤可能 Amazon RDS Proxy

Slide 19

Slide 19 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambdaのネットワーキング AWS Lambda Service VPC AWS Lambda Execution Environment

Slide 20

Slide 20 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambdaのネットワーキング AWS Lambda Service VPC AWS Lambda Execution Environment ユーザが所有するVPC Elastic network interface

Slide 21

Slide 21 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambdaのネットワーキング AWS Lambda Service VPC ユーザが所有するVPC

Slide 22

Slide 22 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Hyperplane Internal network load balancing service Graphic Option 3

Slide 23

Slide 23 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AMAZON Elastic File System AWS Managed NAT AWS PrivateLink AWS Network Load Balancer

Slide 24

Slide 24 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambdaのネットワーキング AWS Lambda Service VPC ユーザが所有するVPC Elastic network interface VPC to VPC NAT

Slide 25

Slide 25 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. コールドスタートレイテンシの改善 スケーリング ネットワークインターフェースの共有 VPC環境の改善

Slide 26

Slide 26 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 27

Slide 27 text

Photo on Visual Hunt

Slide 28

Slide 28 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. モダンアプリケーション 市場投⼊を加速 イノベーションの向上 信頼性の向上 コスト削減

Slide 29

Slide 29 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. オペレーション 価値を⽣まない作業をオフロード すべてを⾃動化 Developer-First な開発フロー すべてを⾃動化 Continuous Integration / Continuous Delivery アーキテクチャ 極⼩化されたスコープとマイクロサービス 疎結合、そしてイベントドリブン データ 正しいツールを利⽤ ⽬的に適した DB の利⽤ セキュリティ ⾃動化された、継続的なセキュリティ評価 適切なアクセス権限と成果物の検証 モダンアプリケーション

Slide 30

Slide 30 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 幅広いアプリケーション実⾏環境 Amazon EC2 AWS Lambda AWS Fargate Amazon ECS Amazon EKS

Slide 31

Slide 31 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. モダンアプリケーション開発を⽀援するサービス On-Premises Cloud More Less Compute Virtual Machine Amazon EC2 AWS Lambda AWS Fargate Amazon ECS Amazon EKS Databases MySQL MySQL on EC2 Amazon RDS MySQL Amazon RDS Aurora Amazon Aurora Serverless Amazon DynamoDB Storage Storage Amazon S3 Messaging ESB Amazon MQ Amazon Kinesis Amazon SQS / Amazon SNS Analytics Hadoop Hadoop on EC2 Amazon EMR Amazon Elasticsearch Service Amazon Athena オペレーション負荷 Serverless

Slide 32

Slide 32 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. MICROSERVICE API API MICROSERVICE MICROSERVICE EVENT API MICROSERVICE EVENT API MICROSERVICE APPLICATION Mobile client Client IoT PERSISTENCE PERSISTENCE Microservices architectures

Slide 33

Slide 33 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. APIはMicroservicesの⽞関

Slide 34

Slide 34 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Mobile apps Websites Services Internet Amazon CloudFront Amazon CloudWatch monitoring API Gateway cache Any other AWS service All publicly accessible endpoints AWS Lambda functions Endpoints in your VPC Regional API Endpoints AWS Lambda functions Endpoints on Amazon EC2 Your VPC AWS API Gatewayを利⽤したAPI管理

Slide 35

Slide 35 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. イベントドリブンアーキテクチャ

Slide 36

Slide 36 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. メッセージングを活⽤してコードからステート を取り除く Queues Simple Fully-managed Any volume Pub/sub Simple Fully-managed Flexible Amazon Simple Queue Service Amazon Simple Notification Service Messaging Synchronization Rapid Fully-managed Real-time Amazon CloudWatch Events

Slide 37

Slide 37 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. データと処理の状態を トラッキング 冗⻑なコードを削除 ワークフローを構築してすべてを オーケストレーション

Slide 38

Slide 38 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. コードを減らし、よりシンプルなインテグレー ション AWS Lambdaで ポーリング Step Functionsによる インテグレーション Start Submit Job Wait X Seconds Get Job Status Job Complete? Set Job Failed Set Job Succeeded Sent Message to SNS End AWS Lambda functions Synchronously Run a Batch Job Publish Success to SNS Publish Error to SNS Start End No Lambda functions

Slide 39

Slide 39 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. クラウドネイティブなアーキテクチャは ⼩さいピースで構成され、疎結合

Slide 40

Slide 40 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 41

Slide 41 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 「何をするか」 を書くだけでいい

Slide 42

Slide 42 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 当時のスライド

Slide 43

Slide 43 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 当時のスライド

Slide 44

Slide 44 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Photo on VisualHunt

Slide 45

Slide 45 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1/10アイドル時間のリソースが 解放され、利⽤費が最適化 9:1 “開発:保守/運⽤” の作業 ⽐率が 1:9 から⼤きく改善 1/3 コード量の減少(従来⽐) = ⽣産性向上、保守改善 5x 従来より⽣産性が向上 アプリ展開を加速化 お客様の効果例 1⼈ 運⽤を 1 ⼈で楽に実施 機能改善に注⼒可能 2ヶ⽉ スケール、冗⻑化などの 考慮不要で短期実装可能 1/6 安定した定常稼働により 運⽤の労⼒を⼤幅に短縮 1-2⽇簡易な機能追加は短期で 実装・デプロイ可能

Slide 46

Slide 46 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 47

Slide 47 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 48

Slide 48 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Photo on Visual Hunt

Slide 49

Slide 49 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 50

Slide 50 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 51

Slide 51 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 52

Slide 52 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Photo on Visual hunt

Slide 53

Slide 53 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Slide 54

Slide 54 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Helps your Serverless Journey Still Day 1

Slide 55

Slide 55 text

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Keisuke Nishitani (@Keisuke69) Manager, Senior Solutions Architect Amazon Web Service Japan K.K Everything will be serverless. ⾳楽 x キャンプ x マンガ フジロッカー Twitter: https://twitter.com/Keisuke69 ブログ: https://www.keisuke69.net/