ServerlessDays Fukuoka 2019でキーノートをさせていただいた際の資料です。ServerlessDays Tokyo 2019でのキーノートでお話した際の資料をベースに少しアップデートされています。 質問などあればTwitter (@Keisuke69)までDMなどでどうぞ!
© 2019, Amazon Web Services, Inc. or its affiliates. All rightsreserved.Keisuke Nishitani (@Keisuke69)Manager, Senior Solutions ArchitectAmazon Web Services Japan K.K.
View Slide
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Not Event-drivenAPIコール処理追加
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Event-drivenサブスクライブ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.201501201502201503201504201505201506201507201508201509201510201511201512201601201602201603201604201605201606201607201608201609201610201611201612201701201702201703201704201705201706201707201708201709201710201711201712201801201802201803201804201805201806201807201808201809201810201811201812201901201902201903201904201905201906201907201908201909Customer Loves Serverless
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.国内のお客様(抜粋)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS Lambda release historyLambda PreviewAnnouncementLambda GA1.5 GB RAMAmazon API Gateway LaunchAmazon DynamoDB StreamSupport300s Execution DurationPython 2.7 SupportJava SupportAlexa IntegrationFunction VersioningScheduled CloudWatchEvents SupportAmazon SWF SupportAmazon VPC SupportAPI Gateway ProxyEnvironment VariablesAWS SAM[email protected]AnnouncementNode 4.2 SupportAWS CodeCommit SupportC# .Net SupportAWS GreenGrassLambda SupportSAMEnhancementsPython 3.61000 Concurrency LimitPCI CertificationAWS SAMLocal (now AWSCLI)SOC CertificationPer Function ConcurrencyControlsNode.js 6.10TaggingAWS X-Ray3 GB RAM SupportHIPAA EligibleTraffic Shifting/WeightedAliasesAWS Serverless ApplicationRepository Announcement.Net Core v2.0AWS CLI relaunchFedRAMP CertificationAWS CLI—Lambda Local,Log tailingPowerShell Support15-Minute Execution DurationGo SupportNode.js v8Amazon SQS Support.Net 2.1 SupportAWS CLI Go DebuggingConsole AppView99.95%SLA*As of Dec 2019, does not include region launches2015 2016 2017 2018 2019VPC ImprovementCloudWatch Logs Insights integrationAmazon Linux 2018.03Node.js 10RubyLayersCustomruntimesALBtriggersKinesis HTTP/2 streamconsumersPython 3.7Stream batch settingsCreate app in ConsoleRDS ProxyProvisioned ConcurrencyNode.js 12, Java 11, andPython 3.8Customize retry behaviorDes:na:ons for Async Invoka:on
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.かつてのAnti-Pattern
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS Lambda と RDBMSAmazon RDSAmazon AuroraLambda function
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Photo on Visualhunt.com
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Using Amazon RDS Proxy with AWS LambdaAmazon RDSAmazon AuroraLambda function
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Using Amazon RDS Proxy with AWS LambdaAmazon RDSAmazon AuroraLambda functionAmazon RDS Proxy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.RDSのコネクションプールマネージャ東京を含む5リージョンで利用可能(Public Preview)Lambdaからも利⽤可能Amazon RDS Proxy
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS LambdaのネットワーキングAWS Lambda Service VPCAWS LambdaExecution Environment
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS LambdaのネットワーキングAWS Lambda Service VPCAWS LambdaExecution Environmentユーザが所有するVPCElastic network interface
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS LambdaのネットワーキングAWS Lambda Service VPC ユーザが所有するVPC
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS HyperplaneInternal network load balancing serviceGraphic Option3
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AMAZON Elastic File SystemAWS Managed NATAWS PrivateLinkAWS Network Load Balancer
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS LambdaのネットワーキングAWS Lambda Service VPC ユーザが所有するVPCElastic network interfaceVPC to VPC NAT
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.コールドスタートレイテンシの改善スケーリングネットワークインターフェースの共有VPC環境の改善
Photo on Visual Hunt
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.モダンアプリケーション市場投⼊を加速 イノベーションの向上 信頼性の向上 コスト削減
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.オペレーション価値を⽣まない作業をオフロードすべてを⾃動化Developer-First な開発フローすべてを⾃動化Continuous Integration / Continuous Deliveryアーキテクチャ極⼩化されたスコープとマイクロサービス疎結合、そしてイベントドリブンデータ正しいツールを利⽤⽬的に適した DB の利⽤セキュリティ⾃動化された、継続的なセキュリティ評価適切なアクセス権限と成果物の検証モダンアプリケーション
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.幅広いアプリケーション実⾏環境Amazon EC2 AWS LambdaAWS FargateAmazon ECSAmazon EKS
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.モダンアプリケーション開発を⽀援するサービスOn-Premises CloudMore LessCompute Virtual MachineAmazon EC2 AWS LambdaAWS FargateAmazon ECS Amazon EKSDatabases MySQL MySQL on EC2Amazon RDS MySQL Amazon RDS AuroraAmazon AuroraServerless Amazon DynamoDBStorage StorageAmazon S3Messaging ESBAmazon MQ Amazon Kinesis Amazon SQS / Amazon SNSAnalyticsHadoop Hadoop on EC2 Amazon EMR Amazon Elasticsearch Service Amazon Athenaオペレーション負荷Serverless
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.MICROSERVICEAPIAPIMICROSERVICEMICROSERVICEEVENTAPIMICROSERVICEEVENTAPIMICROSERVICEAPPLICATIONMobile clientClientIoTPERSISTENCE PERSISTENCEMicroservices architectures
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.APIはMicroservicesの⽞関
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Mobile appsWebsitesServicesInternet AmazonCloudFrontAmazon CloudWatchmonitoringAPIGatewaycacheAny otherAWS serviceAll publiclyaccessibleendpointsAWSLambdafunctionsEndpointsin your VPCRegional API EndpointsAWS LambdafunctionsEndpoints onAmazon EC2Your VPCAWSAPI Gatewayを利⽤したAPI管理
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.イベントドリブンアーキテクチャ
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.メッセージングを活⽤してコードからステートを取り除くQueuesSimpleFully-managedAny volumePub/subSimpleFully-managedFlexibleAmazon SimpleQueue ServiceAmazon SimpleNotificationServiceMessagingSynchronizationRapidFully-managedReal-timeAmazonCloudWatchEvents
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.データと処理の状態をトラッキング冗⻑なコードを削除ワークフローを構築してすべてをオーケストレーション
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.コードを減らし、よりシンプルなインテグレーションAWS LambdaでポーリングStep FunctionsによるインテグレーションStartSubmit JobWait X SecondsGet Job StatusJob Complete?Set Job Failed Set Job SucceededSent Message to SNSEndAWSLambdafunctionsSynchronously Run a Batch JobPublish Success to SNS Publish Error to SNSStartEndNoLambdafunctions
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.クラウドネイティブなアーキテクチャは⼩さいピースで構成され、疎結合
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.「何をするか」を書くだけでいい
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.当時のスライド
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Photo on VisualHunt
© 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⽇簡易な機能追加は短期で実装・デプロイ可能
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Photo on Visual Hunt
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Photo on Visual hunt
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.AWS Helps your Serverless JourneyStill Day 1
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.Keisuke Nishitani (@Keisuke69)Manager, Senior Solutions ArchitectAmazon Web Service Japan K.KEverything will be serverless.⾳楽 x キャンプ x マンガフジロッカーTwitter: https://twitter.com/Keisuke69ブログ: https://www.keisuke69.net/