近年、サーバーレスアーキテクチャが注目されています。サーバー管理やスケーリングが柔軟に行えることでアプリケーションのコア開発により注力でき、外部のFaaSを利用するためサーバー管理の人員を最適化できる等、開発における資源の効率化が可能となる効果に関心が集まっています。
今回は、サーバーレスアーキテクチャを導入し、コストを抑え、スピード感のあるサービス開発を行っている現場の方々にお話を伺い、その有用性や成功や失敗、工夫点等などについて、LTにて登壇者の方々に事例をお話しいただきます。
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.Kensuke ShimokawaSnr. Serverless SpecialistAmazon Web Services JapanServerless の未来と AWS Lambda
View Slide
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 2Kensuke ShimokawaAmazon Web Services JapanSnr. Serverless SpecialistSlides https://speakerdeck.com/_kenshQiita https://qiita.com/_kensh
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 3
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 413th Nov 2014
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.ServerlessServerless Application とは、“誰も使用していないときは、データ ストレージのコストを除いて、実行に費用がかからない.”5
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 6
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 7静的コンテンツ動的データ記事/試合状況フォロー状況管理認可(フェデレーション)ログの保存ETL処理ログ収集 データ分析クローリング記事に対する処理(タグ付けなど)変更通知画像に対する処理(顔座標の検出)コードで実現 インテグレーションで実現
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 8
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 9
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 10Services ServicesIntegrationEvent Driven
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 11IntegrationAPIDestinationAPIGatewayLambda BatchCloudWatchECSEventBridgeBusKinesisData FirehoseInspectorKinesisData StreamsRedshiftSageMakerpipelineSNS SQSStepFunctionsEvent Driven
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 12IntegrationAPIDestinationAPIGatewayLambda BatchCloudWatchECSEventBridgeBusKinesisData FirehoseInspectorKinesisData StreamsRedshiftSageMakerpipelineSNS SQSStepFunctionsEventBridge PipesEvent Driven
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 13サーバーレス のサイズ感と組み立て
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 14VMContainer Function
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 15VMContainer Functionたくさんのことを一つのインスタンスでまぁまぁのことを複数のインスタンスでちょっとのことをたくさんのインスタンスで
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 16Functionちょっとのことをたくさんのインスタンスでたくさんの処理をワークフローで
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 17Functionちょっとのことをたくさんのインスタンスでたくさんの処理をワークフローでAWS Step Functions
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 186 5 4 3 2 17Array566 5 4 3 2 17MAPf (a) = 2 × a12 10 8 6 4 214Reduceg (b, c) = b + c
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 19Dec 2022
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 206 5 4 3 2 17Distibuted MAPf (a) = 2 × a12 10 8 6 4 214最大 10,000 の並列同時実行をサポート
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 21AI Chat と Lambda
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 22URLMobileclientAI ChatChunkedChunkedAWS Lambda response streaming
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 23Java と Lambda
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.Java 11, Java 17 の Corretto ランタイム24InitEncrypted snapshotstoredTiered low-latencycacheInvokeResumeInvokeResumeInvokeResume
© 2023, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.Java 開発者に捧ぐ、使える「Java on Serverless」15:00 - 15:30 サーバーレスの今15:30 - 16:15 Java on Lambda16:15 - 16:55 Java によるサーバーレス開発16:55 – 17:25 PowerTools for Java申込サイトhttps://pages.awscloud.com/eib-java-on-serverless-230907-reg.html15:00から好評につき、追加情報を⼊れて再演!
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 26Serverless の未来とは?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.未来がどうなるかはわからないけど、、• Serverless が担うビジネスロジック、ワークロードは広がる• Lambda が担ってきた “糊付け” としての役割は EventBridge やStep Functions に多く譲っていくことになりそう27今後の期待は、、• 今は想像もしていないようなワークロードで Lambda が使われていくのではないか?• 面白いユースケースがあれば、@_kensh まで DM ください
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 28